Skip to content

/AWS1/IF_LWD=>LISTDEPLOYPATTERNVERSIONS()

About ListDeploymentPatternVersions

Lists the deployment pattern versions.

Method Signature

METHODS /AWS1/IF_LWD~LISTDEPLOYPATTERNVERSIONS
  IMPORTING
    !IV_WORKLOADNAME TYPE /AWS1/LWDWORKLOADNAME OPTIONAL
    !IV_DEPLOYMENTPATTERNNAME TYPE /AWS1/LWDDEPLOYMENTPATTERNNAME OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/LWDMAXWORKLOADRESULTS OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/LWDNEXTTOKEN OPTIONAL
    !IT_FILTERS TYPE /AWS1/CL_LWDDEPLOYPATVRSFILTER=>TT_FILTERLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lwdlistdeplpatverout
  RAISING
    /AWS1/CX_LWDINTERNALSERVEREX
    /AWS1/CX_LWDRESOURCENOTFOUNDEX
    /AWS1/CX_LWDVALIDATIONEX
    /AWS1/CX_LWDCLIENTEXC
    /AWS1/CX_LWDSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_workloadname TYPE /AWS1/LWDWORKLOADNAME /AWS1/LWDWORKLOADNAME

The name of the workload. You can use the ListWorkloads operation to discover supported values for this parameter.

iv_deploymentpatternname TYPE /AWS1/LWDDEPLOYMENTPATTERNNAME /AWS1/LWDDEPLOYMENTPATTERNNAME

The name of the deployment pattern. You can use the ListWorkloadDeploymentPatterns operation to discover supported values for this parameter.

Optional arguments:

iv_maxresults TYPE /AWS1/LWDMAXWORKLOADRESULTS /AWS1/LWDMAXWORKLOADRESULTS

The maximum number of deployment pattern versions to list.

iv_nexttoken TYPE /AWS1/LWDNEXTTOKEN /AWS1/LWDNEXTTOKEN

The token for the next set of results.

it_filters TYPE /AWS1/CL_LWDDEPLOYPATVRSFILTER=>TT_FILTERLIST TT_FILTERLIST

Filters to apply when listing deployment pattern versions.

RETURNING

oo_output TYPE REF TO /aws1/cl_lwdlistdeplpatverout /AWS1/CL_LWDLISTDEPLPATVEROUT

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->listdeploypatternversions(
  it_filters = VALUE /aws1/cl_lwddeploypatvrsfilter=>tt_filterlist(
    (
      new /aws1/cl_lwddeploypatvrsfilter(
        it_values = VALUE /aws1/cl_lwddeplpatvrsfltval_w=>tt_deploypatvrsfiltervalues(
          ( new /aws1/cl_lwddeplpatvrsfltval_w( |string| ) )
        )
        iv_name = |string|
      )
    )
  )
  iv_deploymentpatternname = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_workloadname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_deploypatternversions( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_deploypatternversionname( ).
      lv_string = lo_row_1->get_description( ).
      lv_string = lo_row_1->get_documentationurl( ).
      lv_string = lo_row_1->get_workloadname( ).
      lv_string = lo_row_1->get_deploymentpatternname( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.

List all visible versions for the given workload and deployment pattern.

List all visible versions for the given workload and deployment pattern.

DATA(lo_result) = lo_client->listdeploypatternversions(
  iv_deploymentpatternname = |default|
  iv_workloadname = |security-automations-for-aws-waf|
).

List filtered versions for the given workload and deployment pattern.

List filtered versions for the given workload and deployment pattern.

DATA(lo_result) = lo_client->listdeploypatternversions(
  it_filters = VALUE /aws1/cl_lwddeploypatvrsfilter=>tt_filterlist(
    (
      new /aws1/cl_lwddeploypatvrsfilter(
        it_values = VALUE /aws1/cl_lwddeplpatvrsfltval_w=>tt_deploypatvrsfiltervalues(
          ( new /aws1/cl_lwddeplpatvrsfltval_w( |4.0.2| ) )
        )
        iv_name = |updateFromVersion|
      )
    )
  )
  iv_deploymentpatternname = |default|
  iv_workloadname = |security-automations-for-aws-waf|
).