Fugue.AWS.ResourceID

Module Members

check

(Function)

Type Signature

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

checkRegex

(Function)

Type Signature

 fun (Optional<String>, String) -> Validation
Argument: resourceId
Type: Optional<String>
Argument: pattern
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

verify

(Function)

Type Signature

 fun (Optional<String>, ValidationConfig) -> Validation
Argument: resourceId
Type: Optional<String>
Argument: config
Type: ValidationConfig
Returns:
Type: Validation

ValidationConfig

(Type)

type ValidationConfig:
  | ValidationConfig
      regexPattern: Optional<String>
      minLength: Optional<Int>
      maxLength: Optional<Int>

ValidationConfig

(Constructor)

Argument:

Record {

Field: regexPattern
Type: Optional<String>
Field: minLength
Type: Optional<Int>
Field: maxLength
Type: Optional<Int>

}