/AWS1/CL_EC2=>CREATENETWORKINTERFACEPERM()
¶
About CreateNetworkInterfacePermission¶
Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.
You can grant permission to a single Amazon Web Services account only, and only one account at a time.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_networkinterfaceid
TYPE /AWS1/EC2NETWORKINTERFACEID
/AWS1/EC2NETWORKINTERFACEID
¶
The ID of the network interface.
iv_permission
TYPE /AWS1/EC2INTERFACEPERMTYPE
/AWS1/EC2INTERFACEPERMTYPE
¶
The type of permission to grant.
Optional arguments:¶
iv_awsaccountid
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
The Amazon Web Services account ID.
iv_awsservice
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
The Amazon Web Services service. Currently not supported.
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
.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_ec2crenetworkinterf03
/AWS1/CL_EC2CRENETWORKINTERF03
¶
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_ec2~createnetworkinterfaceperm(
iv_awsaccountid = |string|
iv_awsservice = |string|
iv_dryrun = ABAP_TRUE
iv_networkinterfaceid = |string|
iv_permission = |string|
).
This is an example of reading all possible response values
lv_string = lo_networkinterfacepermiss->get_networkinterfacepermid( ).
lv_string = lo_networkinterfacepermiss->get_networkinterfaceid( ).
lv_string = lo_networkinterfacepermiss->get_awsaccountid( ).
lv_string = lo_networkinterfacepermiss->get_awsservice( ).
lv_interfacepermissiontype = lo_networkinterfacepermiss->get_permission( ).
lv_networkinterfacepermiss_2 = lo_networkinterfacepermiss_1->get_state( ).
lv_string = lo_networkinterfacepermiss_1->get_statusmessage( ).