/AWS1/IF_EL2=>SETIPADDRESSTYPE()¶
About SetIpAddressType¶
Sets the type of IP addresses used by the subnets of the specified load balancer.
Method Signature¶
METHODS /AWS1/IF_EL2~SETIPADDRESSTYPE
  IMPORTING
    !IV_LOADBALANCERARN TYPE /AWS1/EL2LOADBALANCERARN OPTIONAL
    !IV_IPADDRESSTYPE TYPE /AWS1/EL2IPADDRESSTYPE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_el2setipaddresstype01
  RAISING
    /AWS1/CX_EL2INVCONFREQUESTEX
    /AWS1/CX_EL2INVALIDSUBNETEX
    /AWS1/CX_EL2LOADBALANCERNOTF00
    /AWS1/CX_EL2CLIENTEXC
    /AWS1/CX_EL2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_loadbalancerarn TYPE /AWS1/EL2LOADBALANCERARN /AWS1/EL2LOADBALANCERARN¶
The Amazon Resource Name (ARN) of the load balancer.
iv_ipaddresstype TYPE /AWS1/EL2IPADDRESSTYPE /AWS1/EL2IPADDRESSTYPE¶
The IP address type. Internal load balancers must use
ipv4.[Application Load Balancers] The possible values are
ipv4(IPv4 addresses),dualstack(IPv4 and IPv6 addresses), anddualstack-without-public-ipv4(public IPv6 addresses and private IPv4 and IPv6 addresses).Application Load Balancer authentication supports IPv4 addresses only when connecting to an Identity Provider (IdP) or Amazon Cognito endpoint. Without a public IPv4 address the load balancer can't complete the authentication process, resulting in HTTP 500 errors.
[Network Load Balancers and Gateway Load Balancers] The possible values are
ipv4(IPv4 addresses) anddualstack(IPv4 and IPv6 addresses).
RETURNING¶
oo_output TYPE REF TO /aws1/cl_el2setipaddresstype01 /AWS1/CL_EL2SETIPADDRESSTYPE01¶
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->setipaddresstype(
  iv_ipaddresstype = |string|
  iv_loadbalancerarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_ipaddresstype = lo_result->get_ipaddresstype( ).
ENDIF.