Skip to content

/AWS1/IF_CEX=>GETRIGHTSIZINGRECOMMENDATION()

About GetRightsizingRecommendation

Creates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances.

Recommendations are generated to either downsize or terminate instances, along with providing savings detail and metrics. For more information about calculation and function, see Optimizing Your Cost with Rightsizing Recommendations in the Billing and Cost Management User Guide.

Method Signature

METHODS /AWS1/IF_CEX~GETRIGHTSIZINGRECOMMENDATION
  IMPORTING
    !IO_FILTER TYPE REF TO /AWS1/CL_CEXEXPRESSION OPTIONAL
    !IO_CONFIGURATION TYPE REF TO /AWS1/CL_CEXRIGHTSIZINGRECOM00 OPTIONAL
    !IV_SERVICE TYPE /AWS1/CEXGENERICSTRING OPTIONAL
    !IV_PAGESIZE TYPE /AWS1/CEXRECSPAGESIZE OPTIONAL
    !IV_NEXTPAGETOKEN TYPE /AWS1/CEXNEXTPAGETOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cexgetrightsizingre01
  RAISING
    /AWS1/CX_CEXINVALIDNEXTTOKENEX
    /AWS1/CX_CEXLIMITEXCEEDEDEX
    /AWS1/CX_CEXCLIENTEXC
    /AWS1/CX_CEXSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_service TYPE /AWS1/CEXGENERICSTRING /AWS1/CEXGENERICSTRING

The specific service that you want recommendations for. The only valid value for GetRightsizingRecommendation is "AmazonEC2".

Optional arguments:

io_filter TYPE REF TO /AWS1/CL_CEXEXPRESSION /AWS1/CL_CEXEXPRESSION

Use Expression to filter in various Cost Explorer APIs.

Not all Expression types are supported in each API. Refer to the documentation for each specific API to see what is supported.

