amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT.CreateRoleAlias

Description

Creates a role alias.

Requires permission to access the CreateRoleAlias action.

Synopsis

Creating a Request

data CreateRoleAlias Source #

See: newCreateRoleAlias smart constructor.

Constructors

CreateRoleAlias' 

Fields

  • credentialDurationSeconds :: Maybe Natural

    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.

  • tags :: Maybe [Tag]

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

  • roleAlias :: Text

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

  • roleArn :: Text

    The role ARN.

Instances

Instances details
ToJSON CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

ToHeaders CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

ToPath CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

ToQuery CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

AWSRequest CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Associated Types

type AWSResponse CreateRoleAlias #

Generic CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Associated Types

type Rep CreateRoleAlias :: Type -> Type #

Read CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Show CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

NFData CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Methods

rnf :: CreateRoleAlias -> () #

Eq CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Hashable CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

type AWSResponse CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

type Rep CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

type Rep CreateRoleAlias = D1 ('MetaData "CreateRoleAlias" "Amazonka.IoT.CreateRoleAlias" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "CreateRoleAlias'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "credentialDurationSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "roleAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateRoleAlias Source #

Create a value of CreateRoleAlias with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateRoleAlias, createRoleAlias_credentialDurationSeconds - 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.

$sel:tags:CreateRoleAlias', createRoleAlias_tags - 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..."

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

CreateRoleAlias, createRoleAlias_roleArn - The role ARN.

Request Lenses

createRoleAlias_credentialDurationSeconds :: Lens' CreateRoleAlias (Maybe Natural) Source #

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.

createRoleAlias_tags :: Lens' CreateRoleAlias (Maybe [Tag]) Source #

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

createRoleAlias_roleAlias :: Lens' CreateRoleAlias Text Source #

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

Destructuring the Response

data CreateRoleAliasResponse Source #

See: newCreateRoleAliasResponse smart constructor.

Constructors

CreateRoleAliasResponse' 

Fields

Instances

Instances details
Generic CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Associated Types

type Rep CreateRoleAliasResponse :: Type -> Type #

Read CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Show CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

NFData CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Methods

rnf :: CreateRoleAliasResponse -> () #

Eq CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

type Rep CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

type Rep CreateRoleAliasResponse = D1 ('MetaData "CreateRoleAliasResponse" "Amazonka.IoT.CreateRoleAlias" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "CreateRoleAliasResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roleAlias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "roleAliasArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateRoleAliasResponse Source #

Create a value of CreateRoleAliasResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateRoleAlias, createRoleAliasResponse_roleAlias - The role alias.

CreateRoleAliasResponse, createRoleAliasResponse_roleAliasArn - The role alias ARN.

$sel:httpStatus:CreateRoleAliasResponse', createRoleAliasResponse_httpStatus - The response's http status code.

Response Lenses