Updates an existing Amazon Lightsail bucket
Source:R/lightsail_operations.R
lightsail_update_bucket.RdUpdates an existing Amazon Lightsail bucket.
See https://www.paws-r-sdk.com/docs/lightsail_update_bucket/ for full documentation.
Usage
lightsail_update_bucket(
bucketName,
accessRules = NULL,
versioning = NULL,
readonlyAccessAccounts = NULL,
accessLogConfig = NULL,
cors = NULL
)Arguments
- bucketName
[required] The name of the bucket to update.
- accessRules
An object that sets the public accessibility of objects in the specified bucket.
- versioning
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.
- readonlyAccessAccounts
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.
- accessLogConfig
An object that describes the access log configuration for the bucket.
- cors
Sets the cross-origin resource sharing (CORS) configuration for your bucket. If a CORS configuration exists, it is replaced with the specified configuration. For AWS CLI operations, this parameter can also be passed as a file. For more information, see Configuring cross-origin resource sharing (CORS).
CORS information is only returned in a response when you update the CORS policy.