/AWS1/IF_EC2=>MODIFYFPGAIMAGEATTRIBUTE()¶
About ModifyFpgaImageAttribute¶
Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
Method Signature¶
METHODS /AWS1/IF_EC2~MODIFYFPGAIMAGEATTRIBUTE
IMPORTING
!IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
!IV_FPGAIMAGEID TYPE /AWS1/EC2FPGAIMAGEID OPTIONAL
!IV_ATTRIBUTE TYPE /AWS1/EC2FPGAIMAGEATTRNAME OPTIONAL
!IV_OPERATIONTYPE TYPE /AWS1/EC2OPERATIONTYPE OPTIONAL
!IT_USERIDS TYPE /AWS1/CL_EC2USERIDSTRINGLIST_W=>TT_USERIDSTRINGLIST OPTIONAL
!IT_USERGROUPS TYPE /AWS1/CL_EC2USERGROUPSTRLIST_W=>TT_USERGROUPSTRINGLIST OPTIONAL
!IT_PRODUCTCODES TYPE /AWS1/CL_EC2PRODUCTCODESTRLS00=>TT_PRODUCTCODESTRINGLIST OPTIONAL
!IO_LOADPERMISSION TYPE REF TO /AWS1/CL_EC2LOADPERMISSIONMODS OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/EC2STRING OPTIONAL
!IV_NAME TYPE /AWS1/EC2STRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ec2modfpgaimageattrrs
RAISING
/AWS1/CX_EC2CLIENTEXC
/AWS1/CX_EC2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_fpgaimageid TYPE /AWS1/EC2FPGAIMAGEID /AWS1/EC2FPGAIMAGEID¶
The ID of the AFI.
Optional arguments:¶
iv_dryrun TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN¶
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
iv_attribute TYPE /AWS1/EC2FPGAIMAGEATTRNAME /AWS1/EC2FPGAIMAGEATTRNAME¶
The name of the attribute.
iv_operationtype TYPE /AWS1/EC2OPERATIONTYPE /AWS1/EC2OPERATIONTYPE¶
The operation type.
it_userids TYPE /AWS1/CL_EC2USERIDSTRINGLIST_W=>TT_USERIDSTRINGLIST TT_USERIDSTRINGLIST¶
The Amazon Web Services account IDs. This parameter is valid only when modifying the
loadPermissionattribute.
it_usergroups TYPE /AWS1/CL_EC2USERGROUPSTRLIST_W=>TT_USERGROUPSTRINGLIST TT_USERGROUPSTRINGLIST¶
The user groups. This parameter is valid only when modifying the
loadPermissionattribute.
it_productcodes TYPE /AWS1/CL_EC2PRODUCTCODESTRLS00=>TT_PRODUCTCODESTRINGLIST TT_PRODUCTCODESTRINGLIST¶
The product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when modifying the
productCodesattribute.
io_loadpermission TYPE REF TO /AWS1/CL_EC2LOADPERMISSIONMODS /AWS1/CL_EC2LOADPERMISSIONMODS¶
The load permission for the AFI.
iv_description TYPE /AWS1/EC2STRING /AWS1/EC2STRING¶
A description for the AFI.
iv_name TYPE /AWS1/EC2STRING /AWS1/EC2STRING¶
A name for the AFI.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ec2modfpgaimageattrrs /AWS1/CL_EC2MODFPGAIMAGEATTRRS¶
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->modifyfpgaimageattribute(
io_loadpermission = new /aws1/cl_ec2loadpermissionmods(
it_add = VALUE /aws1/cl_ec2loadpermrequest=>tt_loadpermissionlistrequest(
(
new /aws1/cl_ec2loadpermrequest(
iv_group = |string|
iv_userid = |string|
)
)
)
it_remove = VALUE /aws1/cl_ec2loadpermrequest=>tt_loadpermissionlistrequest(
(
new /aws1/cl_ec2loadpermrequest(
iv_group = |string|
iv_userid = |string|
)
)
)
)
it_productcodes = VALUE /aws1/cl_ec2productcodestrls00=>tt_productcodestringlist(
( new /aws1/cl_ec2productcodestrls00( |string| ) )
)
it_usergroups = VALUE /aws1/cl_ec2usergroupstrlist_w=>tt_usergroupstringlist(
( new /aws1/cl_ec2usergroupstrlist_w( |string| ) )
)
it_userids = VALUE /aws1/cl_ec2useridstringlist_w=>tt_useridstringlist(
( new /aws1/cl_ec2useridstringlist_w( |string| ) )
)
iv_attribute = |string|
iv_description = |string|
iv_dryrun = ABAP_TRUE
iv_fpgaimageid = |string|
iv_name = |string|
iv_operationtype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_fpgaimageattribute = lo_result->get_fpgaimageattribute( ).
IF lo_fpgaimageattribute IS NOT INITIAL.
lv_string = lo_fpgaimageattribute->get_fpgaimageid( ).
lv_string = lo_fpgaimageattribute->get_name( ).
lv_string = lo_fpgaimageattribute->get_description( ).
LOOP AT lo_fpgaimageattribute->get_loadpermissions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_userid( ).
lv_permissiongroup = lo_row_1->get_group( ).
ENDIF.
ENDLOOP.
LOOP AT lo_fpgaimageattribute->get_productcodes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_productcodeid( ).
lv_productcodevalues = lo_row_3->get_productcodetype( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.