There are two patterns:

  • Simple dimension values.

    • There are three types of simple dimension values: CostCategories, Tags, and Dimensions.

      • Specify the CostCategories field to define a filter that acts on Cost Categories.

      • Specify the Tags field to define a filter that acts on Cost Allocation Tags.

      • Specify the Dimensions field to define a filter that acts on the DimensionValues .

    • For each filter type, you can set the dimension name and values for the filters that you plan to use.

      • For example, you can filter for REGION==us-east-1 OR REGION==us-west-1. For GetRightsizingRecommendation, the Region is a full name (for example, REGION==US East (N. Virginia).

      • The corresponding Expression for this example is as follows: { "Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] } }

      • As shown in the previous example, lists of dimension values are combined with OR when applying the filter.

    • You can also set different match options to further control how the filter behaves. Not all APIs support match options. Refer to the documentation for each specific API to see what is supported.

      • For example, you can filter for linked account names that start with "a".

      • The corresponding Expression for this example is as follows: { "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }

  • Compound Expression types with logical operations.

    • You can use multiple Expression types and the logical operators AND/OR/NOT to create a list of one or more Expression objects. By doing this, you can filter by more advanced options.

    • For example, you can filter by ((REGION == us-east-1 OR REGION == us-west-1) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer).

    • The corresponding Expression for this example is as follows: { "And": [ {"Or": [ {"Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }

    Because each Expression can have only one operator, the service returns an error if more than one is specified. The following example shows an Expression object that creates an error: { "And": [ ... ], "Dimensions": { "Key": "USAGE_TYPE", "Values": [ "DataTransfer" ] } }

    The following is an example of the corresponding error message: "Expression has more than one roots. Only one root operator is allowed for each expression: And, Or, Not, Dimensions, Tags, CostCategories"

For the GetRightsizingRecommendation action, a combination of OR and NOT isn't supported. OR isn't supported between different dimensions, or dimensions and tags. NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT, REGION, or RIGHTSIZING_TYPE.

For the GetReservationPurchaseRecommendation action, only NOT is supported. AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.

io_configuration TYPE REF TO /AWS1/CL_CEXRIGHTSIZINGRECOM00 /AWS1/CL_CEXRIGHTSIZINGRECOM00

You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.

iv_pagesize TYPE /AWS1/CEXRECSPAGESIZE /AWS1/CEXRECSPAGESIZE

The number of recommendations that you want returned in a single response object.

iv_nextpagetoken TYPE /AWS1/CEXNEXTPAGETOKEN /AWS1/CEXNEXTPAGETOKEN

The pagination token that indicates the next set of results that you want to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_cexgetrightsizingre01 /AWS1/CL_CEXGETRIGHTSIZINGRE01

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->getrightsizingrecommendation(
  io_configuration = new /aws1/cl_cexrightsizingrecom00(
    iv_benefitsconsidered = ABAP_TRUE
    iv_recommendationtarget = |string|
  )
  io_filter = new /aws1/cl_cexexpression(
    io_costcategories = new /aws1/cl_cexcostcategoryvalues(
      it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
        ( new /aws1/cl_cexmatchoptions_w( |string| ) )
      )
      it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
        ( new /aws1/cl_cexvalues_w( |string| ) )
      )
      iv_key = |string|
    )
    io_dimensions = new /aws1/cl_cexdimensionvalues(
      it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
        ( new /aws1/cl_cexmatchoptions_w( |string| ) )
      )
      it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
        ( new /aws1/cl_cexvalues_w( |string| ) )
      )
      iv_key = |string|
    )
    io_not = new /aws1/cl_cexexpression(
      io_costcategories = new /aws1/cl_cexcostcategoryvalues(
        it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
          ( new /aws1/cl_cexmatchoptions_w( |string| ) )
        )
        it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
          ( new /aws1/cl_cexvalues_w( |string| ) )
        )
        iv_key = |string|
      )
      io_dimensions = new /aws1/cl_cexdimensionvalues(
        it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
          ( new /aws1/cl_cexmatchoptions_w( |string| ) )
        )
        it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
          ( new /aws1/cl_cexvalues_w( |string| ) )
        )
        iv_key = |string|
      )
      io_tags = new /aws1/cl_cextagvalues(
        it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
          ( new /aws1/cl_cexmatchoptions_w( |string| ) )
        )
        it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
          ( new /aws1/cl_cexvalues_w( |string| ) )
        )
        iv_key = |string|
      )
      it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
        (
          new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
        )
      )
      it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
        (
          new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
        )
      )
    )
    io_tags = new /aws1/cl_cextagvalues(
      it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
        ( new /aws1/cl_cexmatchoptions_w( |string| ) )
      )
      it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
        ( new /aws1/cl_cexvalues_w( |string| ) )
      )
      iv_key = |string|
    )
    it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
      (
        new /aws1/cl_cexexpression(
          io_costcategories = new /aws1/cl_cexcostcategoryvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_dimensions = new /aws1/cl_cexdimensionvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_not = new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
          io_tags = new /aws1/cl_cextagvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
          )
        )
      )
    )
    it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
      (
        new /aws1/cl_cexexpression(
          io_costcategories = new /aws1/cl_cexcostcategoryvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_dimensions = new /aws1/cl_cexdimensionvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_not = new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
          io_tags = new /aws1/cl_cextagvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
          )
        )
      )
    )
  )
  iv_nextpagetoken = |string|
  iv_pagesize = 123
  iv_service = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_rightsizingrecommendati = lo_result->get_metadata( ).
  IF lo_rightsizingrecommendati IS NOT INITIAL.
    lv_genericstring = lo_rightsizingrecommendati->get_recommendationid( ).
    lv_genericstring = lo_rightsizingrecommendati->get_generationtimestamp( ).
    lv_lookbackperiodindays = lo_rightsizingrecommendati->get_lookbackperiodindays( ).
    lv_genericstring = lo_rightsizingrecommendati->get_additionalmetadata( ).
  ENDIF.
  lo_rightsizingrecommendati_1 = lo_result->get_summary( ).
  IF lo_rightsizingrecommendati_1 IS NOT INITIAL.
    lv_genericstring = lo_rightsizingrecommendati_1->get_totalrecommendationcount( ).
    lv_genericstring = lo_rightsizingrecommendati_1->get_estimatedtotalmonthlys00( ).
    lv_genericstring = lo_rightsizingrecommendati_1->get_savingscurrencycode( ).
    lv_genericstring = lo_rightsizingrecommendati_1->get_savingspercentage( ).
  ENDIF.
  LOOP AT lo_result->get_rightsizingrecommendat00( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_genericstring = lo_row_1->get_accountid( ).
      lo_currentinstance = lo_row_1->get_currentinstance( ).
      IF lo_currentinstance IS NOT INITIAL.
        lv_genericstring = lo_currentinstance->get_resourceid( ).
        lv_genericstring = lo_currentinstance->get_instancename( ).
        LOOP AT lo_currentinstance->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( ).
            LOOP AT lo_row_3->get_values( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                lv_value = lo_row_5->get_value( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_row_3->get_matchoptions( ) into lo_row_6.
              lo_row_7 = lo_row_6.
              IF lo_row_7 IS NOT INITIAL.
                lv_matchoption = lo_row_7->get_value( ).
              ENDIF.
            ENDLOOP.
          ENDIF.
        ENDLOOP.
        lo_resourcedetails = lo_currentinstance->get_resourcedetails( ).
        IF lo_resourcedetails IS NOT INITIAL.
          lo_ec2resourcedetails = lo_resourcedetails->get_ec2resourcedetails( ).
          IF lo_ec2resourcedetails IS NOT INITIAL.
            lv_genericstring = lo_ec2resourcedetails->get_hourlyondemandrate( ).
            lv_genericstring = lo_ec2resourcedetails->get_instancetype( ).
            lv_genericstring = lo_ec2resourcedetails->get_platform( ).
            lv_genericstring = lo_ec2resourcedetails->get_region( ).
            lv_genericstring = lo_ec2resourcedetails->get_sku( ).
            lv_genericstring = lo_ec2resourcedetails->get_memory( ).
            lv_genericstring = lo_ec2resourcedetails->get_networkperformance( ).
            lv_genericstring = lo_ec2resourcedetails->get_storage( ).
            lv_genericstring = lo_ec2resourcedetails->get_vcpu( ).
          ENDIF.
        ENDIF.
        lo_resourceutilization = lo_currentinstance->get_resourceutilization( ).
        IF lo_resourceutilization IS NOT INITIAL.
          lo_ec2resourceutilization = lo_resourceutilization->get_ec2resourceutilization( ).
          IF lo_ec2resourceutilization IS NOT INITIAL.
            lv_genericstring = lo_ec2resourceutilization->get_maxcpuutilizationperce00( ).
            lv_genericstring = lo_ec2resourceutilization->get_maxmemoryutilizationpe00( ).
            lv_genericstring = lo_ec2resourceutilization->get_maxstrgutilizationperc00( ).
            lo_ebsresourceutilization = lo_ec2resourceutilization->get_ebsresourceutilization( ).
            IF lo_ebsresourceutilization IS NOT INITIAL.
              lv_genericstring = lo_ebsresourceutilization->get_ebsreadopspersecond( ).
              lv_genericstring = lo_ebsresourceutilization->get_ebswriteopspersecond( ).
              lv_genericstring = lo_ebsresourceutilization->get_ebsreadbytespersecond( ).
              lv_genericstring = lo_ebsresourceutilization->get_ebswritebytespersecond( ).
            ENDIF.
            lo_diskresourceutilization = lo_ec2resourceutilization->get_diskresourceutilization( ).
            IF lo_diskresourceutilization IS NOT INITIAL.
              lv_genericstring = lo_diskresourceutilization->get_diskreadopspersecond( ).
              lv_genericstring = lo_diskresourceutilization->get_diskwriteopspersecond( ).
              lv_genericstring = lo_diskresourceutilization->get_diskreadbytespersecond( ).
              lv_genericstring = lo_diskresourceutilization->get_diskwritebytespersecond( ).
            ENDIF.
            lo_networkresourceutilizat = lo_ec2resourceutilization->get_networkresrcutilization( ).
            IF lo_networkresourceutilizat IS NOT INITIAL.
              lv_genericstring = lo_networkresourceutilizat->get_networkinbytespersecond( ).
              lv_genericstring = lo_networkresourceutilizat->get_networkoutbytespersecond( ).
              lv_genericstring = lo_networkresourceutilizat->get_networkpacketsinpersec( ).
              lv_genericstring = lo_networkresourceutilizat->get_networkpacketsoutpersec( ).
            ENDIF.
          ENDIF.
        ENDIF.
        lv_genericstring = lo_currentinstance->get_reservationcoveredhour00( ).
        lv_genericstring = lo_currentinstance->get_savingsplanscoveredhou00( ).
        lv_genericstring = lo_currentinstance->get_ondemhoursinlookbackper( ).
        lv_genericstring = lo_currentinstance->get_totalrunninghoursinloo00( ).
        lv_genericstring = lo_currentinstance->get_monthlycost( ).
        lv_genericstring = lo_currentinstance->get_currencycode( ).
      ENDIF.
      lv_rightsizingtype = lo_row_1->get_rightsizingtype( ).
      lo_modifyrecommendationdet = lo_row_1->get_modifyrecommendationdet( ).
      IF lo_modifyrecommendationdet IS NOT INITIAL.
        LOOP AT lo_modifyrecommendationdet->get_targetinstances( ) into lo_row_8.
          lo_row_9 = lo_row_8.
          IF lo_row_9 IS NOT INITIAL.
            lv_genericstring = lo_row_9->get_estimatedmonthlycost( ).
            lv_genericstring = lo_row_9->get_estimatedmonthlysavings( ).
            lv_genericstring = lo_row_9->get_currencycode( ).
            lv_genericboolean = lo_row_9->get_defaulttargetinstance( ).
            lo_resourcedetails = lo_row_9->get_resourcedetails( ).
            IF lo_resourcedetails IS NOT INITIAL.
              lo_ec2resourcedetails = lo_resourcedetails->get_ec2resourcedetails( ).
              IF lo_ec2resourcedetails IS NOT INITIAL.
                lv_genericstring = lo_ec2resourcedetails->get_hourlyondemandrate( ).
                lv_genericstring = lo_ec2resourcedetails->get_instancetype( ).
                lv_genericstring = lo_ec2resourcedetails->get_platform( ).
                lv_genericstring = lo_ec2resourcedetails->get_region( ).
                lv_genericstring = lo_ec2resourcedetails->get_sku( ).
                lv_genericstring = lo_ec2resourcedetails->get_memory( ).
                lv_genericstring = lo_ec2resourcedetails->get_networkperformance( ).
                lv_genericstring = lo_ec2resourcedetails->get_storage( ).
                lv_genericstring = lo_ec2resourcedetails->get_vcpu( ).
              ENDIF.
            ENDIF.
            lo_resourceutilization = lo_row_9->get_expectedresrcutilization( ).
            IF lo_resourceutilization IS NOT INITIAL.
              lo_ec2resourceutilization = lo_resourceutilization->get_ec2resourceutilization( ).
              IF lo_ec2resourceutilization IS NOT INITIAL.
                lv_genericstring = lo_ec2resourceutilization->get_maxcpuutilizationperce00( ).
                lv_genericstring = lo_ec2resourceutilization->get_maxmemoryutilizationpe00( ).
                lv_genericstring = lo_ec2resourceutilization->get_maxstrgutilizationperc00( ).
                lo_ebsresourceutilization = lo_ec2resourceutilization->get_ebsresourceutilization( ).
                IF lo_ebsresourceutilization IS NOT INITIAL.
                  lv_genericstring = lo_ebsresourceutilization->get_ebsreadopspersecond( ).
                  lv_genericstring = lo_ebsresourceutilization->get_ebswriteopspersecond( ).
                  lv_genericstring = lo_ebsresourceutilization->get_ebsreadbytespersecond( ).
                  lv_genericstring = lo_ebsresourceutilization->get_ebswritebytespersecond( ).
                ENDIF.
                lo_diskresourceutilization = lo_ec2resourceutilization->get_diskresourceutilization( ).
                IF lo_diskresourceutilization IS NOT INITIAL.
                  lv_genericstring = lo_diskresourceutilization->get_diskreadopspersecond( ).
                  lv_genericstring = lo_diskresourceutilization->get_diskwriteopspersecond( ).
                  lv_genericstring = lo_diskresourceutilization->get_diskreadbytespersecond( ).
                  lv_genericstring = lo_diskresourceutilization->get_diskwritebytespersecond( ).
                ENDIF.
                lo_networkresourceutilizat = lo_ec2resourceutilization->get_networkresrcutilization( ).
                IF lo_networkresourceutilizat IS NOT INITIAL.
                  lv_genericstring = lo_networkresourceutilizat->get_networkinbytespersecond( ).
                  lv_genericstring = lo_networkresourceutilizat->get_networkoutbytespersecond( ).
                  lv_genericstring = lo_networkresourceutilizat->get_networkpacketsinpersec( ).
                  lv_genericstring = lo_networkresourceutilizat->get_networkpacketsoutpersec( ).
                ENDIF.
              ENDIF.
            ENDIF.
            LOOP AT lo_row_9->get_platformdifferences( ) into lo_row_10.
              lo_row_11 = lo_row_10.
              IF lo_row_11 IS NOT INITIAL.
                lv_platformdifference = lo_row_11->get_value( ).
              ENDIF.
            ENDLOOP.
          ENDIF.
        ENDLOOP.
      ENDIF.
      lo_terminaterecommendation = lo_row_1->get_terminaterecommendatio00( ).
      IF lo_terminaterecommendation IS NOT INITIAL.
        lv_genericstring = lo_terminaterecommendation->get_estimatedmonthlysavings( ).
        lv_genericstring = lo_terminaterecommendation->get_currencycode( ).
      ENDIF.
      LOOP AT lo_row_1->get_findingreasoncodes( ) into lo_row_12.
        lo_row_13 = lo_row_12.
        IF lo_row_13 IS NOT INITIAL.
          lv_findingreasoncode = lo_row_13->get_value( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  lv_nextpagetoken = lo_result->get_nextpagetoken( ).
  lo_rightsizingrecommendati_2 = lo_result->get_configuration( ).
  IF lo_rightsizingrecommendati_2 IS NOT INITIAL.
    lv_recommendationtarget = lo_rightsizingrecommendati_2->get_recommendationtarget( ).
    lv_genericboolean = lo_rightsizingrecommendati_2->get_benefitsconsidered( ).
  ENDIF.
ENDIF.