Skip to content
v2.273.0

CfnPrincipalPermissionsProps Struct ​

Properties for defining a CfnPrincipalPermissions.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lakeformation as lakeformation } from 'aws-cdk-lib';

declare const catalog: any;
declare const tableWildcard: any;
const cfnPrincipalPermissionsProps: lakeformation.CfnPrincipalPermissionsProps = {
  permissions: ['permissions'],
  permissionsWithGrantOption: ['permissionsWithGrantOption'],
  principal: {
    dataLakePrincipalIdentifier: 'dataLakePrincipalIdentifier',
  },
  resource: {
    catalog: catalog,
    database: {
      catalogId: 'catalogId',
      name: 'name',
    },
    dataCellsFilter: {
      databaseName: 'databaseName',
      name: 'name',
      tableCatalogId: 'tableCatalogId',
      tableName: 'tableName',
    },
    dataLocation: {
      catalogId: 'catalogId',
      resourceArn: 'resourceArn',
    },
    lfTag: {
      catalogId: 'catalogId',
      tagKey: 'tagKey',
      tagValues: ['tagValues'],
    },
    lfTagPolicy: {
      catalogId: 'catalogId',
      expression: [{
        tagKey: 'tagKey',
        tagValues: ['tagValues'],
      }],
      resourceType: 'resourceType',
    },
    table: {
      catalogId: 'catalogId',
      databaseName: 'databaseName',

      // the properties below are optional
      name: 'name',
      tableWildcard: tableWildcard,
    },
    tableWithColumns: {
      catalogId: 'catalogId',
      databaseName: 'databaseName',
      name: 'name',

      // the properties below are optional
      columnNames: ['columnNames'],
      columnWildcard: {
        excludedColumnNames: ['excludedColumnNames'],
      },
    },
  },

  // the properties below are optional
  catalog: 'catalog',
};

Properties ​

catalogstringcatalogstrcatalogStringCatalogstringCatalog*string#
The identifier for the Data Catalog .

By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

permissionsstring[]permissionstyping.List[str]permissionsList<String>Permissionsstring[]Permissions*[]*stringrequired#
The permissions granted or revoked.
permissionsWithGrantOptionstring[]permissions_with_grant_optiontyping.List[str]permissionsWithGrantOptionList<String>PermissionsWithGrantOptionstring[]PermissionsWithGrantOption*[]*stringrequired#
Indicates the ability to grant permissions (as a subset of permissions granted).
principalIResolvable | CfnPrincipalPermissions.DataLakePrincipalPropertyprincipaltyping.Union[IResolvable, DataLakePrincipalProperty]principalIResolvablePrincipalIResolvablePrincipalinterface{}required#
The principal to be granted a permission.
resourceIResolvable | CfnPrincipalPermissions.ResourcePropertyresourcetyping.Union[IResolvable, ResourceProperty]resourceIResolvableResourceIResolvableResourceinterface{}required#
The resource to be granted or revoked permissions.

Used as props by ​