/AWS1/IF_GAC=>UPDATEACCELERATORATTRIBUTES()¶
About UpdateAcceleratorAttributes¶
Update the attributes for an accelerator.
Method Signature¶
METHODS /AWS1/IF_GAC~UPDATEACCELERATORATTRIBUTES
IMPORTING
!IV_ACCELERATORARN TYPE /AWS1/GACGENERICSTRING OPTIONAL
!IV_FLOWLOGSENABLED TYPE /AWS1/GACGENERICBOOLEAN OPTIONAL
!IV_FLOWLOGSS3BUCKET TYPE /AWS1/GACGENERICSTRING OPTIONAL
!IV_FLOWLOGSS3PREFIX TYPE /AWS1/GACGENERICSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gacupacceleratoratt01
RAISING
/AWS1/CX_GACACCELERATORNOTFN00
/AWS1/CX_GACACCESSDENIEDEX
/AWS1/CX_GACINTERNALSVCERROREX
/AWS1/CX_GACINVALIDARGUMENTEX
/AWS1/CX_GACTRANSACTINPRGSSEX
/AWS1/CX_GACCLIENTEXC
/AWS1/CX_GACSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_acceleratorarn TYPE /AWS1/GACGENERICSTRING /AWS1/GACGENERICSTRING¶
The Amazon Resource Name (ARN) of the accelerator that you want to update.
Optional arguments:¶
iv_flowlogsenabled TYPE /AWS1/GACGENERICBOOLEAN /AWS1/GACGENERICBOOLEAN¶
Update whether flow logs are enabled. The default value is false. If the value is true,
FlowLogsS3BucketandFlowLogsS3Prefixmust be specified.For more information, see Flow Logs in the Global Accelerator Developer Guide.
iv_flowlogss3bucket TYPE /AWS1/GACGENERICSTRING /AWS1/GACGENERICSTRING¶
The name of the Amazon S3 bucket for the flow logs. Attribute is required if
FlowLogsEnabledistrue. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.
iv_flowlogss3prefix TYPE /AWS1/GACGENERICSTRING /AWS1/GACGENERICSTRING¶
Update the prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if
FlowLogsEnabledistrue.If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:
s3-bucket_name//AWSLogs/aws_account_id
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gacupacceleratoratt01 /AWS1/CL_GACUPACCELERATORATT01¶
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->updateacceleratorattributes(
iv_acceleratorarn = |string|
iv_flowlogsenabled = ABAP_TRUE
iv_flowlogss3bucket = |string|
iv_flowlogss3prefix = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_acceleratorattributes = lo_result->get_acceleratorattributes( ).
IF lo_acceleratorattributes IS NOT INITIAL.
lv_genericboolean = lo_acceleratorattributes->get_flowlogsenabled( ).
lv_genericstring = lo_acceleratorattributes->get_flowlogss3bucket( ).
lv_genericstring = lo_acceleratorattributes->get_flowlogss3prefix( ).
ENDIF.
ENDIF.