Show / Hide Table of Contents

Class Table

(experimental) An S3 Table with helpers.

Inheritance
object
Resource
Table
Implements
ITaggableV2
ITable
IResource
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyCrossStackReferenceStrength(ReferenceStrength)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.With(params IMixin[])
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.S3Tables.Alpha
Assembly: Amazon.CDK.AWS.S3Tables.Alpha.dll
Syntax (csharp)
public class Table : Resource, ITaggableV2, ITable, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class Table Inherits Resource Implements ITaggableV2, ITable, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks

Stability: Experimental

ExampleMetadata: infused

Examples
// Build a table with partition spec (minimal configuration)
             var partitionedTable = new Table(scope, "PartitionedTable", new TableProps {
                 TableName = "partitioned_table",
                 Namespace = namespace,
                 OpenTableFormat = OpenTableFormat.ICEBERG,
                 IcebergMetadata = new IcebergMetadataProperty {
                     IcebergSchema = new IcebergSchemaProperty {
                         SchemaFieldList = new [] { new SchemaFieldProperty { Name = "event_date", Type = "date", Required = true }, new SchemaFieldProperty { Name = "event_name", Type = "string" } }
                     },
                     IcebergPartitionSpec = new IcebergPartitionSpec {
                         Fields = new [] { new IcebergPartitionField {
                             SourceId = 1,
                             Transform = IcebergTransform.IDENTITY,
                             Name = "date_partition"
                         } }
                     }
                 }
             });

Synopsis

Constructors

Table(Construct, string, ITableProps)

(experimental) An S3 Table with helpers.

Properties

AutoCreatePolicy

(experimental) Indicates if a table resource policy should automatically created upon the first call to addToResourcePolicy.

CdkTagManager

(experimental) The tag manager for this resource.

Namespace

(experimental) The namespace containing this table.

PROPERTY_INJECTION_ID

(experimental) Uniquely identifies this class.

TableArn

(experimental) The unique Amazon Resource Name (arn) of this table.

TableName

(experimental) The name of this table.

TablePolicy

(experimental) The resource policy for this table.

Methods

AddToResourcePolicy(PolicyStatement)

(experimental) Adds a statement to the resource policy for a principal (i.e. account/role/service) to perform actions on this table.

FromTableAttributes(Construct, string, ITableAttributes)

(experimental) Defines a Table construct that represents an external table.

GrantRead(IGrantable)

(experimental) [disable-awslint:no-grants].

GrantReadWrite(IGrantable)

(experimental) [disable-awslint:no-grants].

GrantWrite(IGrantable)

(experimental) [disable-awslint:no-grants].

ValidateTableName(string)

(experimental) See https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html.

Constructors

Table(Construct, string, ITableProps)

(experimental) An S3 Table with helpers.

public Table(Construct scope, string id, ITableProps props)
Parameters
scope Construct
id string
props ITableProps
Remarks

Stability: Experimental

Properties

AutoCreatePolicy

(experimental) Indicates if a table resource policy should automatically created upon the first call to addToResourcePolicy.

protected virtual bool AutoCreatePolicy { get; set; }
Property Value

bool

Remarks

Stability: Experimental

CdkTagManager

(experimental) The tag manager for this resource.

public virtual TagManager CdkTagManager { get; }
Property Value

TagManager

Remarks

Stability: Experimental

Namespace

(experimental) The namespace containing this table.

public virtual INamespace Namespace { get; }
Property Value

INamespace

Remarks

Stability: Experimental

PROPERTY_INJECTION_ID

(experimental) Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

Stability: Experimental

TableArn

(experimental) The unique Amazon Resource Name (arn) of this table.

public virtual string TableArn { get; }
Property Value

string

Remarks

Stability: Experimental

TableName

(experimental) The name of this table.

public virtual string TableName { get; }
Property Value

string

Remarks

Stability: Experimental

TablePolicy

(experimental) The resource policy for this table.

public virtual CfnTablePolicy? TablePolicy { get; }
Property Value

CfnTablePolicy

Remarks

Stability: Experimental

Methods

AddToResourcePolicy(PolicyStatement)

(experimental) Adds a statement to the resource policy for a principal (i.e. account/role/service) to perform actions on this table.

public virtual IAddToResourcePolicyResult AddToResourcePolicy(PolicyStatement statement)
Parameters
statement PolicyStatement
Returns

IAddToResourcePolicyResult

Remarks

Note that the policy statement may or may not be added to the policy. For example, when an ITable is created from an existing table, it's not possible to tell whether the table already has a policy attached, let alone to re-use that policy to add more statements to it. So it's safest to do nothing in these cases.

Stability: Experimental

FromTableAttributes(Construct, string, ITableAttributes)

(experimental) Defines a Table construct that represents an external table.

public static ITable FromTableAttributes(Construct scope, string id, ITableAttributes attrs)
Parameters
scope Construct

The parent creating construct (usually this).

id string

The construct's name.

attrs ITableAttributes

A TableAttributes object containing the table name and ARN.

Returns

ITable

Remarks

Stability: Experimental

GrantRead(IGrantable)

(experimental) [disable-awslint:no-grants].

public virtual Grant GrantRead(IGrantable identity)
Parameters
identity IGrantable
Returns

Grant

Remarks

Stability: Experimental

GrantReadWrite(IGrantable)

(experimental) [disable-awslint:no-grants].

public virtual Grant GrantReadWrite(IGrantable identity)
Parameters
identity IGrantable
Returns

Grant

Remarks

Stability: Experimental

GrantWrite(IGrantable)

(experimental) [disable-awslint:no-grants].

public virtual Grant GrantWrite(IGrantable identity)
Parameters
identity IGrantable
Returns

Grant

Remarks

Stability: Experimental

ValidateTableName(string)

(experimental) See https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html.

public static void ValidateTableName(string tableName)
Parameters
tableName string

Name of the table.

Remarks

Stability: Experimental

Throws: UnscopedValidationError if any naming errors are detected

Implements

ITaggableV2
ITable
IResource
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX