Skip to main content

IamUserSchema

IamUserSchema is the schema of the IamUser resource: an IAM user, an identity with credentials of its own, with the permissions it holds. Terraform provisions it as aws_iam_user.

@group

Resources/IamUser

@overrideProperty

parents - This resource has no parents.

@overrideProperty

resourceId - The resource id is of format iam-user-<user-name>

Hierarchy

  • BaseResourceSchema
    • IamUserSchema

Index

Properties

inheritedlocalResourceId

localResourceId: string

The ID the resource was created with, unique within its scope.

inheritedparents

parents: IResourceReference[]

The resources this one is built on top of.

properties

properties: { awsAccountId: string; policies: ({ policy: IIamUserDynamoDBTablePolicy; policyId: string; policyType: dynamodb-table-access-policy } | { policy: IIamUserS3BucketPolicy; policyId: string; policyType: s3-storage-access-policy })[]; username: string }

Input properties.

  • properties.awsAccountId: The AWS account ID.
  • properties.policies: The policies to attach to the user. See IIamUserPolicyTypes for options.
  • properties.username: The name of the user to create.

Type declaration

inheritedresourceId

resourceId: string

The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash of its scope when it has one.

response

response: { Arn?: string; UserId?: string; UserName?: string } = { Arn: 'arn:aws:iam::000000000000:user/mock-user', UserId: 'ABC00123456789ABC0ABC', UserName: 'mock-user', }

Saved response.

  • response.Arn: The ARN of the user.
  • response.UserId: The ID of the user.
  • response.UserName: The name of the user.

Type declaration

  • optionalArn?: string
  • optionalUserId?: string
  • optionalUserName?: string

inheritedscope

scope: string[]

The contexts of the models the resource is placed under, derived from where the node creating it sits in the model graph. Octo sets it; a resource created outside a model action has none.

inheritedtags

tags: {}

The tags applied to the resource.


Type declaration

  • [key string]: string