/AWS1/IF_RDS=>COPYDBCLUSTERPARAMETERGROUP()¶
About CopyDBClusterParameterGroup¶
Copies the specified DB cluster parameter group.
You can't copy a default DB cluster parameter group. Instead, create a new custom DB cluster parameter group, which copies the default parameters and values for the specified DB cluster parameter group family.
Method Signature¶
METHODS /AWS1/IF_RDS~COPYDBCLUSTERPARAMETERGROUP
IMPORTING
!IV_SOURCEDBCLUSTPARAMGROUPID TYPE /AWS1/RDSSTRING OPTIONAL
!IV_TARGETDBCLUSTPARAMGROUPID TYPE /AWS1/RDSSTRING OPTIONAL
!IV_TGTDBCLUSTPARAMGROUPDESC TYPE /AWS1/RDSSTRING OPTIONAL
!IT_TAGS TYPE /AWS1/CL_RDSTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rdscopydbclstparmgrrs
RAISING
/AWS1/CX_RDSDBPARMGRALREXFAULT
/AWS1/CX_RDSDBPRMGRNOTFNDFAULT
/AWS1/CX_RDSDBPRMGRQUOTAEXCD00
/AWS1/CX_RDSCLIENTEXC
/AWS1/CX_RDSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_sourcedbclustparamgroupid TYPE /AWS1/RDSSTRING /AWS1/RDSSTRING¶
The identifier or Amazon Resource Name (ARN) for the source DB cluster parameter group. For information about creating an ARN, see Constructing an ARN for Amazon RDS in the Amazon Aurora User Guide.
Constraints:
Must specify a valid DB cluster parameter group.
iv_targetdbclustparamgroupid TYPE /AWS1/RDSSTRING /AWS1/RDSSTRING¶
The identifier for the copied DB cluster parameter group.
Constraints:
Can't be null, empty, or blank
Must contain from 1 to 255 letters, numbers, or hyphens
First character must be a letter
Can't end with a hyphen or contain two consecutive hyphens
Example:
my-cluster-param-group1
iv_tgtdbclustparamgroupdesc TYPE /AWS1/RDSSTRING /AWS1/RDSSTRING¶
A description for the copied DB cluster parameter group.
Optional arguments:¶
it_tags TYPE /AWS1/CL_RDSTAG=>TT_TAGLIST TT_TAGLIST¶
A list of tags.
For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rdscopydbclstparmgrrs /AWS1/CL_RDSCOPYDBCLSTPARMGRRS¶
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->copydbclusterparametergroup(
it_tags = VALUE /aws1/cl_rdstag=>tt_taglist(
(
new /aws1/cl_rdstag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_sourcedbclustparamgroupid = |string|
iv_targetdbclustparamgroupid = |string|
iv_tgtdbclustparamgroupdesc = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_dbclusterparametergroup = lo_result->get_dbclusterparametergroup( ).
IF lo_dbclusterparametergroup IS NOT INITIAL.
lv_string = lo_dbclusterparametergroup->get_dbclusterparamgroupname( ).
lv_string = lo_dbclusterparametergroup->get_dbparametergroupfamily( ).
lv_string = lo_dbclusterparametergroup->get_description( ).
lv_string = lo_dbclusterparametergroup->get_dbclusterparamgrouparn( ).
ENDIF.
ENDIF.
To copy a DB cluster parameter group¶
This example copies a DB cluster parameter group.
DATA(lo_result) = lo_client->copydbclusterparametergroup(
iv_sourcedbclustparamgroupid = |mydbclusterparametergroup|
iv_targetdbclustparamgroupid = |mydbclusterparametergroup-copy|
iv_tgtdbclustparamgroupdesc = |My DB cluster parameter group copy|
).