@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.736Z") @Stability(value=Stable) public interface BucketPolicyProps extends software.amazon.jsii.JsiiSerializable
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.s3.*;
Bucket bucket;
BucketPolicyProps bucketPolicyProps = BucketPolicyProps.builder()
.bucket(bucket)
// the properties below are optional
.removalPolicy(RemovalPolicy.DESTROY)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
BucketPolicyProps.Builder
A builder for
BucketPolicyProps |
static class |
BucketPolicyProps.Jsii$Proxy
An implementation for
BucketPolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static BucketPolicyProps.Builder |
builder() |
IBucket |
getBucket()
The Amazon S3 bucket that the policy applies to.
|
default RemovalPolicy |
getRemovalPolicy()
Policy to apply when the policy is removed from this stack.
|
@Stability(value=Stable) @NotNull IBucket getBucket()
@Stability(value=Stable) @Nullable default RemovalPolicy getRemovalPolicy()
Default: - RemovalPolicy.DESTROY.
@Stability(value=Stable) static BucketPolicyProps.Builder builder()
BucketPolicyProps.Builder of BucketPolicyPropsCopyright © 2022. All rights reserved.