Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data UpdateBucket = UpdateBucket' {}
- newUpdateBucket :: Text -> UpdateBucket
- updateBucket_accessLogConfig :: Lens' UpdateBucket (Maybe BucketAccessLogConfig)
- updateBucket_accessRules :: Lens' UpdateBucket (Maybe AccessRules)
- updateBucket_readonlyAccessAccounts :: Lens' UpdateBucket (Maybe [Text])
- updateBucket_versioning :: Lens' UpdateBucket (Maybe Text)
- updateBucket_bucketName :: Lens' UpdateBucket Text
- data UpdateBucketResponse = UpdateBucketResponse' {
- bucket :: Maybe Bucket
- operations :: Maybe [Operation]
- httpStatus :: Int
- newUpdateBucketResponse :: Int -> UpdateBucketResponse
- updateBucketResponse_bucket :: Lens' UpdateBucketResponse (Maybe Bucket)
- updateBucketResponse_operations :: Lens' UpdateBucketResponse (Maybe [Operation])
- updateBucketResponse_httpStatus :: Lens' UpdateBucketResponse Int
Creating a Request
data UpdateBucket Source #
See: newUpdateBucket
smart constructor.
UpdateBucket' | |
|
Instances
Create a value of UpdateBucket
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateBucket
, updateBucket_accessLogConfig
- An object that describes the access log configuration for the bucket.
UpdateBucket
, updateBucket_accessRules
- An object that sets the public accessibility of objects in the specified
bucket.
UpdateBucket
, updateBucket_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.
$sel:versioning:UpdateBucket'
, updateBucket_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.
$sel:bucketName:UpdateBucket'
, updateBucket_bucketName
- The name of the bucket to update.
Request Lenses
updateBucket_accessLogConfig :: Lens' UpdateBucket (Maybe BucketAccessLogConfig) Source #
An object that describes the access log configuration for the bucket.
updateBucket_accessRules :: Lens' UpdateBucket (Maybe AccessRules) Source #
An object that sets the public accessibility of objects in the specified bucket.
updateBucket_readonlyAccessAccounts :: Lens' UpdateBucket (Maybe [Text]) Source #
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.
updateBucket_versioning :: Lens' UpdateBucket (Maybe Text) Source #
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.
updateBucket_bucketName :: Lens' UpdateBucket Text Source #
The name of the bucket to update.
Destructuring the Response
data UpdateBucketResponse Source #
See: newUpdateBucketResponse
smart constructor.
UpdateBucketResponse' | |
|
Instances
newUpdateBucketResponse Source #
Create a value of UpdateBucketResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:bucket:UpdateBucketResponse'
, updateBucketResponse_bucket
- An object that describes the bucket that is updated.
$sel:operations:UpdateBucketResponse'
, updateBucketResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:UpdateBucketResponse'
, updateBucketResponse_httpStatus
- The response's http status code.
Response Lenses
updateBucketResponse_bucket :: Lens' UpdateBucketResponse (Maybe Bucket) Source #
An object that describes the bucket that is updated.
updateBucketResponse_operations :: Lens' UpdateBucketResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
updateBucketResponse_httpStatus :: Lens' UpdateBucketResponse Int Source #
The response's http status code.