Class TablePolicy
(experimental) A Policy for S3 Tables.
Inherited Members
Namespace: Amazon.CDK.AWS.S3Tables.Alpha
Assembly: Amazon.CDK.AWS.S3Tables.Alpha.dll
Syntax (csharp)
public class TablePolicy : Resource, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class TablePolicy Inherits Resource Implements IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
You will almost never need to use this construct directly. Instead, Table.addToResourcePolicy can be used to add more policies to your table 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;
Table table;
var tablePolicy = new TablePolicy(this, "MyTablePolicy", new TablePolicyProps {
Table = table,
// the properties below are optional
RemovalPolicy = RemovalPolicy.DESTROY,
ResourcePolicy = policyDocument
});
Synopsis
Constructors
| TablePolicy(Construct, string, ITablePolicyProps) | (experimental) A Policy for S3 Tables. |
Properties
| Document | (experimental) The IAM PolicyDocument containing permissions represented by this policy. |
| PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
Constructors
TablePolicy(Construct, string, ITablePolicyProps)
(experimental) A Policy for S3 Tables.
public TablePolicy(Construct scope, string id, ITablePolicyProps props)
Parameters
- scope Construct
- id string
- props ITablePolicyProps
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