/AWS1/IF_S3C=>CREATEACCESSGRANTSINSTANCE()¶
About CreateAccessGrantsInstance¶
Creates an S3 Access Grants instance, which serves as a logical grouping for access grants. You can create one S3 Access Grants instance per Region per account.
- Permissions
-
You must have the
s3:CreateAccessGrantsInstancepermission to use this operation. - Additional Permissions
-
To associate an IAM Identity Center instance with your S3 Access Grants instance, you must also have the
sso:DescribeInstance,sso:CreateApplication,sso:PutApplicationGrant, andsso:PutApplicationAuthenticationMethodpermissions.
You must URL encode any signed header values that contain spaces. For example, if your header value is my file.txt, containing two spaces after my, you must URL encode this value to my%20%20file.txt.
Method Signature¶
METHODS /AWS1/IF_S3C~CREATEACCESSGRANTSINSTANCE
IMPORTING
!IV_ACCOUNTID TYPE /AWS1/S3CACCOUNTID OPTIONAL
!IV_IDENTITYCENTERARN TYPE /AWS1/S3CIDENTITYCENTERARN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_S3CTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_s3ccreaccgrantsinstrs
RAISING
/AWS1/CX_S3CCLIENTEXC
/AWS1/CX_S3CSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_accountid TYPE /AWS1/S3CACCOUNTID /AWS1/S3CACCOUNTID¶
The Amazon Web Services account ID of the S3 Access Grants instance.
Optional arguments:¶
iv_identitycenterarn TYPE /AWS1/S3CIDENTITYCENTERARN /AWS1/S3CIDENTITYCENTERARN¶
If you would like to associate your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, use this field to pass the Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center instance that you are associating with your S3 Access Grants instance. An IAM Identity Center instance is your corporate identity directory that you added to the IAM Identity Center. You can use the ListInstances API operation to retrieve a list of your Identity Center instances and their ARNs.
it_tags TYPE /AWS1/CL_S3CTAG=>TT_TAGLIST TT_TAGLIST¶
The Amazon Web Services resource tags that you are adding to the S3 Access Grants instance. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_s3ccreaccgrantsinstrs /AWS1/CL_S3CCREACCGRANTSINSTRS¶
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->createaccessgrantsinstance(
it_tags = VALUE /aws1/cl_s3ctag=>tt_taglist(
(
new /aws1/cl_s3ctag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_accountid = |string|
iv_identitycenterarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_creationtimestamp = lo_result->get_createdat( ).
lv_accessgrantsinstanceid = lo_result->get_accessgrantsinstanceid( ).
lv_accessgrantsinstancearn = lo_result->get_accessgrantsinstancearn( ).
lv_identitycenterarn = lo_result->get_identitycenterarn( ).
lv_identitycenterarn = lo_result->get_idcenterinstancearn( ).
lv_identitycenterapplicati = lo_result->get_idcenterapplicationarn( ).
ENDIF.