/AWS1/IF_R5E=>UPDATERESOURCESET()¶
About UpdateResourceSet¶
Updates a resource set.
Method Signature¶
METHODS /AWS1/IF_R5E~UPDATERESOURCESET
  IMPORTING
    !IV_RESOURCESETNAME TYPE /AWS1/R5E__STRING OPTIONAL
    !IV_RESOURCESETTYPE TYPE /AWS1/R5E__STRPATAWSAZAZ09AZ00 OPTIONAL
    !IT_RESOURCES TYPE /AWS1/CL_R5ERESOURCE=>TT___LISTOFRESOURCE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5eupdateresrcsetrsp
  RAISING
    /AWS1/CX_R5EACCESSDENIEDEX
    /AWS1/CX_R5EINTERNALSERVEREX
    /AWS1/CX_R5ERESOURCENOTFOUNDEX
    /AWS1/CX_R5ETHROTTLINGEX
    /AWS1/CX_R5EVALIDATIONEX
    /AWS1/CX_R5ECLIENTEXC
    /AWS1/CX_R5ESERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourcesetname TYPE /AWS1/R5E__STRING /AWS1/R5E__STRING¶
Name of a resource set.
iv_resourcesettype TYPE /AWS1/R5E__STRPATAWSAZAZ09AZ00 /AWS1/R5E__STRPATAWSAZAZ09AZ00¶
The resource type of the resources in the resource set. Enter one of the following values for resource type:
AWS::ApiGateway::Stage, AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource
it_resources TYPE /AWS1/CL_R5ERESOURCE=>TT___LISTOFRESOURCE TT___LISTOFRESOURCE¶
A list of resource objects.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r5eupdateresrcsetrsp /AWS1/CL_R5EUPDATERESRCSETRSP¶
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->updateresourceset(
  it_resources = VALUE /aws1/cl_r5eresource=>tt___listofresource(
    (
      new /aws1/cl_r5eresource(
        io_dnstargetresource = new /aws1/cl_r5ednstargetresource(
          io_targetresource = new /aws1/cl_r5etargetresource(
            io_nlbresource = new /aws1/cl_r5enlbresource( |string| )
            io_r53resource = new /aws1/cl_r5er53resourcerecord(
              iv_domainname = |string|
              iv_recordsetid = |string|
            )
          )
          iv_domainname = |string|
          iv_hostedzonearn = |string|
          iv_recordsetid = |string|
          iv_recordtype = |string|
        )
        it_readinessscopes = VALUE /aws1/cl_r5e__listof__string_w=>tt___listof__string(
          ( new /aws1/cl_r5e__listof__string_w( |string| ) )
        )
        iv_componentid = |string|
        iv_resourcearn = |string|
      )
    )
  )
  iv_resourcesetname = |string|
  iv_resourcesettype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv___stringmax256 = lo_result->get_resourcesetarn( ).
  lv___stringmax64patternaaz = lo_result->get_resourcesetname( ).
  lv___stringpatternawsazaz0 = lo_result->get_resourcesettype( ).
  LOOP AT lo_result->get_resources( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv___string = lo_row_1->get_componentid( ).
      lo_dnstargetresource = lo_row_1->get_dnstargetresource( ).
      IF lo_dnstargetresource IS NOT INITIAL.
        lv___string = lo_dnstargetresource->get_domainname( ).
        lv___string = lo_dnstargetresource->get_hostedzonearn( ).
        lv___string = lo_dnstargetresource->get_recordsetid( ).
        lv___string = lo_dnstargetresource->get_recordtype( ).
        lo_targetresource = lo_dnstargetresource->get_targetresource( ).
        IF lo_targetresource IS NOT INITIAL.
          lo_nlbresource = lo_targetresource->get_nlbresource( ).
          IF lo_nlbresource IS NOT INITIAL.
            lv___string = lo_nlbresource->get_arn( ).
          ENDIF.
          lo_r53resourcerecord = lo_targetresource->get_r53resource( ).
          IF lo_r53resourcerecord IS NOT INITIAL.
            lv___string = lo_r53resourcerecord->get_domainname( ).
            lv___string = lo_r53resourcerecord->get_recordsetid( ).
          ENDIF.
        ENDIF.
      ENDIF.
      LOOP AT lo_row_1->get_readinessscopes( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv___string = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      lv___string = lo_row_1->get_resourcearn( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_tags( ) into ls_row_4.
    lv_key = ls_row_4-key.
    lo_value = ls_row_4-value.
    IF lo_value IS NOT INITIAL.
      lv___string = lo_value->get_value( ).
    ENDIF.
  ENDLOOP.
ENDIF.