/AWS1/IF_DRS=>CREATEREPLCONFTEMPLATE()¶
About CreateReplicationConfigurationTemplate¶
Creates a new ReplicationConfigurationTemplate.
Method Signature¶
METHODS /AWS1/IF_DRS~CREATEREPLCONFTEMPLATE
IMPORTING
!IV_STAGINGAREASUBNETID TYPE /AWS1/DRSSUBNETID OPTIONAL
!IV_ASSOCDEFAULTSECURITYGROUP TYPE /AWS1/DRSBOOLEAN OPTIONAL
!IT_REPLSERVERSSECGROUPSIDS TYPE /AWS1/CL_DRSREPLSERVERSSECGR00=>TT_REPLSERVERSSECGROUPSIDS OPTIONAL
!IV_REPLSERVERINSTANCETYPE TYPE /AWS1/DRSEC2INSTANCETYPE OPTIONAL
!IV_USEDEDICATEDREPLSERVER TYPE /AWS1/DRSBOOLEAN OPTIONAL
!IV_DEFLARGESTAGINGDISKTYPE TYPE /AWS1/DRSREPLCONFDEFLARGESTA00 OPTIONAL
!IV_EBSENCRYPTION TYPE /AWS1/DRSREPLCONFEBSENCRYPTION OPTIONAL
!IV_EBSENCRYPTIONKEYARN TYPE /AWS1/DRSARN OPTIONAL
!IV_BANDWIDTHTHROTTLING TYPE /AWS1/DRSPOSITIVEINTEGER OPTIONAL
!IV_DATAPLANEROUTING TYPE /AWS1/DRSREPLCONFDATAPLANERO00 OPTIONAL
!IV_CREATEPUBLICIP TYPE /AWS1/DRSBOOLEAN OPTIONAL
!IT_STAGINGAREATAGS TYPE /AWS1/CL_DRSTAGSMAP_W=>TT_TAGSMAP OPTIONAL
!IT_PITPOLICY TYPE /AWS1/CL_DRSPITPOLICYRULE=>TT_PITPOLICY OPTIONAL
!IT_TAGS TYPE /AWS1/CL_DRSTAGSMAP_W=>TT_TAGSMAP OPTIONAL
!IV_AUTOREPLICATENEWDISKS TYPE /AWS1/DRSBOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_drsreplconftemplate
RAISING
/AWS1/CX_DRSACCESSDENIEDEX
/AWS1/CX_DRSINTERNALSERVEREX
/AWS1/CX_DRSSERVICEQUOTAEXCDEX
/AWS1/CX_DRSTHROTTLINGEX
/AWS1/CX_DRSUNINITIALIZEDACEX
/AWS1/CX_DRSVALIDATIONEX
/AWS1/CX_DRSCLIENTEXC
/AWS1/CX_DRSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_stagingareasubnetid TYPE /AWS1/DRSSUBNETID /AWS1/DRSSUBNETID¶
The subnet to be used by the replication staging area.
iv_assocdefaultsecuritygroup TYPE /AWS1/DRSBOOLEAN /AWS1/DRSBOOLEAN¶
Whether to associate the default Elastic Disaster Recovery Security group with the Replication Configuration Template.
it_replserverssecgroupsids TYPE /AWS1/CL_DRSREPLSERVERSSECGR00=>TT_REPLSERVERSSECGROUPSIDS TT_REPLSERVERSSECGROUPSIDS¶
The security group IDs that will be used by the replication server.
iv_replserverinstancetype TYPE /AWS1/DRSEC2INSTANCETYPE /AWS1/DRSEC2INSTANCETYPE¶
The instance type to be used for the replication server.
iv_usededicatedreplserver TYPE /AWS1/DRSBOOLEAN /AWS1/DRSBOOLEAN¶
Whether to use a dedicated Replication Server in the replication staging area.
iv_deflargestagingdisktype TYPE /AWS1/DRSREPLCONFDEFLARGESTA00 /AWS1/DRSREPLCONFDEFLARGESTA00¶
The Staging Disk EBS volume type to be used during replication.
iv_ebsencryption TYPE /AWS1/DRSREPLCONFEBSENCRYPTION /AWS1/DRSREPLCONFEBSENCRYPTION¶
The type of EBS encryption to be used during replication.
iv_bandwidththrottling TYPE /AWS1/DRSPOSITIVEINTEGER /AWS1/DRSPOSITIVEINTEGER¶
Configure bandwidth throttling for the outbound data transfer rate of the Source Server in Mbps.
iv_dataplanerouting TYPE /AWS1/DRSREPLCONFDATAPLANERO00 /AWS1/DRSREPLCONFDATAPLANERO00¶
The data plane routing mechanism that will be used for replication.
iv_createpublicip TYPE /AWS1/DRSBOOLEAN /AWS1/DRSBOOLEAN¶
Whether to create a Public IP for the Recovery Instance by default.
it_stagingareatags TYPE /AWS1/CL_DRSTAGSMAP_W=>TT_TAGSMAP TT_TAGSMAP¶
A set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc.
it_pitpolicy TYPE /AWS1/CL_DRSPITPOLICYRULE=>TT_PITPOLICY TT_PITPOLICY¶
The Point in time (PIT) policy to manage snapshots taken during replication.
Optional arguments:¶
iv_ebsencryptionkeyarn TYPE /AWS1/DRSARN /AWS1/DRSARN¶
The ARN of the EBS encryption key to be used during replication.
it_tags TYPE /AWS1/CL_DRSTAGSMAP_W=>TT_TAGSMAP TT_TAGSMAP¶
A set of tags to be associated with the Replication Configuration Template resource.
iv_autoreplicatenewdisks TYPE /AWS1/DRSBOOLEAN /AWS1/DRSBOOLEAN¶
Whether to allow the AWS replication agent to automatically replicate newly added disks.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_drsreplconftemplate /AWS1/CL_DRSREPLCONFTEMPLATE¶
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->createreplconftemplate(
it_pitpolicy = VALUE /aws1/cl_drspitpolicyrule=>tt_pitpolicy(
(
new /aws1/cl_drspitpolicyrule(
iv_enabled = ABAP_TRUE
iv_interval = 123
iv_retentionduration = 123
iv_ruleid = 123
iv_units = |string|
)
)
)
it_replserverssecgroupsids = VALUE /aws1/cl_drsreplserverssecgr00=>tt_replserverssecgroupsids(
( new /aws1/cl_drsreplserverssecgr00( |string| ) )
)
it_stagingareatags = VALUE /aws1/cl_drstagsmap_w=>tt_tagsmap(
(
VALUE /aws1/cl_drstagsmap_w=>ts_tagsmap_maprow(
key = |string|
value = new /aws1/cl_drstagsmap_w( |string| )
)
)
)
it_tags = VALUE /aws1/cl_drstagsmap_w=>tt_tagsmap(
(
VALUE /aws1/cl_drstagsmap_w=>ts_tagsmap_maprow(
key = |string|
value = new /aws1/cl_drstagsmap_w( |string| )
)
)
)
iv_assocdefaultsecuritygroup = ABAP_TRUE
iv_autoreplicatenewdisks = ABAP_TRUE
iv_bandwidththrottling = 123
iv_createpublicip = ABAP_TRUE
iv_dataplanerouting = |string|
iv_deflargestagingdisktype = |string|
iv_ebsencryption = |string|
iv_ebsencryptionkeyarn = |string|
iv_replserverinstancetype = |string|
iv_stagingareasubnetid = |string|
iv_usededicatedreplserver = ABAP_TRUE
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_replicationconfiguratio = lo_result->get_replconftemplateid( ).
lv_arn = lo_result->get_arn( ).
lv_subnetid = lo_result->get_stagingareasubnetid( ).
lv_boolean = lo_result->get_assocdefaultsecgroup( ).
LOOP AT lo_result->get_replserverssecgroupsids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_securitygroupid = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_ec2instancetype = lo_result->get_replserverinstancetype( ).
lv_boolean = lo_result->get_usededicatedreplserver( ).
lv_replicationconfiguratio_1 = lo_result->get_deflargestagingdisktype( ).
lv_replicationconfiguratio_2 = lo_result->get_ebsencryption( ).
lv_arn = lo_result->get_ebsencryptionkeyarn( ).
lv_positiveinteger = lo_result->get_bandwidththrottling( ).
lv_replicationconfiguratio_3 = lo_result->get_dataplanerouting( ).
lv_boolean = lo_result->get_createpublicip( ).
LOOP AT lo_result->get_stagingareatags( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_tags( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_pitpolicy( ) into lo_row_3.
lo_row_4 = lo_row_3.
IF lo_row_4 IS NOT INITIAL.
lv_positiveinteger = lo_row_4->get_ruleid( ).
lv_pitpolicyruleunits = lo_row_4->get_units( ).
lv_strictlypositiveinteger = lo_row_4->get_interval( ).
lv_strictlypositiveinteger = lo_row_4->get_retentionduration( ).
lv_boolean = lo_row_4->get_enabled( ).
ENDIF.
ENDLOOP.
lv_boolean = lo_result->get_autoreplicatenewdisks( ).
ENDIF.