Skip to content
v2.278.0

CfnVectorBucketPolicyProps Struct ​

Properties for defining a CfnVectorBucketPolicy.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3vectors as s3vectors } from 'aws-cdk-lib';

declare const policy: any;
const cfnVectorBucketPolicyProps: s3vectors.CfnVectorBucketPolicyProps = {
  policy: policy,

  // the properties below are optional
  vectorBucketArn: 'vectorBucketArn',
  vectorBucketName: 'vectorBucketName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3vectors as s3vectors

# policy: Any

cfn_vector_bucket_policy_props = s3vectors.CfnVectorBucketPolicyProps(
    policy=policy,

    # the properties below are optional
    vector_bucket_arn="vectorBucketArn",
    vector_bucket_name="vectorBucketName"
)
java
// 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;

CfnVectorBucketPolicyProps cfnVectorBucketPolicyProps = CfnVectorBucketPolicyProps.builder()
        .policy(policy)

        // the properties below are optional
        .vectorBucketArn("vectorBucketArn")
        .vectorBucketName("vectorBucketName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3Vectors;

var policy;

var cfnVectorBucketPolicyProps = new CfnVectorBucketPolicyProps {
    Policy = policy,

    // the properties below are optional
    VectorBucketArn = "vectorBucketArn",
    VectorBucketName = "vectorBucketName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var policy interface{}

cfnVectorBucketPolicyProps := &CfnVectorBucketPolicyProps{
	Policy: policy,

	// the properties below are optional
	VectorBucketArn: jsii.String("vectorBucketArn"),
	VectorBucketName: jsii.String("vectorBucketName"),
}

Properties ​

policyanypolicyAnypolicyObjectPolicyobjectPolicyinterface{} required #
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 .

vectorBucketArnoptionalstringvector_bucket_arnoptionalstrvectorBucketArnoptionalStringVectorBucketArnoptionalstringVectorBucketArnoptional*string #
The Amazon Resource Name (ARN) of the S3 vector bucket to which the policy applies.
vectorBucketNameoptionalstringvector_bucket_nameoptionalstrvectorBucketNameoptionalStringVectorBucketNameoptionalstringVectorBucketNameoptional*string #
The name of the S3 vector bucket to which the policy applies.