Class CfnVectorBucketPolicy
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.s3vectors.CfnVectorBucketPolicy
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IVectorBucketPolicyRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:17.280Z")
@Stability(Stable)
public class CfnVectorBucketPolicy
extends CfnResource
implements IInspectable, IVectorBucketPolicyRef
The
AWS::S3Vectors::VectorBucketPolicy resource defines an Amazon S3 vector bucket policy to control access to an Amazon S3 vector bucket.
Vector bucket policies are written in JSON and allow you to grant or deny permissions across all (or a subset of) objects within a vector bucket.
You must specify either VectorBucketName or VectorBucketArn to identify the target bucket.
To control how AWS CloudFormation handles the vector bucket policy when the stack is deleted, you can set a deletion policy for your policy. You can choose to retain the policy or to delete the policy. For more information, see DeletionPolicy attribute .
- Permissions - The required permissions for CloudFormation to use are based on the operations that are performed on the stack.
- Create
- s3vectors:GetVectorBucketPolicy
- s3vectors:PutVectorBucketPolicy
- Read
- s3vectors:GetVectorBucketPolicy
- Update
- s3vectors:GetVectorBucketPolicy
- s3vectors:PutVectorBucketPolicy
- Delete
- s3vectors:GetVectorBucketPolicy
- s3vectors:DeleteVectorBucketPolicy
- List
- s3vectors:GetVectorBucketPolicy
- s3vectors:ListVectorBuckets
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.s3vectors.*;
Object policy;
CfnVectorBucketPolicy cfnVectorBucketPolicy = CfnVectorBucketPolicy.Builder.create(this, "MyCfnVectorBucketPolicy")
.policy(policy)
// the properties below are optional
.vectorBucketArn("vectorBucketArn")
.vectorBucketName("vectorBucketName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.s3vectors.IVectorBucketPolicyRef
IVectorBucketPolicyRef.Jsii$Default, IVectorBucketPolicyRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnVectorBucketPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVectorBucketPolicy(software.amazon.jsii.JsiiObjectRef objRef) CfnVectorBucketPolicy(software.constructs.Construct scope, String id, CfnVectorBucketPolicyProps props) Create a newAWS::S3Vectors::VectorBucketPolicy. -
Method Summary
Modifier and TypeMethodDescriptionA policy document containing permissions to add to the specified vector bucket.The Amazon Resource Name (ARN) of the S3 vector bucket to which the policy applies.The name of the S3 vector bucket to which the policy applies.A reference to a VectorBucketPolicy resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnVectorBucketPolicy.renderProperties(Map<String, Object> props) voidA policy document containing permissions to add to the specified vector bucket.voidsetVectorBucketArn(String value) The Amazon Resource Name (ARN) of the S3 vector bucket to which the policy applies.voidsetVectorBucketName(String value) The name of the S3 vector bucket to which the policy applies.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnVectorBucketPolicy
protected CfnVectorBucketPolicy(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVectorBucketPolicy
protected CfnVectorBucketPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVectorBucketPolicy
@Stability(Stable) public CfnVectorBucketPolicy(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnVectorBucketPolicyProps props) Create a newAWS::S3Vectors::VectorBucketPolicy.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnVectorBucketPolicy
Checks whether the given object is a CfnVectorBucketPolicy.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getVectorBucketPolicyRef
A reference to a VectorBucketPolicy resource.- Specified by:
getVectorBucketPolicyRefin interfaceIVectorBucketPolicyRef
-
getPolicy
A policy document containing permissions to add to the specified vector bucket. -
setPolicy
A policy document containing permissions to add to the specified vector bucket. -
getVectorBucketArn
The Amazon Resource Name (ARN) of the S3 vector bucket to which the policy applies. -
setVectorBucketArn
The Amazon Resource Name (ARN) of the S3 vector bucket to which the policy applies. -
getVectorBucketName
The name of the S3 vector bucket to which the policy applies. -
setVectorBucketName
The name of the S3 vector bucket to which the policy applies.
-