AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::IoT::RoleAlias

CfnRoleAlias

Specifies 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

import { CfnRoleAlias } from 'aws-cdk-lib/aws-iot';

Or use the module namespace:

import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnRoleAlias

Properties

Configuration passed to the constructor as CfnRoleAliasProps.

roleArnRequired
string | IRoleRef

The role ARN.

credentialDurationSecondsOptional
number

The number of seconds for which the credential is valid.

Default: - 3600

roleAliasOptional
string

The role alias.

tagsOptional
CfnTag[]

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) .

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter