Class CfnPermissionsPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.lakeformation.CfnPermissionsPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T21:55:29.126Z")
@Stability(Stable)
public class CfnPermissionsPropsMixin
extends Mixin
implements software.constructs.IMixin
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 software.amazon.awscdk.cfnpropertymixins.services.lakeformation.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnPermissionsPropsMixin cfnPermissionsPropsMixin = CfnPermissionsPropsMixin.Builder.create(CfnPermissionsMixinProps.builder()
.dataLakePrincipal(DataLakePrincipalProperty.builder()
.dataLakePrincipalIdentifier("dataLakePrincipalIdentifier")
.build())
.permissions(List.of("permissions"))
.permissionsWithGrantOption(List.of("permissionsWithGrantOption"))
.resource(ResourceProperty.builder()
.databaseResource(DatabaseResourceProperty.builder()
.catalogId("catalogId")
.name("name")
.build())
.dataLocationResource(DataLocationResourceProperty.builder()
.catalogId("catalogId")
.s3Resource("s3Resource")
.build())
.tableResource(TableResourceProperty.builder()
.catalogId("catalogId")
.databaseName("databaseName")
.name("name")
.tableWildcard(TableWildcardProperty.builder().build())
.build())
.tableWithColumnsResource(TableWithColumnsResourceProperty.builder()
.catalogId("catalogId")
.columnNames(List.of("columnNames"))
.columnWildcard(ColumnWildcardProperty.builder()
.excludedColumnNames(List.of("excludedColumnNames"))
.build())
.databaseName("databaseName")
.name("name")
.build())
.build())
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPermissionsPropsMixin.static interfaceA wildcard object, consisting of an optional list of excluded column names or indexes.static interfaceA structure for the database object.static interfaceThe Lake Formation principal.static interfaceA structure for a data location object where permissions are granted or revoked.static interfaceA structure for the resource.static interfaceA structure for the table object.static interfaceExample:static interfaceA structure for a table with columns object.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::LakeFormation::Permissions.CfnPermissionsPropsMixin(CfnPermissionsMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::LakeFormation::Permissions.protectedCfnPermissionsPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPermissionsPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnPermissionsMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnPermissionsPropsMixin
protected CfnPermissionsPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPermissionsPropsMixin
protected CfnPermissionsPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPermissionsPropsMixin
@Stability(Stable) public CfnPermissionsPropsMixin(@NotNull CfnPermissionsMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::LakeFormation::Permissions.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnPermissionsPropsMixin
Create a mixin to apply properties toAWS::LakeFormation::Permissions.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-