Menu
AWS Database Migration Service
API Reference (API Version 2016-01-01)

ImportCertificate

Uploads the specified certificate.

Request Syntax

{
   "CertificateIdentifier": "string",
   "CertificatePem": "string",
   "CertificateWallet": blob,
   "Tags": [ 
      { 
         "Key": "string",
         "Value": "string"
      }
   ]
}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

CertificateIdentifier

The customer-assigned name of the certificate. Valid characters are A-z and 0-9.

Type: String

Required: Yes

CertificatePem

The contents of the .pem X.509 certificate file for the certificate.

Type: String

Required: No

CertificateWallet

The location of the imported Oracle Wallet certificate for use with SSL.

Type: Base64-encoded binary data object

Required: No

Tags

The tags associated with the certificate.

Type: Array of Tag objects

Required: No

Response Syntax

{
   "Certificate": { 
      "CertificateArn": "string",
      "CertificateCreationDate": number,
      "CertificateIdentifier": "string",
      "CertificateOwner": "string",
      "CertificatePem": "string",
      "CertificateWallet": blob,
      "KeyLength": number,
      "SigningAlgorithm": "string",
      "ValidFromDate": number,
      "ValidToDate": number
   }
}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Certificate

The certificate to be uploaded.

Type: Certificate object

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidCertificateFault

The certificate was not valid.

HTTP Status Code: 400

ResourceAlreadyExistsFault

The resource you are attempting to create already exists.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: