RoleAliasArgs

data class RoleAliasArgs(val alias: Output<String>? = null, val credentialDuration: Output<Int>? = null, val roleArn: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<RoleAliasArgs>

Provides an IoT role alias.

Example Usage

resources:
role:
type: aws:iam:Role
properties:
name: dynamodb-access-role
assumeRolePolicy: ${assumeRole.json}
alias:
type: aws:iot:RoleAlias
properties:
alias: Thermostat-dynamodb-access-role-alias
roleArn: ${role.arn}
variables:
assumeRole:
fn::invoke:
function: aws:iam:getPolicyDocument
arguments:
effect: Allow
principals:
- type: Service
identifiers:
- credentials.iot.amazonaws.com
actions:
- sts:AssumeRole

Import

Using pulumi import, import IOT Role Alias using the alias. For example:

$ pulumi import aws:iot/roleAlias:RoleAlias example myalias

Constructors

Link copied to clipboard
constructor(alias: Output<String>? = null, credentialDuration: Output<Int>? = null, roleArn: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val alias: Output<String>? = null

The name of the role alias.

Link copied to clipboard
val credentialDuration: Output<Int>? = null

The duration of the credential, in seconds. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 900 seconds (15 minutes) to 43200 seconds (12 hours).

Link copied to clipboard
val roleArn: Output<String>? = null

The identity of the role to which the alias refers.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): RoleAliasArgs