Fugue.AWS.IAM.Typed.AssumeRolePolicy

Policy documents are described here: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_grammar.html

Module Members

fromString

(Function)

Convert a Ludwig.String value to an Optional<Policy>. None indicates failure.

Type Signature

 fun (String) -> Optional<AssumeRolePolicy>
Argument: x
Type: String
Returns:
Type: Optional<AssumeRolePolicy>

new

(Function)

Construct a AssumeRolePolicy from a Document

Example:

assumeRole: AssumeRolePolicy.new {
    version: V2012-10-17,
    statements: [
      allow {
        actions: ["sts:AssumeRole"],
        principals: [
          aws ["arn:aws:iam::123456789012:root"]
          ]
        }
     ]
  }

Type Signature

 fun (Document) -> AssumeRolePolicy
Argument: doc

document to construct

Type: Document

Returns:

a new AssumeRolePolicy

Type: AssumeRolePolicy

toString

(Function)

Convert a AssumeRolePolicy to a Ludwig.String value.

Type Signature

 fun (AssumeRolePolicy) -> String
Argument: x
Type: AssumeRolePolicy
Returns:
Type: String

AssumeRolePolicy

(Type)

type AssumeRolePolicy:
  | AssumeRolePolicy Document

AssumeRolePolicy

(Constructor)

Argument:
Document

IAM assume role policy