amazonka-iot-1.4.3: Amazon IoT SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 # 
Data TransferCertificate Source # 

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 # 
Show TransferCertificate Source # 
Generic TransferCertificate Source # 
ToJSON TransferCertificate Source # 
Hashable TransferCertificate Source # 
NFData TransferCertificate Source # 

Methods

rnf :: TransferCertificate -> () #

AWSRequest TransferCertificate Source # 
ToPath TransferCertificate Source # 
ToHeaders TransferCertificate Source # 
ToQuery TransferCertificate Source # 
type Rep TransferCertificate Source # 
type Rep TransferCertificate = D1 (MetaData "TransferCertificate" "Network.AWS.IoT.TransferCertificate" "amazonka-iot-1.4.3-GQ8Z5ol1Knl4MG0H0roOVJ" False) (C1 (MetaCons "TransferCertificate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_tcTransferMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_tcCertificateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_tcTargetAWSAccount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs TransferCertificate Source # 

Request Lenses

tcCertificateId :: Lens' TransferCertificate Text Source #

The ID of the certificate.

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 # 
Data TransferCertificateResponse Source # 

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 # 
Show TransferCertificateResponse Source # 
Generic TransferCertificateResponse Source # 
NFData TransferCertificateResponse Source # 
type Rep TransferCertificateResponse Source # 
type Rep TransferCertificateResponse = D1 (MetaData "TransferCertificateResponse" "Network.AWS.IoT.TransferCertificate" "amazonka-iot-1.4.3-GQ8Z5ol1Knl4MG0H0roOVJ" False) (C1 (MetaCons "TransferCertificateResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_tcrsTransferredCertificateARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses