amazonka-iot-1.6.1: Amazon IoT SDK.

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

Network.AWS.IoT.CreateRoleAlias

Contents

Description

Creates a role alias.

Synopsis

Creating a Request

createRoleAlias Source #

Creates a value of CreateRoleAlias with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateRoleAlias Source #

See: createRoleAlias smart constructor.

Instances
Eq CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Data CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateRoleAlias -> c CreateRoleAlias #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateRoleAlias #

toConstr :: CreateRoleAlias -> Constr #

dataTypeOf :: CreateRoleAlias -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateRoleAlias) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateRoleAlias) #

gmapT :: (forall b. Data b => b -> b) -> CreateRoleAlias -> CreateRoleAlias #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateRoleAlias -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateRoleAlias -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateRoleAlias -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateRoleAlias -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateRoleAlias -> m CreateRoleAlias #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRoleAlias -> m CreateRoleAlias #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRoleAlias -> m CreateRoleAlias #

Read CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Show CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Generic CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Associated Types

type Rep CreateRoleAlias :: Type -> Type #

Hashable CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

ToJSON CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

AWSRequest CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Associated Types

type Rs CreateRoleAlias :: Type #

ToHeaders CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

ToPath CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

ToQuery CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

NFData CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Methods

rnf :: CreateRoleAlias -> () #

type Rep CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

type Rep CreateRoleAlias = D1 (MetaData "CreateRoleAlias" "Network.AWS.IoT.CreateRoleAlias" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "CreateRoleAlias'" PrefixI True) (S1 (MetaSel (Just "_craCredentialDurationSeconds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: (S1 (MetaSel (Just "_craRoleAlias") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_craRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateRoleAlias Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Request Lenses

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

How long (in seconds) the credentials will be valid.

craRoleAlias :: 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

createRoleAliasResponse Source #

Creates a value of CreateRoleAliasResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateRoleAliasResponse Source #

See: createRoleAliasResponse smart constructor.

Instances
Eq CreateRoleAliasResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Data CreateRoleAliasResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateRoleAliasResponse -> c CreateRoleAliasResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateRoleAliasResponse #

toConstr :: CreateRoleAliasResponse -> Constr #

dataTypeOf :: CreateRoleAliasResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateRoleAliasResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateRoleAliasResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateRoleAliasResponse -> CreateRoleAliasResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateRoleAliasResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateRoleAliasResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateRoleAliasResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateRoleAliasResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateRoleAliasResponse -> m CreateRoleAliasResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRoleAliasResponse -> m CreateRoleAliasResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRoleAliasResponse -> m CreateRoleAliasResponse #

Read CreateRoleAliasResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Show CreateRoleAliasResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Generic CreateRoleAliasResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Associated Types

type Rep CreateRoleAliasResponse :: Type -> Type #

NFData CreateRoleAliasResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

Methods

rnf :: CreateRoleAliasResponse -> () #

type Rep CreateRoleAliasResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateRoleAlias

type Rep CreateRoleAliasResponse = D1 (MetaData "CreateRoleAliasResponse" "Network.AWS.IoT.CreateRoleAlias" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "CreateRoleAliasResponse'" PrefixI True) (S1 (MetaSel (Just "_crarsRoleAliasARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_crarsRoleAlias") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_crarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses