/AWS1/IF_MPB=>CREATERESPONDERGATEWAY()¶
About CreateResponderGateway¶
Creates a responder gateway.
A domain name or managed endpoint is required.
Method Signature¶
METHODS /AWS1/IF_MPB~CREATERESPONDERGATEWAY
IMPORTING
!IV_VPCID TYPE /AWS1/MPBVPCID OPTIONAL
!IT_SUBNETIDS TYPE /AWS1/CL_MPBSUBNETIDLIST_W=>TT_SUBNETIDLIST OPTIONAL
!IT_SECURITYGROUPIDS TYPE /AWS1/CL_MPBSECGROUPIDLIST_W=>TT_SECURITYGROUPIDLIST OPTIONAL
!IV_DOMAINNAME TYPE /AWS1/MPBDOMAINNAME OPTIONAL
!IV_PORT TYPE /AWS1/MPBINTEGER OPTIONAL
!IV_PROTOCOL TYPE /AWS1/MPBPROTOCOL OPTIONAL
!IO_LISTENERCONFIG TYPE REF TO /AWS1/CL_MPBLISTENERCONFIG OPTIONAL
!IO_TRUSTSTORECONFIGURATION TYPE REF TO /AWS1/CL_MPBTRUSTSTORECONF OPTIONAL
!IO_MANAGEDENDPOINTCONF TYPE REF TO /AWS1/CL_MPBMANAGEDENDPTCONF OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/MPBSTRING OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/MPBSTRING OPTIONAL
!IT_TAGS TYPE /AWS1/CL_MPBTAGSMAP_W=>TT_TAGSMAP OPTIONAL
!IV_GATEWAYTYPE TYPE /AWS1/MPBGATEWAYTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mpbcreaterespgwrsp
RAISING
/AWS1/CX_MPBACCESSDENIEDEX
/AWS1/CX_MPBINTERNALSERVEREX
/AWS1/CX_MPBRESOURCENOTFOUNDEX
/AWS1/CX_MPBSERVICEQUOTAEXCDEX
/AWS1/CX_MPBTHROTTLINGEX
/AWS1/CX_MPBVALIDATIONEX
/AWS1/CX_MPBCLIENTEXC
/AWS1/CX_MPBSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_vpcid TYPE /AWS1/MPBVPCID /AWS1/MPBVPCID¶
The unique identifier of the Virtual Private Cloud (VPC).
it_subnetids TYPE /AWS1/CL_MPBSUBNETIDLIST_W=>TT_SUBNETIDLIST TT_SUBNETIDLIST¶
The unique identifiers of the subnets.
it_securitygroupids TYPE /AWS1/CL_MPBSECGROUPIDLIST_W=>TT_SECURITYGROUPIDLIST TT_SECURITYGROUPIDLIST¶
The unique identifiers of the security groups.
iv_port TYPE /AWS1/MPBINTEGER /AWS1/MPBINTEGER¶
The networking port to use.
iv_protocol TYPE /AWS1/MPBPROTOCOL /AWS1/MPBPROTOCOL¶
The networking protocol to use.
iv_clienttoken TYPE /AWS1/MPBSTRING /AWS1/MPBSTRING¶
The unique client token.
Optional arguments:¶
iv_domainname TYPE /AWS1/MPBDOMAINNAME /AWS1/MPBDOMAINNAME¶
The domain name for the responder gateway.
io_listenerconfig TYPE REF TO /AWS1/CL_MPBLISTENERCONFIG /AWS1/CL_MPBLISTENERCONFIG¶
Listener configuration for the protocols (HTTP, HTTPS, or both) accepted by the gateway.
io_truststoreconfiguration TYPE REF TO /AWS1/CL_MPBTRUSTSTORECONF /AWS1/CL_MPBTRUSTSTORECONF¶
The configuration of the trust store.
io_managedendpointconf TYPE REF TO /AWS1/CL_MPBMANAGEDENDPTCONF /AWS1/CL_MPBMANAGEDENDPTCONF¶
The configuration for the managed endpoint.
iv_description TYPE /AWS1/MPBSTRING /AWS1/MPBSTRING¶
An optional description for the responder gateway.
it_tags TYPE /AWS1/CL_MPBTAGSMAP_W=>TT_TAGSMAP TT_TAGSMAP¶
A map of the key-value pairs of the tag or tags to assign to the resource.
iv_gatewaytype TYPE /AWS1/MPBGATEWAYTYPE /AWS1/MPBGATEWAYTYPE¶
The type of gateway. Valid values are
EXTERNALorINTERNAL.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mpbcreaterespgwrsp /AWS1/CL_MPBCREATERESPGWRSP¶
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->createrespondergateway(
io_listenerconfig = new /aws1/cl_mpblistenerconfig(
it_protocols = VALUE /aws1/cl_mpbprotocollist_w=>tt_protocollist(
( new /aws1/cl_mpbprotocollist_w( |string| ) )
)
)
io_managedendpointconf = new /aws1/cl_mpbmanagedendptconf(
io_autoscalinggroups = new /aws1/cl_mpbautoscgroupsconf(
io_healthcheckconfig = new /aws1/cl_mpbhealthcheckconfig(
iv_healthythresholdcount = 123
iv_intervalseconds = 123
iv_path = |string|
iv_port = 123
iv_protocol = |string|
iv_statuscodematcher = |string|
iv_timeoutms = 123
iv_unhealthythresholdcount = 123
)
it_autoscalinggroupnames = VALUE /aws1/cl_mpbautoscgrpnamelst_w=>tt_autoscalinggroupnamelist(
( new /aws1/cl_mpbautoscgrpnamelst_w( |string| ) )
)
iv_rolearn = |string|
)
io_eksendpoints = new /aws1/cl_mpbeksendpointsconf(
iv_clustapiservercacertchain = |string|
iv_clusterapiserverendpturi = |string|
iv_clustername = |string|
iv_endpointsresourcename = |string|
iv_endptsresourcenamespace = |string|
iv_rolearn = |string|
)
)
io_truststoreconfiguration = new /aws1/cl_mpbtruststoreconf(
it_certauthoritycerts = VALUE /aws1/cl_mpbcrtauthoritycrts_w=>tt_certauthoritycerts(
( new /aws1/cl_mpbcrtauthoritycrts_w( |string| ) )
)
)
it_securitygroupids = VALUE /aws1/cl_mpbsecgroupidlist_w=>tt_securitygroupidlist(
( new /aws1/cl_mpbsecgroupidlist_w( |string| ) )
)
it_subnetids = VALUE /aws1/cl_mpbsubnetidlist_w=>tt_subnetidlist(
( new /aws1/cl_mpbsubnetidlist_w( |string| ) )
)
it_tags = VALUE /aws1/cl_mpbtagsmap_w=>tt_tagsmap(
(
VALUE /aws1/cl_mpbtagsmap_w=>ts_tagsmap_maprow(
value = new /aws1/cl_mpbtagsmap_w( |string| )
key = |string|
)
)
)
iv_clienttoken = |string|
iv_description = |string|
iv_domainname = |string|
iv_gatewaytype = |string|
iv_port = 123
iv_protocol = |string|
iv_vpcid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_gatewayid = lo_result->get_gatewayid( ).
lv_respondergatewaystatus = lo_result->get_status( ).
lo_listenerconfig = lo_result->get_listenerconfig( ).
IF lo_listenerconfig IS NOT INITIAL.
LOOP AT lo_listenerconfig->get_protocols( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_protocol = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_domainname = lo_result->get_externalinboundendpoint( ).
ENDIF.
Create a responder gateway¶
Create responder gateway
DATA(lo_result) = lo_client->createrespondergateway(
it_securitygroupids = VALUE /aws1/cl_mpbsecgroupidlist_w=>tt_securitygroupidlist(
( new /aws1/cl_mpbsecgroupidlist_w( |sg-12345678| ) )
)
it_subnetids = VALUE /aws1/cl_mpbsubnetidlist_w=>tt_subnetidlist(
( new /aws1/cl_mpbsubnetidlist_w( |subnet-12345678| ) )
( new /aws1/cl_mpbsubnetidlist_w( |subnet-87654321| ) )
)
iv_clienttoken = |12345678-1234-1234-1234-123456789012|
iv_description = |My responder gateway|
iv_port = 443
iv_protocol = |HTTPS|
iv_vpcid = |vpc-12345678|
).