AWS::IoT::RoleAlias - AWS CloudFormation

AWS::IoT::RoleAlias

Specifies a role alias.

Requires permission to access the CreateRoleAlias action.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::IoT::RoleAlias", "Properties" : { "CredentialDurationSeconds" : Integer, "RoleAlias" : String, "RoleArn" : String, "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::IoT::RoleAlias Properties: CredentialDurationSeconds: Integer RoleAlias: String RoleArn: String Tags: - Tag

Properties

CredentialDurationSeconds

The number of seconds for which the credential is valid.

Required: No

Type: Integer

Minimum: 900

Maximum: 43200

Update requires: No interruption

RoleAlias

The role alias.

Required: No

Type: String

Pattern: [\w=,@-]+

Minimum: 1

Maximum: 128

Update requires: Replacement

RoleArn

The role ARN.

Required: Yes

Type: String

Pattern: arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+

Minimum: 20

Maximum: 2048

Update requires: No interruption

Tags

An array of key-value pairs to apply to this resource.

For more information, see Tag.

Required: No

Type: Array of Tag

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the role alias name.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

RoleAliasArn

The role alias ARN.