Fugue.AWS.IAM.User

Module Members

external

(Function)

Create a reference to an externally managed user.

Example usage:

profile: IAM.User.external("ExternalUser")

Type Signature

 fun (String) -> User
Argument: userName
Type: String
Returns:

A reference to the specified user.

Type: User

new

(Function)

User Constructor

Call this constructor to create a new Fugue.AWS.IAM.User value.

Example usage:

import Fugue.AWS.IAM as IAM

readFromS3: '{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["s3:ListBucket"],
      "Resource": ["arn:aws:s3:::example"]
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
      ],
      "Resource": ["arn:aws:s3:::example/*"]
    }
  ]
}'

user: IAM.User.new {
  userName: "bob",
  inlinePolicies: [
    IAM.Policy {
      policyName: "read-from-s3",
      policyDocument: readFromS3
    }
  ]
}

Type Signature

 fun { userName: String,
       path: Optional<String>,
       inlinePolicies: Optional<List<Policy>>,
       managedPolicies: Optional<List<ManagedPolicy>>,
       loginProfile: Optional<LoginProfile> } -> User
Argument: userName

The name of the user. Mutable.

Type: String

Argument: path
Type: Optional<String>
Argument: inlinePolicies

An optional list of policies to attach to the user. Mutable.

Type: Optional<List<Policy>>

Argument: managedPolicies
Type: Optional<List<ManagedPolicy>>
Argument: loginProfile

An optional login profile to associate with the user. A login profile is necessary to enable access to the AWS console. Login is disabled by default. Mutable.

Type: Optional<LoginProfile>

Returns:

A Fugue.AWS.IAM.User record.

Type: User

UserSpec

(Type)

type UserSpec:
  userName: String
  inlinePolicies: Optional<List<Policy>>

DEPRECATED IAM User Specification

This type of value specifies an IAM user, a name, and a set of credentials that represent a person or service who interacts with AWS.

Record {

Field: userName

The name of the user.

Type: String

Field: inlinePolicies

An optional list of policies to attach to the user.

Type: Optional<List<Policy>>

}

default

(Value)

default:
  inlinePolicies: None

DEPRECATED IAM User Specification Defaults

These are the default values for an IAM user created with the IAM user constructor, IAM.User(). If these values are provided to the constructor, the default values are overwritten. The default values are:

  • inlinePolicies: None, meaning no policies are attached to the user.