Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- transferCertificate :: Text -> Text -> TransferCertificate
- data TransferCertificate
- tcTransferMessage :: Lens' TransferCertificate (Maybe Text)
- tcCertificateId :: Lens' TransferCertificate Text
- tcTargetAWSAccount :: Lens' TransferCertificate Text
- transferCertificateResponse :: Int -> TransferCertificateResponse
- data TransferCertificateResponse
- tcrsTransferredCertificateARN :: Lens' TransferCertificateResponse (Maybe Text)
- tcrsResponseStatus :: Lens' TransferCertificateResponse Int
Creating a Request
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:
tcTransferMessage
- The transfer message.tcCertificateId
- The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)tcTargetAWSAccount
- The AWS account.
data TransferCertificate Source #
The input for the TransferCertificate operation.
See: transferCertificate
smart constructor.
Request Lenses
tcTransferMessage :: Lens' TransferCertificate (Maybe Text) Source #
The transfer message.
tcCertificateId :: Lens' TransferCertificate Text Source #
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
tcTargetAWSAccount :: Lens' TransferCertificate Text Source #
The AWS account.
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:
tcrsTransferredCertificateARN
- The ARN of the certificate.tcrsResponseStatus
- -- | The response status code.
data TransferCertificateResponse Source #
The output from the TransferCertificate operation.
See: transferCertificateResponse
smart constructor.
Response Lenses
tcrsTransferredCertificateARN :: Lens' TransferCertificateResponse (Maybe Text) Source #
The ARN of the certificate.
tcrsResponseStatus :: Lens' TransferCertificateResponse Int Source #
- - | The response status code.