Skip to content

Commit a76e6f3

Browse files
author
AWS
committed
Amazon Lightsail Update: This release adds support to enable access logging for buckets in the Lightsail object storage service.
1 parent f4ba899 commit a76e6f3

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Lightsail",
4+
"contributor": "",
5+
"description": "This release adds support to enable access logging for buckets in the Lightsail object storage service."
6+
}

services/lightsail/src/main/resources/codegen-resources/service-2.json

+35-2
Original file line numberDiff line numberDiff line change
@@ -3463,10 +3463,39 @@
34633463
"state":{
34643464
"shape":"BucketState",
34653465
"documentation":"<p>An object that describes the state of the bucket.</p>"
3466+
},
3467+
"accessLogConfig":{
3468+
"shape":"BucketAccessLogConfig",
3469+
"documentation":"<p>An object that describes the access log configuration for the bucket.</p>"
34663470
}
34673471
},
34683472
"documentation":"<p>Describes an Amazon Lightsail bucket.</p>"
34693473
},
3474+
"BucketAccessLogConfig":{
3475+
"type":"structure",
3476+
"required":["enabled"],
3477+
"members":{
3478+
"enabled":{
3479+
"shape":"boolean",
3480+
"documentation":"<p>A Boolean value that indicates whether bucket access logging is enabled for the bucket.</p>"
3481+
},
3482+
"destination":{
3483+
"shape":"BucketName",
3484+
"documentation":"<p>The name of the bucket where the access is saved. The destination can be a Lightsail bucket in the same account, and in the same AWS Region as the source bucket.</p> <note> <p>This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.</p> </note>"
3485+
},
3486+
"prefix":{
3487+
"shape":"BucketAccessLogPrefix",
3488+
"documentation":"<p>The optional object prefix for the bucket access log.</p> <p>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 <code>logs/</code> prefix, then each log object will begin with the <code>logs/</code> prefix in its key (for example, <code>logs/2021-11-01-21-32-16-E568B2907131C0C0</code>).</p> <note> <p>This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.</p> </note>"
3489+
}
3490+
},
3491+
"documentation":"<p>Describes the access log configuration for a bucket in the Amazon Lightsail object storage service.</p> <p>For more information about bucket access logs, see <a href=\"https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-bucket-access-logs\">Logging bucket requests using access logging in Amazon Lightsail</a> in the <i>Amazon Lightsail Developer Guide</i>.</p>"
3492+
},
3493+
"BucketAccessLogPrefix":{
3494+
"type":"string",
3495+
"max":100,
3496+
"min":1,
3497+
"pattern":"^[\\w/!.*')(-]+$"
3498+
},
34703499
"BucketBundle":{
34713500
"type":"structure",
34723501
"members":{
@@ -3963,7 +3992,7 @@
39633992
"members":{
39643993
"image":{
39653994
"shape":"string",
3966-
"documentation":"<p>The name of the image used for the container.</p> <p>Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (<code>:</code>). For example, <code>:container-service-1.mystaticwebsite.1</code>. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, <code>nginx:latest</code> or <code>nginx</code>.</p>"
3995+
"documentation":"<p>The name of the image used for the container.</p> <p>Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (<code>:</code>). For example, if your container service name is <code>container-service-1</code>, the container image label is <code>mystaticsite</code>, and you want to use the third (<code>3</code>) version of the registered container image, then you should specify <code>:container-service-1.mystaticsite.3</code>. To use the latest version of a container image, specify <code>latest</code> instead of a version number (for example, <code>:container-service-1.mystaticsite.latest</code>). Lightsail will automatically use the highest numbered version of the registered container image.</p> <p>Container images sourced from a public registry like Docker Hub don't start with a colon. For example, <code>nginx:latest</code> or <code>nginx</code>.</p>"
39673996
},
39683997
"command":{
39693998
"shape":"StringList",
@@ -4644,7 +4673,7 @@
46444673
},
46454674
"tags":{
46464675
"shape":"TagList",
4647-
"documentation":"<p>The tag keys and optional values to add to the certificate during create.</p> <p>Use the <code>TagResource</code> action to tag a resource after it's created.</p> <p>For more information about tags in Lightsail, see the <a href=\"https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-tags\">Amazon Lightsail Developer Guide</a>.</p>"
4676+
"documentation":"<p>The tag keys and optional values to add to the container service during create.</p> <p>Use the <code>TagResource</code> action to tag a resource after it's created.</p> <p>For more information about tags in Lightsail, see the <a href=\"https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-tags\">Amazon Lightsail Developer Guide</a>.</p>"
46484677
},
46494678
"publicDomainNames":{
46504679
"shape":"ContainerServicePublicDomains",
@@ -10987,6 +11016,10 @@
1098711016
"readonlyAccessAccounts":{
1098811017
"shape":"PartnerIdList",
1098911018
"documentation":"<p>An array of strings to specify the AWS account IDs that can access the bucket.</p> <p>You can give a maximum of 10 AWS accounts access to a bucket.</p>"
11019+
},
11020+
"accessLogConfig":{
11021+
"shape":"BucketAccessLogConfig",
11022+
"documentation":"<p>An object that describes the access log configuration for the bucket.</p>"
1099011023
}
1099111024
}
1099211025
},

0 commit comments

Comments
 (0)