Class: Aws::Lightsail::Types::BucketAccessLogConfig
- Inherits:
-
Struct
- Object
- Struct
- Aws::Lightsail::Types::BucketAccessLogConfig
- Defined in:
- gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb
Overview
Describes the access log configuration for a bucket in the Amazon Lightsail object storage service.
For more information about bucket access logs, see Logging bucket requests using access logging in Amazon Lightsail in the Amazon Lightsail Developer Guide.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#destination ⇒ String
The name of the bucket where the access logs are saved.
-
#enabled ⇒ Boolean
A Boolean value that indicates whether bucket access logging is enabled for the bucket.
-
#prefix ⇒ String
The optional object prefix for the bucket access log.
Instance Attribute Details
#destination ⇒ String
The name of the bucket where the access logs are saved. The destination can be a Lightsail bucket in the same account, and in the same Amazon Web Services Region as the source bucket.
1231 1232 1233 1234 1235 1236 1237 |
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 1231 class BucketAccessLogConfig < Struct.new( :enabled, :destination, :prefix) SENSITIVE = [] include Aws::Structure end |
#enabled ⇒ Boolean
A Boolean value that indicates whether bucket access logging is enabled for the bucket.
1231 1232 1233 1234 1235 1236 1237 |
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 1231 class BucketAccessLogConfig < Struct.new( :enabled, :destination, :prefix) SENSITIVE = [] include Aws::Structure end |
#prefix ⇒ String
The optional object prefix for the bucket access log.
The prefix is an optional addition to the object key that organizes
your access log files in the destination bucket. For example, if you
specify a logs/
prefix, then each log object will begin with the
logs/
prefix in its key (for example,
logs/2021-11-01-21-32-16-E568B2907131C0C0
).
1231 1232 1233 1234 1235 1236 1237 |
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 1231 class BucketAccessLogConfig < Struct.new( :enabled, :destination, :prefix) SENSITIVE = [] include Aws::Structure end |