Fugue.Capture

Copies an existing resource and sets the resourceId field of the new resource to the given id.

Example usage:

sg-a: setResourceId{id: "sg-1234-abc", resource: new { ... }}

Note that the above will result in one managed resource whereas:
sg-b: new { ... }
sg-c: setResourceId{id: "sg-1234-abc", resource: sg-b}
will result in two since they are both named.

Module Members

setResourceId

(Function)

Type Signature

 fun { id: String,
       resource: a} -> a
Argument: id
Type: String
Argument: resource
Type: a
Returns:
Type: a

setResourceIdIfProvided

(Function)

Type Signature

 fun { resourceId: Optional<String>,
       resource: a} -> a
Argument: resourceId
Type: Optional<String>
Argument: resource
Type: a
Returns:
Type: a