Class CfnDataLakeSettings
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.lakeformation.CfnDataLakeSettings
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,IDataLakeSettingsRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:08.617Z")
@Stability(Stable)
public class CfnDataLakeSettings
extends CfnResource
implements IInspectable, IDataLakeSettingsRef
The
AWS::LakeFormation::DataLakeSettings resource is an AWS Lake Formation resource type that manages the data lake settings for your account.
Example:
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.glue.alpha.S3Table;
import software.amazon.awscdk.services.glue.alpha.Database;
import software.amazon.awscdk.services.glue.alpha.DataFormat;
import software.amazon.awscdk.services.glue.alpha.Schema;
import software.amazon.awscdk.services.lakeformation.CfnDataLakeSettings;
import software.amazon.awscdk.services.lakeformation.CfnTag;
import software.amazon.awscdk.services.lakeformation.CfnTagAssociation;
Stack stack;
String accountId;
String tagKey = "aws";
String[] tagValues = List.of("dev");
Database database = new Database(this, "Database");
S3Table table = S3Table.Builder.create(this, "Table")
.database(database)
.columns(List.of(Column.builder()
.name("col1")
.type(Schema.STRING)
.build(), Column.builder()
.name("col2")
.type(Schema.STRING)
.build()))
.dataFormat(DataFormat.CSV)
.build();
DefaultStackSynthesizer synthesizer = (DefaultStackSynthesizer)stack.getSynthesizer();
CfnDataLakeSettings.Builder.create(this, "DataLakeSettings")
.admins(List.of(DataLakePrincipalProperty.builder()
.dataLakePrincipalIdentifier(stack.formatArn(ArnComponents.builder()
.service("iam")
.resource("role")
.region("")
.account(accountId)
.resourceName("Admin")
.build()))
.build(), DataLakePrincipalProperty.builder()
// The CDK cloudformation execution role.
.dataLakePrincipalIdentifier(synthesizer.cloudFormationExecutionRoleArn.replace("${AWS::Partition}", "aws"))
.build()))
.build();
CfnTag tag = CfnTag.Builder.create(this, "Tag")
.catalogId(accountId)
.tagKey(tagKey)
.tagValues(tagValues)
.build();
LFTagPairProperty lfTagPairProperty = LFTagPairProperty.builder()
.catalogId(accountId)
.tagKey(tagKey)
.tagValues(tagValues)
.build();
CfnTagAssociation tagAssociation = CfnTagAssociation.Builder.create(this, "TagAssociation")
.lfTags(List.of(lfTagPairProperty))
.resource(ResourceProperty.builder()
.tableWithColumns(TableWithColumnsResourceProperty.builder()
.databaseName(database.getDatabaseName())
.columnNames(List.of("col1", "col2"))
.catalogId(accountId)
.name(table.getTableName())
.build())
.build())
.build();
tagAssociation.node.addDependency(tag);
tagAssociation.node.addDependency(table);
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDataLakeSettings.static interfaceThe Lake Formation principal.static interfacePermissions granted to a principal.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.lakeformation.IDataLakeSettingsRef
IDataLakeSettingsRef.Jsii$Default, IDataLakeSettingsRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDataLakeSettings(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDataLakeSettings(software.amazon.jsii.JsiiObjectRef objRef) CfnDataLakeSettings(software.constructs.Construct scope, String id) CfnDataLakeSettings(software.constructs.Construct scope, String id, CfnDataLakeSettingsProps props) -
Method Summary
Modifier and TypeMethodDescriptionA list of AWS Lake Formation principals.Whether to allow Amazon EMR clusters or other third-party query engines to access data managed by Lake Formation .Specifies whether query engines and applications can get credentials without IAM session tags if the user has full table access.Lake Formation relies on a privileged process secured by Amazon EMR or the third party integrator to tag the user's role while assuming it.Specifies whether access control on a newly created database is managed by Lake Formation permissions or exclusively by IAM permissions.Specifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions.A reference to a DataLakeSettings resource.A list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering.Specifies whether the data lake settings are updated by adding new values to the current settings (APPEND) or by replacing the current settings with new settings (REPLACE).A key-value map that provides an additional configuration on your data lake.An array of UTF-8 strings.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidA list of AWS Lake Formation principals.voidsetAdmins(IResolvable value) A list of AWS Lake Formation principals.voidWhether to allow Amazon EMR clusters or other third-party query engines to access data managed by Lake Formation .voidWhether to allow Amazon EMR clusters or other third-party query engines to access data managed by Lake Formation .voidSpecifies whether query engines and applications can get credentials without IAM session tags if the user has full table access.voidSpecifies whether query engines and applications can get credentials without IAM session tags if the user has full table access.voidLake Formation relies on a privileged process secured by Amazon EMR or the third party integrator to tag the user's role while assuming it.voidSpecifies whether access control on a newly created database is managed by Lake Formation permissions or exclusively by IAM permissions.voidSpecifies whether access control on a newly created database is managed by Lake Formation permissions or exclusively by IAM permissions.voidSpecifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions.voidSpecifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions.voidA list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering.voidA list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering.voidsetMutationType(String value) Specifies whether the data lake settings are updated by adding new values to the current settings (APPEND) or by replacing the current settings with new settings (REPLACE).voidsetParameters(Object value) A key-value map that provides an additional configuration on your data lake.voidsetTrustedResourceOwners(List<String> value) An array of UTF-8 strings.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDataLakeSettings
protected CfnDataLakeSettings(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDataLakeSettings
protected CfnDataLakeSettings(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDataLakeSettings
@Stability(Stable) public CfnDataLakeSettings(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnDataLakeSettingsProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnDataLakeSettings
@Stability(Stable) public CfnDataLakeSettings(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDataLakeSettingsRef
A reference to a DataLakeSettings resource.- Specified by:
getDataLakeSettingsRefin interfaceIDataLakeSettingsRef
-
getAdmins
A list of AWS Lake Formation principals.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataLakeSettings.DataLakePrincipalProperty> -
setAdmins
A list of AWS Lake Formation principals. -
setAdmins
A list of AWS Lake Formation principals. -
getAllowExternalDataFiltering
Whether to allow Amazon EMR clusters or other third-party query engines to access data managed by Lake Formation .Returns union: either
BooleanorIResolvable -
setAllowExternalDataFiltering
Whether to allow Amazon EMR clusters or other third-party query engines to access data managed by Lake Formation . -
setAllowExternalDataFiltering
Whether to allow Amazon EMR clusters or other third-party query engines to access data managed by Lake Formation . -
getAllowFullTableExternalDataAccess
Specifies whether query engines and applications can get credentials without IAM session tags if the user has full table access.Returns union: either
BooleanorIResolvable -
setAllowFullTableExternalDataAccess
Specifies whether query engines and applications can get credentials without IAM session tags if the user has full table access. -
setAllowFullTableExternalDataAccess
Specifies whether query engines and applications can get credentials without IAM session tags if the user has full table access. -
getAuthorizedSessionTagValueList
Lake Formation relies on a privileged process secured by Amazon EMR or the third party integrator to tag the user's role while assuming it. -
setAuthorizedSessionTagValueList
Lake Formation relies on a privileged process secured by Amazon EMR or the third party integrator to tag the user's role while assuming it. -
getCreateDatabaseDefaultPermissions
Specifies whether access control on a newly created database is managed by Lake Formation permissions or exclusively by IAM permissions.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataLakeSettings.PrincipalPermissionsProperty> -
setCreateDatabaseDefaultPermissions
Specifies whether access control on a newly created database is managed by Lake Formation permissions or exclusively by IAM permissions. -
setCreateDatabaseDefaultPermissions
Specifies whether access control on a newly created database is managed by Lake Formation permissions or exclusively by IAM permissions. -
getCreateTableDefaultPermissions
Specifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataLakeSettings.PrincipalPermissionsProperty> -
setCreateTableDefaultPermissions
Specifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions. -
setCreateTableDefaultPermissions
Specifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions. -
getExternalDataFilteringAllowList
A list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataLakeSettings.DataLakePrincipalProperty> -
setExternalDataFilteringAllowList
A list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering. -
setExternalDataFilteringAllowList
A list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering. -
getMutationType
Specifies whether the data lake settings are updated by adding new values to the current settings (APPEND) or by replacing the current settings with new settings (REPLACE). -
setMutationType
Specifies whether the data lake settings are updated by adding new values to the current settings (APPEND) or by replacing the current settings with new settings (REPLACE). -
getParameters
A key-value map that provides an additional configuration on your data lake. -
setParameters
A key-value map that provides an additional configuration on your data lake. -
getTrustedResourceOwners
An array of UTF-8 strings. -
setTrustedResourceOwners
An array of UTF-8 strings.
-