/AWS1/CL_GMZ=>ASSOCIATEAPPLICATIONS()
¶
About AssociateApplications¶
When you associate, or link, an application with a stream group, then Amazon GameLift Streams can launch the application using the stream group's allocated compute resources. The stream group must be in ACTIVE
status. You can reverse this action by using DisassociateApplications.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_identifier
TYPE /AWS1/GMZIDENTIFIER
/AWS1/GMZIDENTIFIER
¶
A stream group to associate to the applications.
This value is an Amazon Resource Name (ARN) or ID that uniquely identifies the stream group resource. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:streamgroup/sg-1AB2C3De4
. Example ID:sg-1AB2C3De4
.
it_applicationidentifiers
TYPE /AWS1/CL_GMZIDENTIFIERS_W=>TT_IDENTIFIERS
TT_IDENTIFIERS
¶
A set of applications to associate with the stream group.
This value is a set of either Amazon Resource Names (ARN) or IDs that uniquely identify application resources. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:application/a-9ZY8X7Wv6
. Example ID:a-9ZY8X7Wv6
.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_gmzascapplicationsout
/AWS1/CL_GMZASCAPPLICATIONSOUT
¶
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->/aws1/if_gmz~associateapplications(
it_applicationidentifiers = VALUE /aws1/cl_gmzidentifiers_w=>tt_identifiers(
( new /aws1/cl_gmzidentifiers_w( |string| ) )
)
iv_identifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_arn( ).
LOOP AT lo_result->get_applicationarns( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_arn = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.