Smaws_Client_Transfer.ImportCertificateImports the signing and encryption certificates that you need to create local (AS2) profiles and partner profiles.
You can import both the certificate and its chain in the Certificate parameter.
After importing a certificate, Transfer Family automatically creates a Amazon CloudWatch metric called DaysUntilExpiry that tracks the number of days until the certificate expires. The metric is based on the InactiveDate parameter and is published daily in the AWS/Transfer namespace.
It can take up to a full day after importing a certificate for Transfer Family to emit the DaysUntilExpiry metric to your account.
If you use the Certificate parameter to upload both the certificate and its chain, don't use the CertificateChain parameter.
CloudWatch monitoring
The DaysUntilExpiry metric includes the following specifications:
CertificateId (always present), Description (if provided during certificate import)val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServiceError of Types.internal_service_error
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.import_certificate_request ->
(Types.import_certificate_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServiceError of Types.internal_service_error
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.import_certificate_request ->
(Types.import_certificate_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServiceError of Types.internal_service_error
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result