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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnBucket.AccessRulesProperty
static final class
An implementation forCfnBucket.AccessRulesProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
A Boolean value indicating whether the access control list (ACL) permissions that are applied to individual objects override theGetObject
option that is currently specified.default String
Specifies 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 theGetObject
option 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-read
ACL or theprivate
ACL.- See Also:
-
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
GetObject
value is set topublic
, then all objects in the bucket default to public regardless of theallowPublicOverrides
value.private
- Sets all objects in the bucket to private, making them readable only by you and anyone that you grant access to.
If the
GetObject
value is set toprivate
, and theallowPublicOverrides
value is set totrue
, then all objects in the bucket default to private unless they are configured with apublic-read
ACL. Individual objects with apublic-read
ACL are readable by everyone on the internet.- See Also:
-
builder
-