aws.iam.Role
Explore with Pulumi AI
Import
Using pulumi import
, import IAM Roles using the name
. For example:
$ pulumi import aws:iam/role:Role developer developer_name
Create Role Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Role(name: string, args: RoleArgs, opts?: CustomResourceOptions);
@overload
def Role(resource_name: str,
args: RoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Role(resource_name: str,
opts: Optional[ResourceOptions] = None,
assume_role_policy: Optional[str] = None,
description: Optional[str] = None,
force_detach_policies: Optional[bool] = None,
inline_policies: Optional[Sequence[RoleInlinePolicyArgs]] = None,
managed_policy_arns: Optional[Sequence[str]] = None,
max_session_duration: Optional[int] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
path: Optional[str] = None,
permissions_boundary: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewRole(ctx *Context, name string, args RoleArgs, opts ...ResourceOption) (*Role, error)
public Role(string name, RoleArgs args, CustomResourceOptions? opts = null)
type: aws:iam:Role
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RoleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var roleResource = new Aws.Iam.Role("roleResource", new()
{
AssumeRolePolicy = "string",
Description = "string",
ForceDetachPolicies = false,
ManagedPolicyArns = new[]
{
"string",
},
MaxSessionDuration = 0,
Name = "string",
NamePrefix = "string",
Path = "string",
PermissionsBoundary = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := iam.NewRole(ctx, "roleResource", &iam.RoleArgs{
AssumeRolePolicy: pulumi.Any("string"),
Description: pulumi.String("string"),
ForceDetachPolicies: pulumi.Bool(false),
ManagedPolicyArns: pulumi.StringArray{
pulumi.String("string"),
},
MaxSessionDuration: pulumi.Int(0),
Name: pulumi.String("string"),
NamePrefix: pulumi.String("string"),
Path: pulumi.String("string"),
PermissionsBoundary: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var roleResource = new Role("roleResource", RoleArgs.builder()
.assumeRolePolicy("string")
.description("string")
.forceDetachPolicies(false)
.managedPolicyArns("string")
.maxSessionDuration(0)
.name("string")
.namePrefix("string")
.path("string")
.permissionsBoundary("string")
.tags(Map.of("string", "string"))
.build());
role_resource = aws.iam.Role("roleResource",
assume_role_policy="string",
description="string",
force_detach_policies=False,
managed_policy_arns=["string"],
max_session_duration=0,
name="string",
name_prefix="string",
path="string",
permissions_boundary="string",
tags={
"string": "string",
})
const roleResource = new aws.iam.Role("roleResource", {
assumeRolePolicy: "string",
description: "string",
forceDetachPolicies: false,
managedPolicyArns: ["string"],
maxSessionDuration: 0,
name: "string",
namePrefix: "string",
path: "string",
permissionsBoundary: "string",
tags: {
string: "string",
},
});
type: aws:iam:Role
properties:
assumeRolePolicy: string
description: string
forceDetachPolicies: false
managedPolicyArns:
- string
maxSessionDuration: 0
name: string
namePrefix: string
path: string
permissionsBoundary: string
tags:
string: string
Role Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Role resource accepts the following input properties:
- Assume
Role string | stringPolicy Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- Description string
- Description of the role.
- Force
Detach boolPolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - Inline
Policies List<RoleInline Policy> - Managed
Policy List<string>Arns - Max
Session intDuration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- Name string
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- Name
Prefix string - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - Path string
- Path to the role. See IAM Identifiers for more information.
- Permissions
Boundary string - ARN of the policy that is used to set the permissions boundary for the role.
- Dictionary<string, string>
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Assume
Role string | stringPolicy Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- Description string
- Description of the role.
- Force
Detach boolPolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - Inline
Policies []RoleInline Policy Args - Managed
Policy []stringArns - Max
Session intDuration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- Name string
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- Name
Prefix string - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - Path string
- Path to the role. See IAM Identifiers for more information.
- Permissions
Boundary string - ARN of the policy that is used to set the permissions boundary for the role.
- map[string]string
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- assume
Role String | StringPolicy Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- description String
- Description of the role.
- force
Detach BooleanPolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - inline
Policies List<RoleInline Policy> - managed
Policy List<String>Arns - max
Session IntegerDuration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- name String
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- name
Prefix String - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - path String
- Path to the role. See IAM Identifiers for more information.
- permissions
Boundary String - ARN of the policy that is used to set the permissions boundary for the role.
- Map<String,String>
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- assume
Role string | PolicyPolicy Document Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- description string
- Description of the role.
- force
Detach booleanPolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - inline
Policies RoleInline Policy[] - managed
Policy string[]Arns - max
Session numberDuration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- name string
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- name
Prefix string - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - path string
- Path to the role. See IAM Identifiers for more information.
- permissions
Boundary string - ARN of the policy that is used to set the permissions boundary for the role.
- {[key: string]: string}
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- assume_
role_ str | strpolicy Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- description str
- Description of the role.
- force_
detach_ boolpolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - inline_
policies Sequence[RoleInline Policy Args] - managed_
policy_ Sequence[str]arns - max_
session_ intduration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- name str
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- name_
prefix str - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - path str
- Path to the role. See IAM Identifiers for more information.
- permissions_
boundary str - ARN of the policy that is used to set the permissions boundary for the role.
- Mapping[str, str]
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- assume
Role String |Policy Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- description String
- Description of the role.
- force
Detach BooleanPolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - inline
Policies List<Property Map> - managed
Policy List<String>Arns - max
Session NumberDuration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- name String
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- name
Prefix String - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - path String
- Path to the role. See IAM Identifiers for more information.
- permissions
Boundary String - ARN of the policy that is used to set the permissions boundary for the role.
- Map<String>
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Role resource produces the following output properties:
- Arn string
- Amazon Resource Name (ARN) specifying the role.
- Create
Date string - Creation date of the IAM role.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Unique
Id string - Stable and unique string identifying the role.
- Arn string
- Amazon Resource Name (ARN) specifying the role.
- Create
Date string - Creation date of the IAM role.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Unique
Id string - Stable and unique string identifying the role.
- arn String
- Amazon Resource Name (ARN) specifying the role.
- create
Date String - Creation date of the IAM role.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - unique
Id String - Stable and unique string identifying the role.
- arn string
- Amazon Resource Name (ARN) specifying the role.
- create
Date string - Creation date of the IAM role.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - unique
Id string - Stable and unique string identifying the role.
- arn str
- Amazon Resource Name (ARN) specifying the role.
- create_
date str - Creation date of the IAM role.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - unique_
id str - Stable and unique string identifying the role.
- arn String
- Amazon Resource Name (ARN) specifying the role.
- create
Date String - Creation date of the IAM role.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - unique
Id String - Stable and unique string identifying the role.
Look up Existing Role Resource
Get an existing Role resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RoleState, opts?: CustomResourceOptions): Role
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
assume_role_policy: Optional[str] = None,
create_date: Optional[str] = None,
description: Optional[str] = None,
force_detach_policies: Optional[bool] = None,
inline_policies: Optional[Sequence[RoleInlinePolicyArgs]] = None,
managed_policy_arns: Optional[Sequence[str]] = None,
max_session_duration: Optional[int] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
path: Optional[str] = None,
permissions_boundary: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
unique_id: Optional[str] = None) -> Role
func GetRole(ctx *Context, name string, id IDInput, state *RoleState, opts ...ResourceOption) (*Role, error)
public static Role Get(string name, Input<string> id, RoleState? state, CustomResourceOptions? opts = null)
public static Role get(String name, Output<String> id, RoleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- Amazon Resource Name (ARN) specifying the role.
- Assume
Role string | stringPolicy Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- Create
Date string - Creation date of the IAM role.
- Description string
- Description of the role.
- Force
Detach boolPolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - Inline
Policies List<RoleInline Policy> - Managed
Policy List<string>Arns - Max
Session intDuration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- Name string
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- Name
Prefix string - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - Path string
- Path to the role. See IAM Identifiers for more information.
- Permissions
Boundary string - ARN of the policy that is used to set the permissions boundary for the role.
- Dictionary<string, string>
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Unique
Id string - Stable and unique string identifying the role.
- Arn string
- Amazon Resource Name (ARN) specifying the role.
- Assume
Role string | stringPolicy Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- Create
Date string - Creation date of the IAM role.
- Description string
- Description of the role.
- Force
Detach boolPolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - Inline
Policies []RoleInline Policy Args - Managed
Policy []stringArns - Max
Session intDuration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- Name string
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- Name
Prefix string - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - Path string
- Path to the role. See IAM Identifiers for more information.
- Permissions
Boundary string - ARN of the policy that is used to set the permissions boundary for the role.
- map[string]string
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Unique
Id string - Stable and unique string identifying the role.
- arn String
- Amazon Resource Name (ARN) specifying the role.
- assume
Role String | StringPolicy Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- create
Date String - Creation date of the IAM role.
- description String
- Description of the role.
- force
Detach BooleanPolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - inline
Policies List<RoleInline Policy> - managed
Policy List<String>Arns - max
Session IntegerDuration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- name String
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- name
Prefix String - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - path String
- Path to the role. See IAM Identifiers for more information.
- permissions
Boundary String - ARN of the policy that is used to set the permissions boundary for the role.
- Map<String,String>
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - unique
Id String - Stable and unique string identifying the role.
- arn string
- Amazon Resource Name (ARN) specifying the role.
- assume
Role string | PolicyPolicy Document Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- create
Date string - Creation date of the IAM role.
- description string
- Description of the role.
- force
Detach booleanPolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - inline
Policies RoleInline Policy[] - managed
Policy string[]Arns - max
Session numberDuration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- name string
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- name
Prefix string - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - path string
- Path to the role. See IAM Identifiers for more information.
- permissions
Boundary string - ARN of the policy that is used to set the permissions boundary for the role.
- {[key: string]: string}
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - unique
Id string - Stable and unique string identifying the role.
- arn str
- Amazon Resource Name (ARN) specifying the role.
- assume_
role_ str | strpolicy Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- create_
date str - Creation date of the IAM role.
- description str
- Description of the role.
- force_
detach_ boolpolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - inline_
policies Sequence[RoleInline Policy Args] - managed_
policy_ Sequence[str]arns - max_
session_ intduration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- name str
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- name_
prefix str - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - path str
- Path to the role. See IAM Identifiers for more information.
- permissions_
boundary str - ARN of the policy that is used to set the permissions boundary for the role.
- Mapping[str, str]
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - unique_
id str - Stable and unique string identifying the role.
- arn String
- Amazon Resource Name (ARN) specifying the role.
- assume
Role String |Policy Policy that grants an entity permission to assume the role.
NOTE: The
assume_role_policy
is very similar to but slightly different than a standard IAM policy and cannot use anaws.iam.Policy
resource. However, it can use anaws.iam.getPolicyDocument
data source. See the example above of how this works.The following arguments are optional:
- create
Date String - Creation date of the IAM role.
- description String
- Description of the role.
- force
Detach BooleanPolicies - Whether to force detaching any policies the role has before destroying it. Defaults to
false
. - inline
Policies List<Property Map> - managed
Policy List<String>Arns - max
Session NumberDuration - Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.
- name String
- Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
- name
Prefix String - Creates a unique friendly name beginning with the specified prefix. Conflicts with
name
. - path String
- Path to the role. See IAM Identifiers for more information.
- permissions
Boundary String - ARN of the policy that is used to set the permissions boundary for the role.
- Map<String>
- Key-value mapping of tags for the IAM role. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - unique
Id String - Stable and unique string identifying the role.
Supporting Types
RoleInlinePolicy, RoleInlinePolicyArgs
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.