Class BucketPolicyStatements
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.services.s3.mixins.BucketPolicyStatements
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-19T12:55:12.376Z")
@Stability(Stable)
public class BucketPolicyStatements
extends Mixin
Adds statements to a bucket policy.
Example:
CfnBucketPolicy.Builder.create(this, "Policy")
.bucket(new CfnBucket(this, "Bucket").ref)
.policyDocument(new PolicyDocument())
.build().with(new BucketPolicyStatements(List.of(
PolicyStatement.Builder.create()
.actions(List.of("s3:GetObject"))
.resources(List.of("*"))
.principals(List.of(new AnyPrincipal()))
.build())));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionBucketPolicyStatements(List<PolicyStatement> statements) protectedBucketPolicyStatements(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBucketPolicyStatements(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
BucketPolicyStatements
protected BucketPolicyStatements(software.amazon.jsii.JsiiObjectRef objRef) -
BucketPolicyStatements
protected BucketPolicyStatements(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
BucketPolicyStatements
- Parameters:
statements- This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct policy) Applies the mixin functionality to the target construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Determines whether this mixin can be applied to the given construct.
-