Fugue.Import

Module Members

setResourceId

(Function)

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.

Type Signature

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

The resourceId value.

Type: String

Argument: resource

The existing resource to copy.

Type: a

Returns:

A new resource with resourceId set to the input id.

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