update_accelerator_attributes
async
¶
update_accelerator_attributes(
accelerator_arn: GenericString,
*,
config_overrides: Optional[AsyncGlobalAcceleratorClientConfig] = None,
flow_logs_enabled: Optional[GenericBoolean] = None,
flow_logs_s3_bucket: Optional[GenericString] = None,
flow_logs_s3_prefix: Optional[GenericString] = None,
) -> UpdateAcceleratorAttributesResponse
Update the attributes for an accelerator.
Parameters:
-
accelerator_arn(GenericString) –The Amazon Resource Name (ARN) of the accelerator that you want to update.
-
flow_logs_enabled(Optional[GenericBoolean], default:None) –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.
-
flow_logs_s3_bucket(Optional[GenericString], default:None) –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. -
flow_logs_s3_prefix(Optional[GenericString], default:None) –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
Raises:
-
AcceleratorNotFoundException–The accelerator that you specified doesn't exist.
-
AccessDeniedException–You don't have access permission.
-
InternalServiceErrorException–There was an internal error for Global Accelerator.
-
InvalidArgumentException–An argument that you specified is invalid.
-
TransactionInProgressException–There's already a transaction in progress. Another transaction can't be processed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_global_accelerator/_services/async_global_accelerator.py
3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 | |