import_certificate
async
¶
import_certificate(
certificate_identifier: String,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
certificate_pem: Optional[SecretString] = None,
certificate_wallet: Optional[CertificateWallet] = None,
tags: Optional[TagList] = None,
kms_key_id: Optional[String] = None,
) -> ImportCertificateResponse
Uploads the specified certificate.
Parameters:
-
certificate_identifier(String) –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.
-
certificate_pem(Optional[SecretString], default:None) –The contents of a
.pemfile, which contains an X.509 certificate. -
certificate_wallet(Optional[CertificateWallet], default:None) –The location of an imported Oracle Wallet certificate for use with SSL. Provide the name of a
.ssofile using thefileb://prefix. You can't provide the certificate inline.Example:
filebase64("${path.root}/rds-ca-2019-root.sso") -
tags(Optional[TagList], default:None) –The tags associated with the certificate.
-
kms_key_id(Optional[String], default:None) –An KMS key identifier that is used to encrypt the certificate.
If you don't specify a value for the
KmsKeyIdparameter, then DMS uses your default encryption key.KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Region.
Raises:
-
InvalidCertificateFault–The certificate was not valid.
-
KMSKeyNotAccessibleFault–DMS cannot access the KMS key.
-
ResourceAlreadyExistsFault–The resource you are attempting to create already exists.
-
ResourceQuotaExceededFault–The quota for this resource quota has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Import certificate Uploads the specified certificate.
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 | |