IamRoleSchema
Hierarchy
- BaseResourceSchema
- IamRoleSchema
Index
Properties
inheritedlocalResourceId
The ID the resource was created with, unique within its scope.
inheritedparents
The resources this one is built on top of.
properties
Input properties.
properties.awsAccountId: The AWS account ID.properties.policies: The policies to attach to the role. See IIamRolePolicyTypes for options.properties.rolename: The name of the role to create.
Type declaration
awsAccountId: string
policies: ({ policy: IIamRoleAssumeRolePolicy; policyId: string; policyType: assume-role-policy } | { policy: string; policyId: string; policyType: aws-policy } | { policy: IIamRoleCloudWatchLogGroupWritePolicy; policyId: string; policyType: cloudwatch-log-group-write-policy } | { policy: IIamRoleDynamoDBTablePolicy; policyId: string; policyType: dynamodb-table-access-policy } | { policy: { actions: string[]; resources: string[] }[]; policyId: string; policyType: iam-statements-policy } | { policy: IIamRoleLambdaFunctionInvokePolicy[]; policyId: string; policyType: lambda-function-invoke-policy } | { policy: IIamRoleS3BucketPolicy; policyId: string; policyType: s3-storage-access-policy })[]
rolename: string
inheritedresourceId
The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash
of its scope when it has one.
response
Saved response.
response.Arn: The ARN of the role.response.RoleId: The ID of the role.response.RoleName: The name of the role.
Type declaration
optionalArn?: string
optionalRoleId?: string
optionalRoleName?: string
inheritedscope
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
The tags applied to the resource.
Type declaration
[key string]: string
IamRoleSchemais the schema of theIamRoleresource: an IAM role, an identity a service such as ECS or Lambda assumes, with the permissions it holds. Terraform provisions it asaws_iam_role.Resources/IamRole
parents - This resource has no parents.
resourceId - The resource id is of format
iam-role-<role-name>