Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@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. It can be deactivated using the UpdateCertificate API.
The certificate must not have any policies attached to it. These can be detached using the DetachPrincipalPolicy API.
See: AWS API Reference for TransferCertificate.
- transferCertificate :: Text -> Text -> TransferCertificate
- data TransferCertificate
- 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:
data TransferCertificate Source
The input for the TransferCertificate operation.
See: transferCertificate
smart constructor.
Request Lenses
tcCertificateId :: Lens' TransferCertificate Text Source
The ID of the certificate.
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:
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.