Class CfnPrincipalPermissionsPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.lakeformation.CfnPrincipalPermissionsPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-14T18:32:14.218Z")
@Stability(Stable)
public class CfnPrincipalPermissionsPropsMixin
extends Mixin
implements software.constructs.IMixin
The
AWS::LakeFormation::PrincipalPermissions resource represents the permissions that a principal has on a Data Catalog resource (such as AWS Glue databases or AWS Glue tables).
When you create a PrincipalPermissions resource, the permissions are granted via the AWS Lake Formation GrantPermissions API operation. When you delete a PrincipalPermissions resource, the permissions on principal-resource pair are revoked via the AWS Lake Formation RevokePermissions API operation.
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.*;
Object catalog;
IMergeStrategy mergeStrategy;
Object tableWildcard;
CfnPrincipalPermissionsPropsMixin cfnPrincipalPermissionsPropsMixin = CfnPrincipalPermissionsPropsMixin.Builder.create(CfnPrincipalPermissionsMixinProps.builder()
.catalog("catalog")
.permissions(List.of("permissions"))
.permissionsWithGrantOption(List.of("permissionsWithGrantOption"))
.principal(DataLakePrincipalProperty.builder()
.dataLakePrincipalIdentifier("dataLakePrincipalIdentifier")
.build())
.resource(ResourceProperty.builder()
.catalog(catalog)
.database(DatabaseResourceProperty.builder()
.catalogId("catalogId")
.name("name")
.build())
.dataCellsFilter(DataCellsFilterResourceProperty.builder()
.databaseName("databaseName")
.name("name")
.tableCatalogId("tableCatalogId")
.tableName("tableName")
.build())
.dataLocation(DataLocationResourceProperty.builder()
.catalogId("catalogId")
.resourceArn("resourceArn")
.build())
.lfTag(LFTagKeyResourceProperty.builder()
.catalogId("catalogId")
.tagKey("tagKey")
.tagValues(List.of("tagValues"))
.build())
.lfTagPolicy(LFTagPolicyResourceProperty.builder()
.catalogId("catalogId")
.expression(List.of(LFTagProperty.builder()
.tagKey("tagKey")
.tagValues(List.of("tagValues"))
.build()))
.resourceType("resourceType")
.build())
.table(TableResourceProperty.builder()
.catalogId("catalogId")
.databaseName("databaseName")
.name("name")
.tableWildcard(tableWildcard)
.build())
.tableWithColumns(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 forCfnPrincipalPermissionsPropsMixin.static interfaceA wildcard object, consisting of an optional list of excluded column names or indexes.static interfaceA structure for the database object.static interfaceA structure that describes certain columns on certain rows.static interfaceThe AWS Lake Formation principal.static interfaceA structure for a data location object where permissions are granted or revoked.static interfaceA structure containing an LF-tag key and values for a resource.static interfaceA list of LF-tag conditions that define a resource's LF-tag policy.static interfaceThe LF-tag key and values attached to a resource.static interfaceA structure for the resource.static interfaceA structure for the table object.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::PrincipalPermissions.CfnPrincipalPermissionsPropsMixin(CfnPrincipalPermissionsMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::LakeFormation::PrincipalPermissions.protectedCfnPrincipalPermissionsPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPrincipalPermissionsPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnPrincipalPermissionsMixinPropsgetProps()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
-
CfnPrincipalPermissionsPropsMixin
protected CfnPrincipalPermissionsPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPrincipalPermissionsPropsMixin
protected CfnPrincipalPermissionsPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPrincipalPermissionsPropsMixin
@Stability(Stable) public CfnPrincipalPermissionsPropsMixin(@NotNull CfnPrincipalPermissionsMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::LakeFormation::PrincipalPermissions.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnPrincipalPermissionsPropsMixin
@Stability(Stable) public CfnPrincipalPermissionsPropsMixin(@NotNull CfnPrincipalPermissionsMixinProps props) Create a mixin to apply properties toAWS::LakeFormation::PrincipalPermissions.- 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
-