Experimental
@aws-cdk/aws-s3tables-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
TableBucketPolicyProps Struct
Parameters for constructing a TableBucketPolicy.
| Stability | Experimental |
|---|---|
| Source | lib/table-bucket-policy.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as s3tables_alpha from '@aws-cdk/aws-s3tables-alpha';
import * as cdk from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const policyDocument: iam.PolicyDocument;
declare const tableBucket: s3tables_alpha.TableBucket;
const tableBucketPolicyProps: s3tables_alpha.TableBucketPolicyProps = {
tableBucket: tableBucket,
// the properties below are optional
removalPolicy: cdk.RemovalPolicy.DESTROY,
resourcePolicy: policyDocument,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_s3tables_alpha as s3tables_alpha
import aws_cdk as cdk
from aws_cdk import aws_iam as iam
# policy_document: iam.PolicyDocument
# table_bucket: s3tables_alpha.TableBucket
table_bucket_policy_props = s3tables_alpha.TableBucketPolicyProps(
table_bucket=table_bucket,
# the properties below are optional
removal_policy=cdk.RemovalPolicy.DESTROY,
resource_policy=policy_document
)
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.s3tables.alpha.*;
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.iam.*;
PolicyDocument policyDocument;
TableBucket tableBucket;
TableBucketPolicyProps tableBucketPolicyProps = TableBucketPolicyProps.builder()
.tableBucket(tableBucket)
// the properties below are optional
.removalPolicy(RemovalPolicy.DESTROY)
.resourcePolicy(policyDocument)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.S3Tables.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3Tables.Alpha;
using Amazon.CDK;
using Amazon.CDK.AWS.IAM;
PolicyDocument policyDocument;
TableBucket tableBucket;
var tableBucketPolicyProps = new TableBucketPolicyProps {
TableBucket = tableBucket,
// the properties below are optional
RemovalPolicy = RemovalPolicy.DESTROY,
ResourcePolicy = policyDocument
};
go
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import s3tables_alpha "github.com/aws-samples/dummy/awscdkawss3tablesalpha"
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var policyDocument PolicyDocument
var tableBucket TableBucket
tableBucketPolicyProps := &TableBucketPolicyProps{
TableBucket: tableBucket,
// the properties below are optional
RemovalPolicy: cdk.RemovalPolicy_DESTROY,
ResourcePolicy: policyDocument,
}
Properties
removalPolicyoptionalRemovalPolicyremoval_policyoptionalRemovalPolicyremovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicy = RemovalPolicy.DESTROY. #Policy to apply when the policy is removed from this stack.
resourcePolicyoptionalPolicyDocumentresource_policyoptionalPolicyDocumentresourcePolicyoptionalPolicyDocumentResourcePolicyoptionalPolicyDocumentResourcePolicyoptionalPolicyDocument #The policy document for the bucket's resource policy.
Default: undefined An empty iam.PolicyDocument will be initialized
tableBucketITableBuckettable_bucketITableBuckettableBucketITableBucketTableBucketITableBucketTableBucketITableBucket required #The associated table bucket.