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:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:45.381Z")
@Stability(Stable)
public class CfnDataLakeSettings
extends CfnResource
implements IInspectable
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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnDataLakeSettings
.static interface
The Lake Formation principal.static interface
Permissions granted to a principal.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnDataLakeSettings
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDataLakeSettings
(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 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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
A list of AWS Lake Formation principals.void
setAdmins
(IResolvable value) A list of AWS Lake Formation principals.void
Whether to allow Amazon EMR clusters or other third-party query engines to access data managed by Lake Formation .void
Whether to allow Amazon EMR clusters or other third-party query engines to access data managed by Lake Formation .void
Specifies whether query engines and applications can get credentials without IAM session tags if the user has full table access.void
Specifies whether query engines and applications can get credentials without IAM session tags if the user has full table access.void
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.void
Specifies whether access control on a newly created database is managed by Lake Formation permissions or exclusively by IAM permissions.void
Specifies whether access control on a newly created database is managed by Lake Formation permissions or exclusively by IAM permissions.void
Specifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions.void
Specifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions.void
A list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering.void
A list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering.void
setMutationType
(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
).void
setParameters
(Object value) A key-value map that provides an additional configuration on your data lake.void
setTrustedResourceOwners
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getAdmins
A list of AWS Lake Formation principals. -
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 . -
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. -
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. -
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. -
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. -
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.
-