> **Experimental**
>
> `@aws-cdk/aws-s3tables-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# ITable

Represents an S3 Table.

Extends: [IResource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResource.html)
Implemented by: [Table](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-s3tables-alpha.Table.html)
Obtainable from: [Table.fromTableAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-s3tables-alpha.Table.html#fromtableattributes)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/table.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-s3tables-alpha/lib/table.ts#L26)

## Properties

- `account`: string — The accountId containing this table.

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — The environment this resource belongs to.

  For resources that are created and managed in a Stack (those created by
  creating new class instances like `new Role()`, `new Bucket()`, etc.), this
  is always the same as the environment of the stack they belong to.

  For referenced resources (those obtained from referencing methods like
  `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
  different than the stack they were imported into.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `region`: string — The region containing this table.

- `stack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this resource is defined.

- `tableArn`: string — The ARN of this table.

- `tableName`: string — The name of this table.

## Methods

- `addToResourcePolicy(statement: PolicyStatement): AddToResourcePolicyResult` — Adds a statement to the resource policy for a principal (i.e. account/role/service) to perform actions on this table.

  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.

  **Parameters**

  - `statement` — the policy statement to be added to the table's policy.

  **Returns:** metadata about the execution of this method. If the policy was not added, the value of `statementAdded` will be `false`. You should always check this value to make sure that the operation was actually carried out. Otherwise, synthesis and deploy will terminate silently, which may be confusing.

- `applyRemovalPolicy(policy: RemovalPolicy): void` — Apply the given removal policy to this resource.

  The Removal Policy controls what happens to this resource when it stops
  being managed by CloudFormation, either because you've removed it from the
  CDK application or because you've made a change that requires the resource
  to be replaced.

  The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
  account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).

- `grantRead(identity: IGrantable): Grant` — Grant read permissions for this table to an IAM principal (Role/Group/User).

  If the parent TableBucket of this table has encryption,
  you should grant kms:Decrypt permission to use this key to the same principal.

  **Parameters**

  - `identity` — The principal to allow read permissions to.

- `grantReadWrite(identity: IGrantable): Grant` — Grant read and write permissions for this table to an IAM principal (Role/Group/User).

  If the parent TableBucket of this table has encryption,
  you should grant kms:GenerateDataKey and kms:Decrypt permission
  to use this key to the same principal.

  **Parameters**

  - `identity` — The principal to allow read and write permissions to.

- `grantWrite(identity: IGrantable): Grant` — Grant write permissions for this table to an IAM principal (Role/Group/User).

  If the parent TableBucket of this table has encryption,
  you should grant kms:GenerateDataKey and kms:Decrypt permission
  to use this key to the same principal.

  **Parameters**

  - `identity` — The principal to allow write permissions to.

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
