class CfnPermissionsPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.LakeFormation.Mixins.CfnPermissionsPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslakeformation/mixins#CfnPermissionsPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.lakeformation.mixins.CfnPermissionsPropsMixin |
Python | aws_cdk.mixins_preview.aws_lakeformation.mixins.CfnPermissionsPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_lakeformation » mixins » CfnPermissionsPropsMixin |
Implements
IMixin
Extends
Mixin
The AWS::LakeFormation::Permissions resource represents the permissions that a principal has on an AWS Glue Data Catalog resource (such as AWS Glue database or AWS Glue tables).
When you upload a permissions stack, the permissions are granted to the principal and when you remove the stack, the permissions are revoked from the principal. If you remove a stack, and the principal does not have the permissions referenced in the stack then AWS Lake Formation will throw an error because you can’t call revoke on non-existing permissions. To successfully remove the stack, you’ll need to regrant those permissions and then remove the stack.
New versions of AWS Lake Formation permission resources are now available. For more information, see: AWS:LakeFormation::PrincipalPermissions
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as lakeformation_mixins } from '@aws-cdk/mixins-preview/aws-lakeformation';
const cfnPermissionsPropsMixin = new lakeformation_mixins.CfnPermissionsPropsMixin({
dataLakePrincipal: {
dataLakePrincipalIdentifier: 'dataLakePrincipalIdentifier',
},
permissions: ['permissions'],
permissionsWithGrantOption: ['permissionsWithGrantOption'],
resource: {
databaseResource: {
catalogId: 'catalogId',
name: 'name',
},
dataLocationResource: {
catalogId: 'catalogId',
s3Resource: 's3Resource',
},
tableResource: {
catalogId: 'catalogId',
databaseName: 'databaseName',
name: 'name',
tableWildcard: { },
},
tableWithColumnsResource: {
catalogId: 'catalogId',
columnNames: ['columnNames'],
columnWildcard: {
excludedColumnNames: ['excludedColumnNames'],
},
databaseName: 'databaseName',
name: 'name',
},
},
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnPermissionsPropsMixin(props: CfnPermissionsMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Permissions Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::LakeFormation::Permissions.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript