/AWS1/IF_KFK=>CREATEVPCCONNECTION()
¶
About CreateVpcConnection¶
Creates a new MSK VPC connection.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_targetclusterarn
TYPE /AWS1/KFK__STRING
/AWS1/KFK__STRING
¶
The cluster Amazon Resource Name (ARN) for the VPC connection.
iv_authentication
TYPE /AWS1/KFK__STRING
/AWS1/KFK__STRING
¶
The authentication type of VPC connection.
iv_vpcid
TYPE /AWS1/KFK__STRING
/AWS1/KFK__STRING
¶
The VPC ID of VPC connection.
it_clientsubnets
TYPE /AWS1/CL_KFK__LISTOF__STRING_W=>TT___LISTOF__STRING
TT___LISTOF__STRING
¶
The list of client subnets.
it_securitygroups
TYPE /AWS1/CL_KFK__LISTOF__STRING_W=>TT___LISTOF__STRING
TT___LISTOF__STRING
¶
The list of security groups.
Optional arguments:¶
it_tags
TYPE /AWS1/CL_KFK__MAPOF__STRING_W=>TT___MAPOF__STRING
TT___MAPOF__STRING
¶
A map of tags for the VPC connection.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_kfkcreatevpcconnrsp
/AWS1/CL_KFKCREATEVPCCONNRSP
¶
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->/aws1/if_kfk~createvpcconnection(
it_clientsubnets = VALUE /aws1/cl_kfk__listof__string_w=>tt___listof__string(
( new /aws1/cl_kfk__listof__string_w( |string| ) )
)
it_securitygroups = VALUE /aws1/cl_kfk__listof__string_w=>tt___listof__string(
( new /aws1/cl_kfk__listof__string_w( |string| ) )
)
it_tags = VALUE /aws1/cl_kfk__mapof__string_w=>tt___mapof__string(
(
VALUE /aws1/cl_kfk__mapof__string_w=>ts___mapof__string_maprow(
key = |string|
value = new /aws1/cl_kfk__mapof__string_w( |string| )
)
)
)
iv_authentication = |string|
iv_targetclusterarn = |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___string = lo_result->get_vpcconnectionarn( ).
lv_vpcconnectionstate = lo_result->get_state( ).
lv___string = lo_result->get_authentication( ).
lv___string = lo_result->get_vpcid( ).
LOOP AT lo_result->get_clientsubnets( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv___string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_securitygroups( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv___string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv___timestampiso8601 = lo_result->get_creationtime( ).
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___string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.