import * as core from "@terrascript/core"; export interface RoleAliasArgs extends core.ResourceArgs { /** * (Required) The name of the role alias. */ alias: string | core.StringOut; /** * (Optional) The duration of the credential, in seconds. If you do not specify a value for this settin * g, the default maximum of one hour is applied. This setting can have a value from 900 seconds (15 mi * nutes) to 43200 seconds (12 hours). */ credentialDuration?: number | core.NumberOut; /** * (Required) The identity of the role to which the alias refers. */ roleArn: string | core.StringOut; } export class RoleAlias extends core.Resource { /** * (Required) The name of the role alias. */ @core.attr(String) public alias!: string | core.StringOut; /** * The ARN assigned by AWS to this role alias. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The duration of the credential, in seconds. If you do not specify a value for this settin * g, the default maximum of one hour is applied. This setting can have a value from 900 seconds (15 mi * nutes) to 43200 seconds (12 hours). */ @core.attr(Number) public credentialDuration?: number | core.NumberOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The identity of the role to which the alias refers. */ @core.attr(String) public roleArn!: string | core.StringOut; constructor(name: string, args?: RoleAliasArgs) { super(name, "aws_iot_role_alias", args); } public override getNamespace(): string { return "aws_iot"; } }