Skip to content
v2.275.0

CfnRoleAliasProps Struct ​

Properties for defining a CfnRoleAlias.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const cfnRoleAliasProps: iot.CfnRoleAliasProps = {
  roleArn: 'roleArn',

  // the properties below are optional
  credentialDurationSeconds: 123,
  roleAlias: 'roleAlias',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

credentialDurationSecondsoptionalnumbercredential_duration_secondsoptionalint | floatcredentialDurationSecondsoptionalNumberCredentialDurationSecondsoptionaldoubleCredentialDurationSecondsoptional*float64= 3600#
The number of seconds for which the credential is valid.
roleAliasoptionalstringrole_aliasoptionalstrroleAliasoptionalStringRoleAliasoptionalstringRoleAliasoptional*string#
The role alias.
roleArnstring | IRoleRefrole_arntyping.Union[str, IRoleRef]roleArnStringRoleArnstringRoleArninterface{}required#
The role ARN.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
An array of key-value pairs to apply to this resource.

For more information, see Tag .