aws_sdk_globalaccelerator/client/update_accelerator_attributes.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateAcceleratorAttributes`](crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`accelerator_arn(impl Into<String>)`](crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder::accelerator_arn) / [`set_accelerator_arn(Option<String>)`](crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder::set_accelerator_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the accelerator that you want to update.</p><br>
7 /// - [`flow_logs_enabled(bool)`](crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder::flow_logs_enabled) / [`set_flow_logs_enabled(Option<bool>)`](crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder::set_flow_logs_enabled):<br>required: **false**<br><p>Update whether flow logs are enabled. The default value is false. If the value is true, <code>FlowLogsS3Bucket</code> and <code>FlowLogsS3Prefix</code> must be specified.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/monitoring-global-accelerator.flow-logs.html">Flow Logs</a> in the <i>Global Accelerator Developer Guide</i>.</p><br>
8 /// - [`flow_logs_s3_bucket(impl Into<String>)`](crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder::flow_logs_s3_bucket) / [`set_flow_logs_s3_bucket(Option<String>)`](crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder::set_flow_logs_s3_bucket):<br>required: **false**<br><p>The name of the Amazon S3 bucket for the flow logs. Attribute is required if <code>FlowLogsEnabled</code> is <code>true</code>. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.</p><br>
9 /// - [`flow_logs_s3_prefix(impl Into<String>)`](crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder::flow_logs_s3_prefix) / [`set_flow_logs_s3_prefix(Option<String>)`](crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder::set_flow_logs_s3_prefix):<br>required: **false**<br><p>Update the prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if <code>FlowLogsEnabled</code> is <code>true</code>.</p> <p>If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:</p> <p>s3-bucket_name//AWSLogs/aws_account_id</p><br>
10 /// - On success, responds with [`UpdateAcceleratorAttributesOutput`](crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesOutput) with field(s):
11 /// - [`accelerator_attributes(Option<AcceleratorAttributes>)`](crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesOutput::accelerator_attributes): <p>Updated attributes for the accelerator.</p>
12 /// - On failure, responds with [`SdkError<UpdateAcceleratorAttributesError>`](crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError)
13 pub fn update_accelerator_attributes(
14 &self,
15 ) -> crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder {
16 crate::operation::update_accelerator_attributes::builders::UpdateAcceleratorAttributesFluentBuilder::new(self.handle.clone())
17 }
18}