Class CfnVectorBucketPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3vectors.CfnVectorBucketPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVectorBucketPolicyProps>
- Enclosing interface:
CfnVectorBucketPolicyProps
@Stability(Stable)
public static final class CfnVectorBucketPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVectorBucketPolicyProps>
A builder for
CfnVectorBucketPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVectorBucketPolicyProps.getPolicy()vectorBucketArn(String vectorBucketArn) Sets the value ofCfnVectorBucketPolicyProps.getVectorBucketArn()vectorBucketName(String vectorBucketName) Sets the value ofCfnVectorBucketPolicyProps.getVectorBucketName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policy
Sets the value ofCfnVectorBucketPolicyProps.getPolicy()- Parameters:
policy- A policy document containing permissions to add to the specified vector bucket. This parameter is required. In IAM , you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM .- Returns:
this
-
vectorBucketArn
@Stability(Stable) public CfnVectorBucketPolicyProps.Builder vectorBucketArn(String vectorBucketArn) Sets the value ofCfnVectorBucketPolicyProps.getVectorBucketArn()- Parameters:
vectorBucketArn- The Amazon Resource Name (ARN) of the S3 vector bucket to which the policy applies.- Returns:
this
-
vectorBucketName
@Stability(Stable) public CfnVectorBucketPolicyProps.Builder vectorBucketName(String vectorBucketName) Sets the value ofCfnVectorBucketPolicyProps.getVectorBucketName()- Parameters:
vectorBucketName- The name of the S3 vector bucket to which the policy applies.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVectorBucketPolicyProps>- Returns:
- a new instance of
CfnVectorBucketPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-