AWS::Lightsail::BucketThe `AWS::Lightsail::Bucket` resource specifies a bucket.
import { CfnBucket } from 'aws-cdk-lib/aws-lightsail';Or use the module namespace:
import * as lightsail from 'aws-cdk-lib/aws-lightsail';
// lightsail.CfnBucketConfiguration passed to the constructor as CfnBucketProps.
bucketNameRequiredstringThe name of the bucket.
bundleIdRequiredstringThe bundle ID for the bucket (for example, `small_1_0` ). A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
accessRulesOptionalIResolvable | AccessRulesPropertyAn object that describes the access rules for the bucket.
objectVersioningOptionalboolean | IResolvableIndicates whether object versioning is enabled for the bucket. The following options can be configured: - `Enabled` - Object versioning is enabled. - `Suspended` - Object versioning was previously enabled but is currently suspended. Existing object versions are retained. - `NeverEnabled` - Object versioning has never been enabled.
readOnlyAccessAccountsOptionalstring[]An array of AWS account IDs that have read-only access to the bucket.
resourcesReceivingAccessOptionalstring[]An array of Lightsail instances that have access to the bucket.
tagsOptionalCfnTag[]An array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) in the *AWS CloudFormation User Guide* . > The `Value` of `Tags` is optional for Lightsail resources.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-lightsailAWS::Lightsail::Bucket