| 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.Transfer.ImportCertificate
Description
Imports the signing and encryption certificates that you need to create local (AS2) profiles and partner profiles.
Synopsis
- data ImportCertificate = ImportCertificate' {}
- newImportCertificate :: CertificateUsageType -> Text -> ImportCertificate
- importCertificate_activeDate :: Lens' ImportCertificate (Maybe UTCTime)
- importCertificate_certificateChain :: Lens' ImportCertificate (Maybe Text)
- importCertificate_description :: Lens' ImportCertificate (Maybe Text)
- importCertificate_inactiveDate :: Lens' ImportCertificate (Maybe UTCTime)
- importCertificate_privateKey :: Lens' ImportCertificate (Maybe Text)
- importCertificate_tags :: Lens' ImportCertificate (Maybe (NonEmpty Tag))
- importCertificate_usage :: Lens' ImportCertificate CertificateUsageType
- importCertificate_certificate :: Lens' ImportCertificate Text
- data ImportCertificateResponse = ImportCertificateResponse' {
- httpStatus :: Int
- certificateId :: Text
- newImportCertificateResponse :: Int -> Text -> ImportCertificateResponse
- importCertificateResponse_httpStatus :: Lens' ImportCertificateResponse Int
- importCertificateResponse_certificateId :: Lens' ImportCertificateResponse Text
Creating a Request
data ImportCertificate Source #
See: newImportCertificate smart constructor.
Constructors
| ImportCertificate' | |
Fields
| |
Instances
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_activeDate - An optional date that specifies when the certificate becomes active.
ImportCertificate, importCertificate_certificateChain - An optional list of certificates that make up the chain for the
certificate that's being imported.
ImportCertificate, importCertificate_description - A short description that helps identify the certificate.
ImportCertificate, importCertificate_inactiveDate - An optional date that specifies when the certificate becomes inactive.
$sel:privateKey:ImportCertificate', importCertificate_privateKey - The file that contains the private key for the certificate that's being
imported.
ImportCertificate, importCertificate_tags - Key-value pairs that can be used to group and search for certificates.
ImportCertificate, importCertificate_usage - Specifies whether this certificate is used for signing or encryption.
ImportCertificate, importCertificate_certificate - The file that contains the certificate to import.
Request Lenses
importCertificate_activeDate :: Lens' ImportCertificate (Maybe UTCTime) Source #
An optional date that specifies when the certificate becomes active.
importCertificate_certificateChain :: Lens' ImportCertificate (Maybe Text) Source #
An optional list of certificates that make up the chain for the certificate that's being imported.
importCertificate_description :: Lens' ImportCertificate (Maybe Text) Source #
A short description that helps identify the certificate.
importCertificate_inactiveDate :: Lens' ImportCertificate (Maybe UTCTime) Source #
An optional date that specifies when the certificate becomes inactive.
importCertificate_privateKey :: Lens' ImportCertificate (Maybe Text) Source #
The file that contains the private key for the certificate that's being imported.
importCertificate_tags :: Lens' ImportCertificate (Maybe (NonEmpty Tag)) Source #
Key-value pairs that can be used to group and search for certificates.
importCertificate_usage :: Lens' ImportCertificate CertificateUsageType Source #
Specifies whether this certificate is used for signing or encryption.
importCertificate_certificate :: Lens' ImportCertificate Text Source #
The file that contains the certificate to import.
Destructuring the Response
data ImportCertificateResponse Source #
See: newImportCertificateResponse smart constructor.
Constructors
| ImportCertificateResponse' | |
Fields
| |
Instances
newImportCertificateResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> ImportCertificateResponse |
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:httpStatus:ImportCertificateResponse', importCertificateResponse_httpStatus - The response's http status code.
ImportCertificateResponse, importCertificateResponse_certificateId - An array of identifiers for the imported certificates. You use this
identifier for working with profiles and partner profiles.
Response Lenses
importCertificateResponse_httpStatus :: Lens' ImportCertificateResponse Int Source #
The response's http status code.
importCertificateResponse_certificateId :: Lens' ImportCertificateResponse Text Source #
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.