Skip to content

/AWS1/IF_DFM=>CREATEVPCECONFIGURATION()

About CreateVPCEConfiguration

Creates a configuration record in Device Farm for your Amazon Virtual Private Cloud (VPC) endpoint.

Method Signature

METHODS /AWS1/IF_DFM~CREATEVPCECONFIGURATION
  IMPORTING
    !IV_VPCECONFIGURATIONNAME TYPE /AWS1/DFMVPCECONFIGURATIONNAME OPTIONAL
    !IV_VPCESERVICENAME TYPE /AWS1/DFMVPCESERVICENAME OPTIONAL
    !IV_SERVICEDNSNAME TYPE /AWS1/DFMSERVICEDNSNAME OPTIONAL
    !IV_VPCECONFDESCRIPTION TYPE /AWS1/DFMVPCECONFDESCRIPTION OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dfmcreatevpceconfrslt
  RAISING
    /AWS1/CX_DFMARGUMENTEXCEPTION
    /AWS1/CX_DFMLIMITEXCEEDEDEX
    /AWS1/CX_DFMSERVICEACCOUNTEX
    /AWS1/CX_DFMCLIENTEXC
    /AWS1/CX_DFMSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_vpceconfigurationname TYPE /AWS1/DFMVPCECONFIGURATIONNAME /AWS1/DFMVPCECONFIGURATIONNAME

The friendly name you give to your VPC endpoint configuration, to manage your configurations more easily.

iv_vpceservicename TYPE /AWS1/DFMVPCESERVICENAME /AWS1/DFMVPCESERVICENAME

The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.

iv_servicednsname TYPE /AWS1/DFMSERVICEDNSNAME /AWS1/DFMSERVICEDNSNAME

The DNS name of the service running in your VPC that you want Device Farm to test.

Optional arguments:

iv_vpceconfdescription TYPE /AWS1/DFMVPCECONFDESCRIPTION /AWS1/DFMVPCECONFDESCRIPTION

An optional description that provides details about your VPC endpoint configuration.

RETURNING

oo_output TYPE REF TO /aws1/cl_dfmcreatevpceconfrslt /AWS1/CL_DFMCREATEVPCECONFRSLT

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->createvpceconfiguration(
  iv_servicednsname = |string|
  iv_vpceconfdescription = |string|
  iv_vpceconfigurationname = |string|
  iv_vpceservicename = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_vpceconfiguration = lo_result->get_vpceconfiguration( ).
  IF lo_vpceconfiguration IS NOT INITIAL.
    lv_amazonresourcename = lo_vpceconfiguration->get_arn( ).
    lv_vpceconfigurationname = lo_vpceconfiguration->get_vpceconfigurationname( ).
    lv_vpceservicename = lo_vpceconfiguration->get_vpceservicename( ).
    lv_servicednsname = lo_vpceconfiguration->get_servicednsname( ).
    lv_vpceconfigurationdescri = lo_vpceconfiguration->get_vpceconfdescription( ).
  ENDIF.
ENDIF.