Class CfnVectorBucketPolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3vectors.CfnVectorBucketPolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVectorBucketPolicyMixinProps>
- Enclosing interface:
CfnVectorBucketPolicyMixinProps
@Stability(Stable)
public static final class CfnVectorBucketPolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVectorBucketPolicyMixinProps>
A builder for
CfnVectorBucketPolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVectorBucketPolicyMixinProps.getPolicy()vectorBucketArn(String vectorBucketArn) Sets the value ofCfnVectorBucketPolicyMixinProps.getVectorBucketArn()vectorBucketName(String vectorBucketName) Sets the value ofCfnVectorBucketPolicyMixinProps.getVectorBucketName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policy
Sets the value ofCfnVectorBucketPolicyMixinProps.getPolicy()- Parameters:
policy- A policy document containing permissions to add to the specified vector bucket. 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 CfnVectorBucketPolicyMixinProps.Builder vectorBucketArn(String vectorBucketArn) Sets the value ofCfnVectorBucketPolicyMixinProps.getVectorBucketArn()- Parameters:
vectorBucketArn- The Amazon Resource Name (ARN) of the S3 vector bucket to which the policy applies.- Returns:
this
-
vectorBucketName
@Stability(Stable) public CfnVectorBucketPolicyMixinProps.Builder vectorBucketName(String vectorBucketName) Sets the value ofCfnVectorBucketPolicyMixinProps.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<CfnVectorBucketPolicyMixinProps>- Returns:
- a new instance of
CfnVectorBucketPolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-