Interface BucketPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
BucketPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.501Z")
@Stability(Stable)
public interface BucketPolicyProps
extends software.amazon.jsii.JsiiSerializable
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.s3.*; import software.amazon.awscdk.core.*; Bucket bucket; BucketPolicyProps bucketPolicyProps = BucketPolicyProps.builder() .bucket(bucket) // the properties below are optional .removalPolicy(RemovalPolicy.DESTROY) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forBucketPolicyProps
static final class
An implementation forBucketPolicyProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic BucketPolicyProps.Builder
builder()
The Amazon S3 bucket that the policy applies to.default RemovalPolicy
Policy to apply when the policy is removed from this stack.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBucket
The Amazon S3 bucket that the policy applies to. -
getRemovalPolicy
Policy to apply when the policy is removed from this stack.Default: - RemovalPolicy.DESTROY.
-
builder
- Returns:
- a
BucketPolicyProps.Builder
ofBucketPolicyProps
-