IamPolicy
A resource of the AWS provider, version 0.3.0, in its IAM group. Import it with:
import IamPolicy from "aws/iam"Example
resource IamPolicy example {
name = "example-value"
description = "example-value"
path = "example-value"
policy = "example-value"
tags = "..."
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | — | No | Name of the policy |
description | string | — | No | Description of the policy |
path | string | — | No | Path for the policy (default: /) |
policy | string | — | No | The JSON policy document |
tags | object | — | No | Tags to apply to the policy |
Set by AWS after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
policyId | string | No | The stable and unique ID for the policy |
arn | string | Yes | The Amazon Resource Name (ARN) of the policy |
createDate | string | No | The date and time when the policy was created |
attachmentCount | number | No | The number of entities (users, groups, roles) attached to this policy |
defaultVersionId | string | No | The default version ID of the policy |