RoleAlias
Provides an IoT role alias.
Example Usage
Coming soon!
Coming soon!
import pulumi
import pulumi_aws as aws
role = aws.iam.Role("role", policy="""{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {"Service": "credentials.iot.amazonaws.com"},
"Action": "sts:AssumeRole"
}
]
}
""")
alias = aws.iot.RoleAlias("alias",
alias="Thermostat-dynamodb-access-role-alias",
role_arn=role.arn)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const role = new aws.iam.Role("role", {
policy: `{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {"Service": "credentials.iot.amazonaws.com"},
"Action": "sts:AssumeRole"
}
]
}
`,
});
const alias = new aws.iot.RoleAlias("alias", {
alias: "Thermostat-dynamodb-access-role-alias",
roleArn: role.arn,
});Create a RoleAlias Resource
new RoleAlias(name: string, args: RoleAliasArgs, opts?: CustomResourceOptions);def RoleAlias(resource_name, opts=None, alias=None, credential_duration=None, role_arn=None, __props__=None);func NewRoleAlias(ctx *Context, name string, args RoleAliasArgs, opts ...ResourceOption) (*RoleAlias, error)public RoleAlias(string name, RoleAliasArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RoleAliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RoleAliasArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoleAliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
RoleAlias Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RoleAlias resource accepts the following input properties:
- Alias string
The name of the role alias.
- Role
Arn string The identity of the role to which the alias refers.
- Credential
Duration int The duration of the credential, in seconds. 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 900 seconds (15 minutes) to 3600 seconds (60 minutes).
- Alias string
The name of the role alias.
- Role
Arn string The identity of the role to which the alias refers.
- Credential
Duration int The duration of the credential, in seconds. 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 900 seconds (15 minutes) to 3600 seconds (60 minutes).
- alias string
The name of the role alias.
- role
Arn string The identity of the role to which the alias refers.
- credential
Duration number The duration of the credential, in seconds. 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 900 seconds (15 minutes) to 3600 seconds (60 minutes).
- alias str
The name of the role alias.
- role_
arn str The identity of the role to which the alias refers.
- credential_
duration float The duration of the credential, in seconds. 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 900 seconds (15 minutes) to 3600 seconds (60 minutes).
Outputs
All input properties are implicitly available as output properties. Additionally, the RoleAlias resource produces the following output properties:
Look up an Existing RoleAlias Resource
Get an existing RoleAlias 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?: RoleAliasState, opts?: CustomResourceOptions): RoleAliasstatic get(resource_name, id, opts=None, alias=None, arn=None, credential_duration=None, role_arn=None, __props__=None);func GetRoleAlias(ctx *Context, name string, id IDInput, state *RoleAliasState, opts ...ResourceOption) (*RoleAlias, error)public static RoleAlias Get(string name, Input<string> id, RoleAliasState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Alias string
The name of the role alias.
- Arn string
The ARN assigned by AWS to this role alias.
- Credential
Duration int The duration of the credential, in seconds. 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 900 seconds (15 minutes) to 3600 seconds (60 minutes).
- Role
Arn string The identity of the role to which the alias refers.
- Alias string
The name of the role alias.
- Arn string
The ARN assigned by AWS to this role alias.
- Credential
Duration int The duration of the credential, in seconds. 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 900 seconds (15 minutes) to 3600 seconds (60 minutes).
- Role
Arn string The identity of the role to which the alias refers.
- alias string
The name of the role alias.
- arn string
The ARN assigned by AWS to this role alias.
- credential
Duration number The duration of the credential, in seconds. 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 900 seconds (15 minutes) to 3600 seconds (60 minutes).
- role
Arn string The identity of the role to which the alias refers.
- alias str
The name of the role alias.
- arn str
The ARN assigned by AWS to this role alias.
- credential_
duration float The duration of the credential, in seconds. 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 900 seconds (15 minutes) to 3600 seconds (60 minutes).
- role_
arn str The identity of the role to which the alias refers.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.