

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::LakeFormation::PrincipalPermissions TableResource
<a name="aws-properties-lakeformation-principalpermissions-tableresource"></a>

A structure for the table object. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal. 

## Syntax
<a name="aws-properties-lakeformation-principalpermissions-tableresource-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-lakeformation-principalpermissions-tableresource-syntax.json"></a>

```
{
  "[CatalogId](#cfn-lakeformation-principalpermissions-tableresource-catalogid)" : String,
  "[DatabaseName](#cfn-lakeformation-principalpermissions-tableresource-databasename)" : String,
  "[Name](#cfn-lakeformation-principalpermissions-tableresource-name)" : String,
  "[TableWildcard](#cfn-lakeformation-principalpermissions-tableresource-tablewildcard)" : Json
}
```

### YAML
<a name="aws-properties-lakeformation-principalpermissions-tableresource-syntax.yaml"></a>

```
  [CatalogId](#cfn-lakeformation-principalpermissions-tableresource-catalogid): String
  [DatabaseName](#cfn-lakeformation-principalpermissions-tableresource-databasename): String
  [Name](#cfn-lakeformation-principalpermissions-tableresource-name): String
  [TableWildcard](#cfn-lakeformation-principalpermissions-tableresource-tablewildcard): Json
```

## Properties
<a name="aws-properties-lakeformation-principalpermissions-tableresource-properties"></a>

`CatalogId`  <a name="cfn-lakeformation-principalpermissions-tableresource-catalogid"></a>
The identifier for the Data Catalog. By default, it is the account ID of the caller.  
*Required*: Yes  
*Type*: String  
*Minimum*: `12`  
*Maximum*: `12`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`DatabaseName`  <a name="cfn-lakeformation-principalpermissions-tableresource-databasename"></a>
The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.   
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Name`  <a name="cfn-lakeformation-principalpermissions-tableresource-name"></a>
The name of the table.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`TableWildcard`  <a name="cfn-lakeformation-principalpermissions-tableresource-tablewildcard"></a>
A wildcard object representing every table under a database.  
At least one of `TableResource$Name` or `TableResource$TableWildcard` is required.  
*Required*: No  
*Type*: Json  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)