import_certificate
¶
import_certificate(
certificate_identifier: String,
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = 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/database_migration_service.py
6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 | |