Fix access_logs_s3_prefix leading/trailing slash (#55148) (#55530)

- Add documentation regarding restrictions on access_logs_s3_prefix (cannot have a leading or trailing slash)

(cherry picked from commit 698d2454c7)
This commit is contained in:
Alicia Cozine 2019-04-22 09:51:51 -05:00 committed by GitHub
parent 1f84c4982f
commit 91bf8402d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,12 +35,16 @@ options:
type: bool
access_logs_s3_bucket:
description:
- The name of the S3 bucket for the access logs. This attribute is required if access logs in Amazon S3 are enabled. The bucket must exist in the same
- The name of the S3 bucket for the access logs.
- Required if access logs in Amazon S3 are enabled.
- The bucket must exist in the same
region as the load balancer and have a bucket policy that grants Elastic Load Balancing permission to write to the bucket.
required: false
access_logs_s3_prefix:
description:
- The prefix for the location in the S3 bucket. If you don't specify a prefix, the access logs are stored in the root of the bucket.
- The prefix for the log location in the S3 bucket.
- If you don't specify a prefix, the access logs are stored in the root of the bucket.
- Cannot begin or end with a slash.
required: false
deletion_protection:
description:
@ -161,7 +165,7 @@ EXAMPLES = '''
- elb_application_lb:
access_logs_enabled: yes
access_logs_s3_bucket: mybucket
access_logs_s3_prefix: "/logs"
access_logs_s3_prefix: "logs"
name: myelb
security_groups:
- sg-12345678
@ -232,7 +236,7 @@ access_logs_s3_prefix:
description: The prefix for the location in the S3 bucket.
returned: when state is present
type: str
sample: /my/logs
sample: my/logs
availability_zones:
description: The Availability Zones for the load balancer.
returned: when state is present