Skip to content

/AWS1/CL_LSA=>UPDATEBUCKET()

About UpdateBucket

Updates an existing Amazon Lightsail bucket.

Use this action to update the configuration of an existing bucket, such as versioning, public accessibility, and the Amazon Web Services accounts that can access the bucket.

Method Signature

IMPORTING

Required arguments:

IV_BUCKETNAME TYPE /AWS1/LSABUCKETNAME /AWS1/LSABUCKETNAME

The name of the bucket to update.

Optional arguments:

IO_ACCESSRULES TYPE REF TO /AWS1/CL_LSAACCESSRULES /AWS1/CL_LSAACCESSRULES

An object that sets the public accessibility of objects in the specified bucket.

IV_VERSIONING TYPE /AWS1/LSANONEMPTYSTRING /AWS1/LSANONEMPTYSTRING

Specifies whether to enable or suspend versioning of objects in the bucket.

The following options can be specified:

  • Enabled - Enables versioning of objects in the specified bucket.

  • Suspended - Suspends versioning of objects in the specified bucket. Existing object versions are retained.

IT_READONLYACCESSACCOUNTS TYPE /AWS1/CL_LSAPARTNERIDLIST_W=>TT_PARTNERIDLIST TT_PARTNERIDLIST

An array of strings to specify the Amazon Web Services account IDs that can access the bucket.

You can give a maximum of 10 Amazon Web Services accounts access to a bucket.

IO_ACCESSLOGCONFIG TYPE REF TO /AWS1/CL_LSABKTACCESSLOGCONFIG /AWS1/CL_LSABKTACCESSLOGCONFIG

An object that describes the access log configuration for the bucket.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LSAUPDATEBUCKETRESULT /AWS1/CL_LSAUPDATEBUCKETRESULT