CfnVectorBucketPolicyMixinProps
- class aws_cdk.mixins_preview.aws_s3vectors.mixins.CfnVectorBucketPolicyMixinProps(*, policy=None, vector_bucket_arn=None, vector_bucket_name=None)
Bases:
objectProperties for CfnVectorBucketPolicyPropsMixin.
- Parameters:
policy (
Any) – 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 .vector_bucket_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the S3 vector bucket to which the policy applies.vector_bucket_name (
Optional[str]) – The name of the S3 vector bucket to which the policy applies.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3vectors import mixins as s3vectors_mixins # policy: Any cfn_vector_bucket_policy_mixin_props = s3vectors_mixins.CfnVectorBucketPolicyMixinProps( policy=policy, vector_bucket_arn="vectorBucketArn", vector_bucket_name="vectorBucketName" )
Attributes
- 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 .
- vector_bucket_arn
The Amazon Resource Name (ARN) of the S3 vector bucket to which the policy applies.
- vector_bucket_name
The name of the S3 vector bucket to which the policy applies.