Class TableBucketPolicy
(experimental) A Bucket Policy for S3 TableBuckets.
Inherited Members
Namespace: Amazon.CDK.AWS.S3Tables.Alpha
Assembly: Amazon.CDK.AWS.S3Tables.Alpha.dll
Syntax (csharp)
public class TableBucketPolicy : Resource, IResource, IConstruct, IDependable
Syntax (vb)
Public Class TableBucketPolicy Inherits Resource Implements IResource, IConstruct, IDependable
Remarks
You will almost never need to use this construct directly. Instead, TableBucket.addToResourcePolicy can be used to add more policies to your bucket directly
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// 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 tableBucketPolicy = new TableBucketPolicy(this, "MyTableBucketPolicy", new TableBucketPolicyProps {
TableBucket = tableBucket,
// the properties below are optional
RemovalPolicy = RemovalPolicy.DESTROY,
ResourcePolicy = policyDocument
});
Synopsis
Constructors
TableBucketPolicy(Construct, string, ITableBucketPolicyProps) | (experimental) A Bucket Policy for S3 TableBuckets. |
Properties
Document | (experimental) The IAM PolicyDocument containing permissions represented by this policy. |
PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
Constructors
TableBucketPolicy(Construct, string, ITableBucketPolicyProps)
(experimental) A Bucket Policy for S3 TableBuckets.
public TableBucketPolicy(Construct scope, string id, ITableBucketPolicyProps props)
Parameters
- scope Construct
- id string
- props ITableBucketPolicyProps
Remarks
Stability: Experimental
Properties
Document
(experimental) The IAM PolicyDocument containing permissions represented by this policy.
public virtual PolicyDocument Document { get; }
Property Value
Remarks
Stability: Experimental
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Implements
Constructs.IConstruct
Constructs.IDependable