/AWS1/IF_NWM=>UPDATEVPCATTACHMENT()¶
About UpdateVpcAttachment¶
Updates a VPC attachment.
Method Signature¶
METHODS /AWS1/IF_NWM~UPDATEVPCATTACHMENT
IMPORTING
!IV_ATTACHMENTID TYPE /AWS1/NWMATTACHMENTID OPTIONAL
!IT_ADDSUBNETARNS TYPE /AWS1/CL_NWMSUBNETARNLIST_W=>TT_SUBNETARNLIST OPTIONAL
!IT_REMOVESUBNETARNS TYPE /AWS1/CL_NWMSUBNETARNLIST_W=>TT_SUBNETARNLIST OPTIONAL
!IO_OPTIONS TYPE REF TO /AWS1/CL_NWMVPCOPTIONS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwmupvpcattachmentrsp
RAISING
/AWS1/CX_NWMACCESSDENIEDEX
/AWS1/CX_NWMCONFLICTEXCEPTION
/AWS1/CX_NWMINTERNALSERVEREX
/AWS1/CX_NWMRESOURCENOTFOUNDEX
/AWS1/CX_NWMTHROTTLINGEX
/AWS1/CX_NWMVALIDATIONEX
/AWS1/CX_NWMCLIENTEXC
/AWS1/CX_NWMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_attachmentid TYPE /AWS1/NWMATTACHMENTID /AWS1/NWMATTACHMENTID¶
The ID of the attachment.
Optional arguments:¶
it_addsubnetarns TYPE /AWS1/CL_NWMSUBNETARNLIST_W=>TT_SUBNETARNLIST TT_SUBNETARNLIST¶
Adds a subnet ARN to the VPC attachment.
it_removesubnetarns TYPE /AWS1/CL_NWMSUBNETARNLIST_W=>TT_SUBNETARNLIST TT_SUBNETARNLIST¶
Removes a subnet ARN from the attachment.
io_options TYPE REF TO /AWS1/CL_NWMVPCOPTIONS /AWS1/CL_NWMVPCOPTIONS¶
Additional options for updating the VPC attachment.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_nwmupvpcattachmentrsp /AWS1/CL_NWMUPVPCATTACHMENTRSP¶
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->updatevpcattachment(
io_options = new /aws1/cl_nwmvpcoptions(
iv_appliancemodesupport = ABAP_TRUE
iv_dnssupport = ABAP_TRUE
iv_ipv6support = ABAP_TRUE
iv_secgroupreferencingsupp = ABAP_TRUE
)
it_addsubnetarns = VALUE /aws1/cl_nwmsubnetarnlist_w=>tt_subnetarnlist(
( new /aws1/cl_nwmsubnetarnlist_w( |string| ) )
)
it_removesubnetarns = VALUE /aws1/cl_nwmsubnetarnlist_w=>tt_subnetarnlist(
( new /aws1/cl_nwmsubnetarnlist_w( |string| ) )
)
iv_attachmentid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_vpcattachment = lo_result->get_vpcattachment( ).
IF lo_vpcattachment IS NOT INITIAL.
lo_attachment = lo_vpcattachment->get_attachment( ).
IF lo_attachment IS NOT INITIAL.
lv_corenetworkid = lo_attachment->get_corenetworkid( ).
lv_corenetworkarn = lo_attachment->get_corenetworkarn( ).
lv_attachmentid = lo_attachment->get_attachmentid( ).
lv_awsaccountid = lo_attachment->get_owneraccountid( ).
lv_attachmenttype = lo_attachment->get_attachmenttype( ).
lv_attachmentstate = lo_attachment->get_state( ).
lv_externalregioncode = lo_attachment->get_edgelocation( ).
LOOP AT lo_attachment->get_edgelocations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_externalregioncode = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_resourcearn = lo_attachment->get_resourcearn( ).
lv_integer = lo_attachment->get_attachmentplyrulenumber( ).
lv_constrainedstring = lo_attachment->get_segmentname( ).
lv_networkfunctiongroupnam = lo_attachment->get_networkfunctiongroupname( ).
LOOP AT lo_attachment->get_tags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_tagkey = lo_row_3->get_key( ).
lv_tagvalue = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lo_proposedsegmentchange = lo_attachment->get_proposedsegmentchange( ).
IF lo_proposedsegmentchange IS NOT INITIAL.
LOOP AT lo_proposedsegmentchange->get_tags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_tagkey = lo_row_3->get_key( ).
lv_tagvalue = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_integer = lo_proposedsegmentchange->get_attachmentplyrulenumber( ).
lv_constrainedstring = lo_proposedsegmentchange->get_segmentname( ).
ENDIF.
lo_proposednetworkfunction = lo_attachment->get_proposednetworkfuncgrp00( ).
IF lo_proposednetworkfunction IS NOT INITIAL.
LOOP AT lo_proposednetworkfunction->get_tags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_tagkey = lo_row_3->get_key( ).
lv_tagvalue = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_integer = lo_proposednetworkfunction->get_attachmentplyrulenumber( ).
lv_constrainedstring = lo_proposednetworkfunction->get_networkfunctiongroupname( ).
ENDIF.
lv_datetime = lo_attachment->get_createdat( ).
lv_datetime = lo_attachment->get_updatedat( ).
LOOP AT lo_attachment->get_lastmodificationerrors( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_attachmenterrorcode = lo_row_5->get_code( ).
lv_serversidestring = lo_row_5->get_message( ).
lv_resourcearn = lo_row_5->get_resourcearn( ).
lv_serversidestring = lo_row_5->get_requestid( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_vpcattachment->get_subnetarns( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_subnetarn = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
lo_vpcoptions = lo_vpcattachment->get_options( ).
IF lo_vpcoptions IS NOT INITIAL.
lv_boolean = lo_vpcoptions->get_ipv6support( ).
lv_boolean = lo_vpcoptions->get_appliancemodesupport( ).
lv_boolean = lo_vpcoptions->get_dnssupport( ).
lv_boolean = lo_vpcoptions->get_secgroupreferencingsupp( ).
ENDIF.
ENDIF.
ENDIF.