/AWS1/IF_NEP=>COPYDBPARAMETERGROUP()¶
About CopyDBParameterGroup¶
Copies the specified DB parameter group.
Method Signature¶
METHODS /AWS1/IF_NEP~COPYDBPARAMETERGROUP
IMPORTING
!IV_SOURCEDBPARAMETERGROUPID TYPE /AWS1/NEPSTRING OPTIONAL
!IV_TARGETDBPARAMETERGROUPID TYPE /AWS1/NEPSTRING OPTIONAL
!IV_TARGETDBPARAMGROUPDESC TYPE /AWS1/NEPSTRING OPTIONAL
!IT_TAGS TYPE /AWS1/CL_NEPTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nepcopydbparamgrprslt
RAISING
/AWS1/CX_NEPDBPARMGRALREXFAULT
/AWS1/CX_NEPDBPRMGRNOTFNDFAULT
/AWS1/CX_NEPDBPRMGRQUOTAEXCD00
/AWS1/CX_NEPCLIENTEXC
/AWS1/CX_NEPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_sourcedbparametergroupid TYPE /AWS1/NEPSTRING /AWS1/NEPSTRING¶
The identifier or ARN for the source DB parameter group. For information about creating an ARN, see Constructing an Amazon Resource Name (ARN).
Constraints:
Must specify a valid DB parameter group.
Must specify a valid DB parameter group identifier, for example
my-db-param-group, or a valid ARN.
iv_targetdbparametergroupid TYPE /AWS1/NEPSTRING /AWS1/NEPSTRING¶
The identifier for the copied DB parameter group.
Constraints:
Cannot be null, empty, or blank.
Must contain from 1 to 255 letters, numbers, or hyphens.
First character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
my-db-parameter-group
iv_targetdbparamgroupdesc TYPE /AWS1/NEPSTRING /AWS1/NEPSTRING¶
A description for the copied DB parameter group.
Optional arguments:¶
it_tags TYPE /AWS1/CL_NEPTAG=>TT_TAGLIST TT_TAGLIST¶
The tags to be assigned to the copied DB parameter group.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_nepcopydbparamgrprslt /AWS1/CL_NEPCOPYDBPARAMGRPRSLT¶
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->copydbparametergroup(
it_tags = VALUE /aws1/cl_neptag=>tt_taglist(
(
new /aws1/cl_neptag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_sourcedbparametergroupid = |string|
iv_targetdbparametergroupid = |string|
iv_targetdbparamgroupdesc = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_dbparametergroup = lo_result->get_dbparametergroup( ).
IF lo_dbparametergroup IS NOT INITIAL.
lv_string = lo_dbparametergroup->get_dbparametergroupname( ).
lv_string = lo_dbparametergroup->get_dbparametergroupfamily( ).
lv_string = lo_dbparametergroup->get_description( ).
lv_string = lo_dbparametergroup->get_dbparametergrouparn( ).
ENDIF.
ENDIF.