| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.DMS.ImportCertificate
Description
Uploads the specified certificate.
Synopsis
- data ImportCertificate = ImportCertificate' {}
- newImportCertificate :: Text -> ImportCertificate
- importCertificate_certificatePem :: Lens' ImportCertificate (Maybe Text)
- importCertificate_certificateWallet :: Lens' ImportCertificate (Maybe ByteString)
- importCertificate_tags :: Lens' ImportCertificate (Maybe [Tag])
- importCertificate_certificateIdentifier :: Lens' ImportCertificate Text
- data ImportCertificateResponse = ImportCertificateResponse' {}
- newImportCertificateResponse :: Int -> ImportCertificateResponse
- importCertificateResponse_certificate :: Lens' ImportCertificateResponse (Maybe Certificate)
- importCertificateResponse_httpStatus :: Lens' ImportCertificateResponse Int
Creating a Request
data ImportCertificate Source #
See: newImportCertificate smart constructor.
Constructors
| ImportCertificate' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ImportCertificate |
Create a value of ImportCertificate with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ImportCertificate, importCertificate_certificatePem - The contents of a .pem file, which contains an X.509 certificate.
ImportCertificate, importCertificate_certificateWallet - The location of an imported Oracle Wallet certificate for use with SSL.
Provide the name of a .sso file using the fileb:// prefix. You
can't provide the certificate inline.
Example: filebase64("${path.root}/rds-ca-2019-root.sso")--
-- Note: This Lens automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens accepts and returns only raw unencoded data.
$sel:tags:ImportCertificate', importCertificate_tags - The tags associated with the certificate.
ImportCertificate, importCertificate_certificateIdentifier - A customer-assigned name for the certificate. Identifiers must begin
with a letter and must contain only ASCII letters, digits, and hyphens.
They can't end with a hyphen or contain two consecutive hyphens.
Request Lenses
importCertificate_certificatePem :: Lens' ImportCertificate (Maybe Text) Source #
The contents of a .pem file, which contains an X.509 certificate.
importCertificate_certificateWallet :: Lens' ImportCertificate (Maybe ByteString) Source #
The location of an imported Oracle Wallet certificate for use with SSL.
Provide the name of a .sso file using the fileb:// prefix. You
can't provide the certificate inline.
Example: filebase64("${path.root}/rds-ca-2019-root.sso")--
-- Note: This Lens automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens accepts and returns only raw unencoded data.
importCertificate_tags :: Lens' ImportCertificate (Maybe [Tag]) Source #
The tags associated with the certificate.
importCertificate_certificateIdentifier :: Lens' ImportCertificate Text Source #
A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.
Destructuring the Response
data ImportCertificateResponse Source #
See: newImportCertificateResponse smart constructor.
Constructors
| ImportCertificateResponse' | |
Fields
| |
Instances
newImportCertificateResponse Source #
Create a value of ImportCertificateResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:certificate:ImportCertificateResponse', importCertificateResponse_certificate - The certificate to be uploaded.
$sel:httpStatus:ImportCertificateResponse', importCertificateResponse_httpStatus - The response's http status code.
Response Lenses
importCertificateResponse_certificate :: Lens' ImportCertificateResponse (Maybe Certificate) Source #
The certificate to be uploaded.
importCertificateResponse_httpStatus :: Lens' ImportCertificateResponse Int Source #
The response's http status code.