Interface CfnBucket.AccessRulesProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBucket.AccessRulesProperty.Jsii$Proxy
- Enclosing class:
- CfnBucket
@Stability(Stable)
public static interface CfnBucket.AccessRulesProperty
extends software.amazon.jsii.JsiiSerializable
AccessRules is a property of the AWS::Lightsail::Bucket resource. It describes access rules for 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.*;
AccessRulesProperty accessRulesProperty = AccessRulesProperty.builder()
.allowPublicOverrides(false)
.objectAccess("objectAccess")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBucket.AccessRulesPropertystatic final classAn implementation forCfnBucket.AccessRulesProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA Boolean value indicating whether the access control list (ACL) permissions that are applied to individual objects override theGetObjectoption that is currently specified.default StringSpecifies the anonymous access to all objects in a bucket.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowPublicOverrides
A Boolean value indicating whether the access control list (ACL) permissions that are applied to individual objects override theGetObjectoption that is currently specified.When this is true, you can use the PutObjectAcl Amazon S3 API operation to set individual objects to public (read-only) or private, using either the
public-readACL or theprivateACL. -
getObjectAccess
Specifies the anonymous access to all objects in a bucket.The following options can be specified:
public- Sets all objects in the bucket to public (read-only), making them readable by everyone on the internet.
If the
GetObjectvalue is set topublic, then all objects in the bucket default to public regardless of theallowPublicOverridesvalue.private- Sets all objects in the bucket to private, making them readable only by you and anyone that you grant access to.
If the
GetObjectvalue is set toprivate, and theallowPublicOverridesvalue is set totrue, then all objects in the bucket default to private unless they are configured with apublic-readACL. Individual objects with apublic-readACL are readable by everyone on the internet. -
builder
-