AWS::IoT::RoleAliasSpecifies a role alias. Requires permission to access the [CreateRoleAlias](https://docs.aws.amazon.com//service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.
import { CfnRoleAlias } from 'aws-cdk-lib/aws-iot';Or use the module namespace:
import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnRoleAliasConfiguration passed to the constructor as CfnRoleAliasProps.
roleArnRequiredstring | IRoleRefThe role ARN.
credentialDurationSecondsOptionalnumberThe number of seconds for which the credential is valid.
Default: - 3600
roleAliasOptionalstringThe role alias.
tagsOptionalCfnTag[]An array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-iotAWS::IoT::RoleAlias