Modifier and Type | Method and Description |
---|---|
CfnBucket.Builder |
accessRules(CfnBucket.AccessRulesProperty accessRules)
An object that describes the access rules for the bucket.
|
CfnBucket.Builder |
accessRules(IResolvable accessRules)
An object that describes the access rules for the bucket.
|
CfnBucket.Builder |
bucketName(String bucketName)
The name of the bucket.
|
CfnBucket |
build() |
CfnBucket.Builder |
bundleId(String bundleId)
The bundle ID for the bucket (for example, `small_1_0` ).
|
static CfnBucket.Builder |
create(Construct scope,
String id) |
CfnBucket.Builder |
objectVersioning(Boolean objectVersioning)
Indicates whether object versioning is enabled for the bucket.
|
CfnBucket.Builder |
objectVersioning(IResolvable objectVersioning)
Indicates whether object versioning is enabled for the bucket.
|
CfnBucket.Builder |
readOnlyAccessAccounts(List<String> readOnlyAccessAccounts)
An array of AWS account IDs that have read-only access to the bucket.
|
CfnBucket.Builder |
resourcesReceivingAccess(List<String> resourcesReceivingAccess)
An array of Lightsail instances that have access to the bucket.
|
CfnBucket.Builder |
tags(List<? extends CfnTag> tags)
An array of key-value pairs to apply to this resource.
|
@Stability(value=Stable) public static CfnBucket.Builder create(Construct scope, String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnBucket.AccessRulesProperty.Builder
.@Stability(value=Stable) public CfnBucket.Builder bucketName(String bucketName)
bucketName
- The name of the bucket. This parameter is required.this
@Stability(value=Stable) public CfnBucket.Builder bundleId(String bundleId)
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
bundleId
- The bundle ID for the bucket (for example, `small_1_0` ). This parameter is required.this
@Stability(value=Stable) public CfnBucket.Builder accessRules(IResolvable accessRules)
accessRules
- An object that describes the access rules for the bucket. This parameter is required.this
@Stability(value=Stable) public CfnBucket.Builder accessRules(CfnBucket.AccessRulesProperty accessRules)
accessRules
- An object that describes the access rules for the bucket. This parameter is required.this
@Stability(value=Stable) public CfnBucket.Builder objectVersioning(Boolean objectVersioning)
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.objectVersioning
- Indicates whether object versioning is enabled for the bucket. This parameter is required.this
@Stability(value=Stable) public CfnBucket.Builder objectVersioning(IResolvable objectVersioning)
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.objectVersioning
- Indicates whether object versioning is enabled for the bucket. This parameter is required.this
@Stability(value=Stable) public CfnBucket.Builder readOnlyAccessAccounts(List<String> readOnlyAccessAccounts)
readOnlyAccessAccounts
- An array of AWS account IDs that have read-only access to the bucket. This parameter is required.this
@Stability(value=Stable) public CfnBucket.Builder resourcesReceivingAccess(List<String> resourcesReceivingAccess)
resourcesReceivingAccess
- An array of Lightsail instances that have access to the bucket. This parameter is required.this
@Stability(value=Stable) public CfnBucket.Builder tags(List<? extends CfnTag> tags)
For more information, see Tag in the AWS CloudFormation User Guide .
The
Value
ofTags
is optional for Lightsail resources.
tags
- An array of key-value pairs to apply to this resource. This parameter is required.this
Copyright © 2023. All rights reserved.