Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Update the attributes for an accelerator.
Synopsis
- data UpdateAcceleratorAttributes = UpdateAcceleratorAttributes' {}
- newUpdateAcceleratorAttributes :: Text -> UpdateAcceleratorAttributes
- updateAcceleratorAttributes_flowLogsS3Prefix :: Lens' UpdateAcceleratorAttributes (Maybe Text)
- updateAcceleratorAttributes_flowLogsEnabled :: Lens' UpdateAcceleratorAttributes (Maybe Bool)
- updateAcceleratorAttributes_flowLogsS3Bucket :: Lens' UpdateAcceleratorAttributes (Maybe Text)
- updateAcceleratorAttributes_acceleratorArn :: Lens' UpdateAcceleratorAttributes Text
- data UpdateAcceleratorAttributesResponse = UpdateAcceleratorAttributesResponse' {}
- newUpdateAcceleratorAttributesResponse :: Int -> UpdateAcceleratorAttributesResponse
- updateAcceleratorAttributesResponse_acceleratorAttributes :: Lens' UpdateAcceleratorAttributesResponse (Maybe AcceleratorAttributes)
- updateAcceleratorAttributesResponse_httpStatus :: Lens' UpdateAcceleratorAttributesResponse Int
Creating a Request
data UpdateAcceleratorAttributes Source #
See: newUpdateAcceleratorAttributes
smart constructor.
UpdateAcceleratorAttributes' | |
|
Instances
newUpdateAcceleratorAttributes Source #
Create a value of UpdateAcceleratorAttributes
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:flowLogsS3Prefix:UpdateAcceleratorAttributes'
, updateAcceleratorAttributes_flowLogsS3Prefix
- Update the prefix for the location in the Amazon S3 bucket for the flow
logs. Attribute is required if FlowLogsEnabled
is true
.
If you don’t specify a prefix, the flow logs are stored in the root of the bucket. 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
$sel:flowLogsEnabled:UpdateAcceleratorAttributes'
, updateAcceleratorAttributes_flowLogsEnabled
- Update whether flow logs are enabled. The default value is false. If the
value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be
specified.
For more information, see Flow Logs in the AWS Global Accelerator Developer Guide.
$sel:flowLogsS3Bucket:UpdateAcceleratorAttributes'
, updateAcceleratorAttributes_flowLogsS3Bucket
- The name of the Amazon S3 bucket for the flow logs. Attribute is
required if FlowLogsEnabled
is true
. The bucket must exist and have
a bucket policy that grants AWS Global Accelerator permission to write
to the bucket.
$sel:acceleratorArn:UpdateAcceleratorAttributes'
, updateAcceleratorAttributes_acceleratorArn
- The Amazon Resource Name (ARN) of the accelerator that you want to
update.
Request Lenses
updateAcceleratorAttributes_flowLogsS3Prefix :: Lens' UpdateAcceleratorAttributes (Maybe Text) Source #
Update the prefix for the location in the Amazon S3 bucket for the flow
logs. Attribute is required if FlowLogsEnabled
is true
.
If you don’t specify a prefix, the flow logs are stored in the root of the bucket. 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
updateAcceleratorAttributes_flowLogsEnabled :: Lens' UpdateAcceleratorAttributes (Maybe Bool) Source #
Update whether flow logs are enabled. The default value is false. If the
value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be
specified.
For more information, see Flow Logs in the AWS Global Accelerator Developer Guide.
updateAcceleratorAttributes_flowLogsS3Bucket :: Lens' UpdateAcceleratorAttributes (Maybe Text) Source #
The name of the Amazon S3 bucket for the flow logs. Attribute is
required if FlowLogsEnabled
is true
. The bucket must exist and have
a bucket policy that grants AWS Global Accelerator permission to write
to the bucket.
updateAcceleratorAttributes_acceleratorArn :: Lens' UpdateAcceleratorAttributes Text Source #
The Amazon Resource Name (ARN) of the accelerator that you want to update.
Destructuring the Response
data UpdateAcceleratorAttributesResponse Source #
See: newUpdateAcceleratorAttributesResponse
smart constructor.
UpdateAcceleratorAttributesResponse' | |
|
Instances
newUpdateAcceleratorAttributesResponse Source #
Create a value of UpdateAcceleratorAttributesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:acceleratorAttributes:UpdateAcceleratorAttributesResponse'
, updateAcceleratorAttributesResponse_acceleratorAttributes
- Updated attributes for the accelerator.
$sel:httpStatus:UpdateAcceleratorAttributesResponse'
, updateAcceleratorAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
updateAcceleratorAttributesResponse_acceleratorAttributes :: Lens' UpdateAcceleratorAttributesResponse (Maybe AcceleratorAttributes) Source #
Updated attributes for the accelerator.
updateAcceleratorAttributesResponse_httpStatus :: Lens' UpdateAcceleratorAttributesResponse Int Source #
The response's http status code.