/AWS1/IF_NWS=>GETDEPLOYMENT()¶
About GetDeployment¶
Retrieves the details of the specified deployment, including coverage information and any warnings.
Method Signature¶
METHODS /AWS1/IF_NWS~GETDEPLOYMENT
IMPORTING
!IV_DEPLOYMENTIDENTIFIER TYPE /AWS1/NWSDEPLOYMENTIDENTIFIER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwsgetdeployoutput
RAISING
/AWS1/CX_NWSACCESSDENIEDEX
/AWS1/CX_NWSINTERNALSERVEREX
/AWS1/CX_NWSRESOURCENOTFOUNDEX
/AWS1/CX_NWSTHROTTLINGEX
/AWS1/CX_NWSVLDTNEXCEPTION
/AWS1/CX_NWSCLIENTEXC
/AWS1/CX_NWSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_deploymentidentifier TYPE /AWS1/NWSDEPLOYMENTIDENTIFIER /AWS1/NWSDEPLOYMENTIDENTIFIER¶
The identifier of the deployment. This is the deployment's Amazon Resource Name (ARN).
RETURNING¶
oo_output TYPE REF TO /aws1/cl_nwsgetdeployoutput /AWS1/CL_NWSGETDEPLOYOUTPUT¶
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->getdeployment( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_deploymentid = lo_result->get_deploymentid( ).
lv_deploymentarn = lo_result->get_deploymentarn( ).
lv_deploymentname = lo_result->get_deploymentname( ).
lv_description = lo_result->get_deploymentdescription( ).
lv_entitystatus = lo_result->get_status( ).
lo_deploymentconfiguration = lo_result->get_deploymentconfiguration( ).
IF lo_deploymentconfiguration IS NOT INITIAL.
lv_enablecrossaccountvisib = lo_deploymentconfiguration->get_enablecrossaccountvis( ).
ENDIF.
LOOP AT lo_result->get_associatedpolicylist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_policyarn = lo_row_1->get_policyarn( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_associatedscopelist( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_scopearn = lo_row_3->get_scopearn( ).
ENDIF.
ENDLOOP.
lv_entityversion = lo_result->get_version( ).
lv_updatetoken = lo_result->get_updatetoken( ).
lv_issnapshot = lo_result->get_issnapshot( ).
lv_haspublishedversion = lo_result->get_haspublishedversion( ).
lv_datetimestamp = lo_result->get_updatedat( ).
LOOP AT lo_result->get_deploymentcoverage( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_policyfirewalltype = lo_row_5->get_firewalltype( ).
LOOP AT lo_row_5->get_policyarns( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_policyarn = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_5->get_inscoperesourcetypes( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_scoperesourcetype = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_warnings( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_string = lo_row_11->get_code( ).
lv_policyarn = lo_row_11->get_policyarn( ).
lv_string = lo_row_11->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.
Get a deployment¶
Retrieves the current published version of a deployment by its base ARN, including per-firewall-type coverage showing which in-scope resource types each policy protects.
DATA(lo_result) = lo_client->getdeployment( |arn:aws:network-security-manager:us-east-1:123456789012:deployment:def456| ).