libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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.

  • 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
Eq CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Read CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Show CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Generic CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Associated Types

type Rep CreateRoleAlias :: Type -> Type #

NFData CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Methods

rnf :: CreateRoleAlias -> () #

Hashable CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

ToJSON CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

AWSRequest CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Associated Types

type AWSResponse 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

type Rep CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

type Rep CreateRoleAlias = D1 ('MetaData "CreateRoleAlias" "Amazonka.IoT.CreateRoleAlias" "libZSservicesZSamazonka-iotZSamazonka-iot" '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))))
type AWSResponse CreateRoleAlias Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

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:

$sel:credentialDurationSeconds:CreateRoleAlias', createRoleAlias_credentialDurationSeconds - How long (in seconds) the credentials will be valid. The default value is 3,600 seconds.

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

$sel:roleAlias: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.

$sel:roleArn: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.

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
Eq CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Read CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Show CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Generic CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Associated Types

type Rep CreateRoleAliasResponse :: Type -> Type #

NFData CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

Methods

rnf :: CreateRoleAliasResponse -> () #

type Rep CreateRoleAliasResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateRoleAlias

type Rep CreateRoleAliasResponse = D1 ('MetaData "CreateRoleAliasResponse" "Amazonka.IoT.CreateRoleAlias" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateRoleAliasResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roleAliasArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "roleAlias") '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:

$sel:roleAliasArn:CreateRoleAliasResponse', createRoleAliasResponse_roleAliasArn - The role alias ARN.

$sel:roleAlias:CreateRoleAlias', createRoleAliasResponse_roleAlias - The role alias.

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

Response Lenses