/AWS1/IF_GML=>UPDATEFLEETPORTSETTINGS()¶
About UpdateFleetPortSettings¶
This API works with the following fleet types: EC2, Container
Updates permissions that allow inbound traffic to connect to game sessions in the fleet.
To update settings, specify the fleet ID to be updated and specify the changes to be
made. List the permissions you want to add in
InboundPermissionAuthorizations, and permissions you want to remove in
InboundPermissionRevocations. Permissions to be removed must match
existing fleet permissions.
If successful, the fleet ID for the updated fleet is returned. For fleets with remote
locations, port setting updates can take time to propagate across all locations. You can
check the status of updates in each location by calling
DescribeFleetPortSettings with a location name.
Learn more
Setting up Amazon GameLift Servers fleets
Method Signature¶
METHODS /AWS1/IF_GML~UPDATEFLEETPORTSETTINGS
IMPORTING
!IV_FLEETID TYPE /AWS1/GMLFLEETIDORARN OPTIONAL
!IT_INBOUNDPERMISSIONAUTHS TYPE /AWS1/CL_GMLIPPERMISSION=>TT_IPPERMISSIONSLIST OPTIONAL
!IT_INBOUNDPERMREVOCATIONS TYPE /AWS1/CL_GMLIPPERMISSION=>TT_IPPERMISSIONSLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gmlupfleetportstgsout
RAISING
/AWS1/CX_GMLCONFLICTEXCEPTION
/AWS1/CX_GMLINTERNALSERVICEEX
/AWS1/CX_GMLINVFLEETSTATUSEX
/AWS1/CX_GMLINVALIDREQUESTEX
/AWS1/CX_GMLLIMITEXCEEDEDEX
/AWS1/CX_GMLNOTFOUNDEXCEPTION
/AWS1/CX_GMLUNAUTHORIZEDEX
/AWS1/CX_GMLCLIENTEXC
/AWS1/CX_GMLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_fleetid TYPE /AWS1/GMLFLEETIDORARN /AWS1/GMLFLEETIDORARN¶
A unique identifier for the fleet to update port settings for. You can use either the fleet ID or ARN value.
Optional arguments:¶
it_inboundpermissionauths TYPE /AWS1/CL_GMLIPPERMISSION=>TT_IPPERMISSIONSLIST TT_IPPERMISSIONSLIST¶
A collection of port settings to be added to the fleet resource.
it_inboundpermrevocations TYPE /AWS1/CL_GMLIPPERMISSION=>TT_IPPERMISSIONSLIST TT_IPPERMISSIONSLIST¶
A collection of port settings to be removed from the fleet resource.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gmlupfleetportstgsout /AWS1/CL_GMLUPFLEETPORTSTGSOUT¶
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->updatefleetportsettings(
it_inboundpermissionauths = VALUE /aws1/cl_gmlippermission=>tt_ippermissionslist(
(
new /aws1/cl_gmlippermission(
iv_fromport = 123
iv_iprange = |string|
iv_protocol = |string|
iv_toport = 123
)
)
)
it_inboundpermrevocations = VALUE /aws1/cl_gmlippermission=>tt_ippermissionslist(
(
new /aws1/cl_gmlippermission(
iv_fromport = 123
iv_iprange = |string|
iv_protocol = |string|
iv_toport = 123
)
)
)
iv_fleetid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_fleetid = lo_result->get_fleetid( ).
lv_fleetarn = lo_result->get_fleetarn( ).
ENDIF.