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

Contents

Description

Transfers the specified certificate to the specified AWS account.

You can cancel the transfer until it is acknowledged by the recipient.

No notification is sent to the transfer destination's account. It is up to the caller to notify the transfer target.

The certificate being transferred must not be in the ACTIVE state. You can use the UpdateCertificate API to deactivate it.

The certificate must not have any policies attached to it. You can use the DetachPrincipalPolicy API to detach them.

Synopsis

Creating a Request

transferCertificate Source #

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

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

data TransferCertificate Source #

The input for the TransferCertificate operation.

See: transferCertificate smart constructor.

Instances
Eq TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Data TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Methods

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

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

toConstr :: TransferCertificate -> Constr #

dataTypeOf :: TransferCertificate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Show TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Generic TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Associated Types

type Rep TransferCertificate :: Type -> Type #

Hashable TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

ToJSON TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

AWSRequest TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Associated Types

type Rs TransferCertificate :: Type #

ToHeaders TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

ToPath TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

ToQuery TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

NFData TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Methods

rnf :: TransferCertificate -> () #

type Rep TransferCertificate Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

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

Defined in Network.AWS.IoT.TransferCertificate

Request Lenses

tcCertificateId :: Lens' TransferCertificate Text Source #

The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)

Destructuring the Response

transferCertificateResponse Source #

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

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

data TransferCertificateResponse Source #

The output from the TransferCertificate operation.

See: transferCertificateResponse smart constructor.

Instances
Eq TransferCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Data TransferCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Methods

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

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

toConstr :: TransferCertificateResponse -> Constr #

dataTypeOf :: TransferCertificateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TransferCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Show TransferCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Generic TransferCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

Associated Types

type Rep TransferCertificateResponse :: Type -> Type #

NFData TransferCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

type Rep TransferCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.TransferCertificate

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

Response Lenses