/AWS1/IF_DMG=>IMPORTCERTIFICATE()¶
About ImportCertificate¶
Uploads the specified certificate.
Method Signature¶
METHODS /AWS1/IF_DMG~IMPORTCERTIFICATE
IMPORTING
!IV_CERTIFICATEIDENTIFIER TYPE /AWS1/DMGSTRING OPTIONAL
!IV_CERTIFICATEPEM TYPE /AWS1/DMGSECRETSTRING OPTIONAL
!IV_CERTIFICATEWALLET TYPE /AWS1/DMGCERTIFICATEWALLET OPTIONAL
!IT_TAGS TYPE /AWS1/CL_DMGTAG=>TT_TAGLIST OPTIONAL
!IV_KMSKEYID TYPE /AWS1/DMGSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dmgimportcertresponse
RAISING
/AWS1/CX_DMGINVALIDCERTFAULT
/AWS1/CX_DMGKMSKEYNOTACCIBLE00
/AWS1/CX_DMGRESRCALRDYEXFAULT
/AWS1/CX_DMGRESRCQUOTAEXCDFA00
/AWS1/CX_DMGCLIENTEXC
/AWS1/CX_DMGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_certificateidentifier TYPE /AWS1/DMGSTRING /AWS1/DMGSTRING¶
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.
Optional arguments:¶
iv_certificatepem TYPE /AWS1/DMGSECRETSTRING /AWS1/DMGSECRETSTRING¶
The contents of a
.pemfile, which contains an X.509 certificate.
iv_certificatewallet TYPE /AWS1/DMGCERTIFICATEWALLET /AWS1/DMGCERTIFICATEWALLET¶
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")
it_tags TYPE /AWS1/CL_DMGTAG=>TT_TAGLIST TT_TAGLIST¶
The tags associated with the certificate.
iv_kmskeyid TYPE /AWS1/DMGSTRING /AWS1/DMGSTRING¶
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.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dmgimportcertresponse /AWS1/CL_DMGIMPORTCERTRESPONSE¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->importcertificate(
it_tags = VALUE /aws1/cl_dmgtag=>tt_taglist(
(
new /aws1/cl_dmgtag(
iv_key = |string|
iv_resourcearn = |string|
iv_value = |string|
)
)
)
iv_certificateidentifier = |string|
iv_certificatepem = |string|
iv_certificatewallet = '5347567362473873563239796247513D'
iv_kmskeyid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_certificate = lo_result->get_certificate( ).
IF lo_certificate IS NOT INITIAL.
lv_string = lo_certificate->get_certificateidentifier( ).
lv_tstamp = lo_certificate->get_certificatecreationdate( ).
lv_string = lo_certificate->get_certificatepem( ).
lv_certificatewallet = lo_certificate->get_certificatewallet( ).
lv_string = lo_certificate->get_certificatearn( ).
lv_string = lo_certificate->get_certificateowner( ).
lv_tstamp = lo_certificate->get_validfromdate( ).
lv_tstamp = lo_certificate->get_validtodate( ).
lv_string = lo_certificate->get_signingalgorithm( ).
lv_integeroptional = lo_certificate->get_keylength( ).
lv_string = lo_certificate->get_kmskeyid( ).
ENDIF.
ENDIF.
Import certificate¶
Uploads the specified certificate.
DATA(lo_result) = lo_client->importcertificate(
iv_certificateidentifier = ||
iv_certificatepem = ||
).