Class CfnBucket
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.lightsail.CfnBucket
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:56:01.342Z")
@Stability(Stable)
public class CfnBucket
extends CfnResource
implements IInspectable, ITaggable
The
AWS::Lightsail::Bucket
resource specifies a bucket.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.lightsail.*; CfnBucket cfnBucket = CfnBucket.Builder.create(this, "MyCfnBucket") .bucketName("bucketName") .bundleId("bundleId") // the properties below are optional .accessRules(AccessRulesProperty.builder() .allowPublicOverrides(false) .objectAccess("objectAccess") .build()) .objectVersioning(false) .readOnlyAccessAccounts(List.of("readOnlyAccessAccounts")) .resourcesReceivingAccess(List.of("resourcesReceivingAccess")) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
AccessRules
is a property of the AWS::Lightsail::Bucket resource.static final class
A fluent builder forCfnBucket
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnBucket
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnBucket
(software.amazon.jsii.JsiiObjectRef objRef) CfnBucket
(software.constructs.Construct scope, String id, CfnBucketProps props) -
Method Summary
Modifier and TypeMethodDescriptionAn object that describes the access rules for the bucket.A Boolean value indicating whether the bundle that is currently applied to your distribution can be changed to another bundle.The Amazon Resource Name (ARN) of the bucket.The URL of the bucket.The name of the bucket.The bundle ID for the bucket (for example,small_1_0
).Indicates whether object versioning is enabled for the bucket.An array of AWS account IDs that have read-only access to the bucket.An array of Lightsail instances that have access to the bucket.getTags()
Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAccessRules
(IResolvable value) An object that describes the access rules for the bucket.void
An object that describes the access rules for the bucket.void
setBucketName
(String value) The name of the bucket.void
setBundleId
(String value) The bundle ID for the bucket (for example,small_1_0
).void
setObjectVersioning
(Boolean value) Indicates whether object versioning is enabled for the bucket.void
setObjectVersioning
(IResolvable value) Indicates whether object versioning is enabled for the bucket.void
setReadOnlyAccessAccounts
(List<String> value) An array of AWS account IDs that have read-only access to the bucket.void
setResourcesReceivingAccess
(List<String> value) An array of Lightsail instances that have access to the bucket.void
setTagsRaw
(List<CfnTag> value) An array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnBucket
protected CfnBucket(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBucket
protected CfnBucket(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBucket
@Stability(Stable) public CfnBucket(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnBucketProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrAbleToUpdateBundle
A Boolean value indicating whether the bundle that is currently applied to your distribution can be changed to another bundle. -
getAttrBucketArn
The Amazon Resource Name (ARN) of the bucket. -
getAttrUrl
The URL of the bucket. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getBucketName
The name of the bucket. -
setBucketName
The name of the bucket. -
getBundleId
The bundle ID for the bucket (for example,small_1_0
). -
setBundleId
The bundle ID for the bucket (for example,small_1_0
). -
getAccessRules
An object that describes the access rules for the bucket. -
setAccessRules
An object that describes the access rules for the bucket. -
setAccessRules
An object that describes the access rules for the bucket. -
getObjectVersioning
Indicates whether object versioning is enabled for the bucket. -
setObjectVersioning
Indicates whether object versioning is enabled for the bucket. -
setObjectVersioning
Indicates whether object versioning is enabled for the bucket. -
getReadOnlyAccessAccounts
An array of AWS account IDs that have read-only access to the bucket. -
setReadOnlyAccessAccounts
An array of AWS account IDs that have read-only access to the bucket. -
getResourcesReceivingAccess
An array of Lightsail instances that have access to the bucket. -
setResourcesReceivingAccess
An array of Lightsail instances that have access to the bucket. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource.
-