Skip to content

/AWS1/CL_IOT=>CREATEROLEALIAS()

About CreateRoleAlias

Creates a role alias.

Requires permission to access the CreateRoleAlias action.

Method Signature

IMPORTING

Required arguments:

IV_ROLEALIAS TYPE /AWS1/IOTROLEALIAS /AWS1/IOTROLEALIAS

The role alias that points to a role ARN. This allows you to change the role without having to update the device.

IV_ROLEARN TYPE /AWS1/IOTROLEARN /AWS1/IOTROLEARN

The role ARN.

Optional arguments:

IV_CREDENTIALDURATIONSECONDS TYPE /AWS1/IOTCREDDURATIONSECONDS /AWS1/IOTCREDDURATIONSECONDS

How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.

This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.

IT_TAGS TYPE /AWS1/CL_IOTTAG=>TT_TAGLIST TT_TAGLIST

Metadata which can be used to manage the role alias.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_IOTCREATEROLEALIASRSP /AWS1/CL_IOTCREATEROLEALIASRSP