amazonka-iot-1.4.5: 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 #

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 #

The input for the TransferCertificate operation.

See: transferCertificate smart constructor.

Instances

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

Methods

rnf :: TransferCertificate -> () #

AWSRequest TransferCertificate # 
ToQuery TransferCertificate # 
ToPath TransferCertificate # 
ToHeaders TransferCertificate # 
type Rep TransferCertificate # 
type Rep TransferCertificate = D1 (MetaData "TransferCertificate" "Network.AWS.IoT.TransferCertificate" "amazonka-iot-1.4.5-HnBhW38Gbiq1QAd2zPEJmJ" 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 # 

Request Lenses

tcCertificateId :: Lens' TransferCertificate Text #

The ID of the certificate.

Destructuring the Response

transferCertificateResponse #

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 #

The output from the TransferCertificate operation.

See: transferCertificateResponse smart constructor.

Instances

Eq TransferCertificateResponse # 
Data TransferCertificateResponse # 

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

Response Lenses

tcrsResponseStatus :: Lens' TransferCertificateResponse Int #

  • - | The response status code.