Fugue.AWS.ARN

Module Members

external

(Function)

Type Signature

 fun (String) -> resource
Argument: arn
Type: String
Returns:
Type: resource

fromString

(Function)

TODO(grim): Handle optional AccountId field in the parser.

Type Signature

 fun (String) -> Optional<ARN>
Argument: arn
Type: String
Returns:
Type: Optional<ARN>

region

(Function)

Type Signature

 fun (String) -> Optional<Region>
Argument: arn
Type: String
Returns:
Type: Optional<Region>

service

(Function)

Type Signature

 fun (String) -> String
Argument: arn
Type: String
Returns:
Type: String

verifyArnFromString

(Function)

Type Signature

 fun { candidate: String,
       service: String,
       region: Optional<Region>,
       resource: Optional<String>,
       resourceType: Optional<String>,
       accountId: Optional<String>,
       verifyResource: Optional<{ resource: a,
       verify: fun (ARN, a) -> Validation}> } -> Validation
Argument: candidate
Type: String
Argument: service
Type: String
Argument: region
Type: Optional<Region>
Argument: resource
Type: Optional<String>
Argument: resourceType
Type: Optional<String>
Argument: accountId
Type: Optional<String>
Argument: verifyResource
Type: Optional<{resource: a, verify: fun (ARN, a) -> Validation}>
Returns:
Type: Validation

ARN

(Type)

type ARN:
  partition: String
  service: String
  region: Optional<Region>
  accountId: Optional<String>
  resource: String
  resourceType: Optional<String>
  metadata: Optional<List<String>>

Record {

Field: partition
Type: String
Field: service
Type: String
Field: region
Type: Optional<Region>
Field: accountId
Type: Optional<String>
Field: resource
Type: String
Field: resourceType
Type: Optional<String>
Field: metadata
Type: Optional<List<String>>

}