Fugue.AWS.ResourceID

Module Members

check

(Function)

Type Signature

 fun (String, String) -> Validation
Argument: resourceId
Type: String
Argument: identifier
Type: String
Returns:
Type: Validation

external

(Function)

Create a reference to an externally managed resource by ResourceID.

The type specific external functions should be preferred for accessing external resources with a slightly simpler interface and more type safety.

Example usage:

instance: ResourceID.external("i-12345678", AWS.Us-east-1, "i")

Type Signature

 fun (String, Region, String) -> resource
Argument: resourceId

The ID of the target resource.

Type: String

Argument: region

The Region containing the target resource.

Type: Region

Argument: identifier

The prefix resourceId is expected to begin with. Should not include the trailing “-”.

Type: String

Returns:

A reference to the specified resource.

Type: resource