Class CfnDataLakeSettings
The AWS::LakeFormation::DataLakeSettings
resource is an AWS Lake Formation resource type that manages the data lake settings for your account.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.LakeFormation
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDataLakeSettings : CfnResource, IInspectable
Syntax (vb)
Public Class CfnDataLakeSettings
Inherits CfnResource
Implements IInspectable
Remarks
CloudformationResource: AWS::LakeFormation::DataLakeSettings
ExampleMetadata: infused
Examples
using Amazon.CDK;
using Amazon.CDK.AWS.Glue.Alpha;
using Amazon.CDK.AWS.LakeFormation;
Stack stack;
string accountId;
var tagKey = "aws";
var tagValues = new [] { "dev" };
var database = new Database(this, "Database");
var table = new S3Table(this, "Table", new S3TableProps {
Database = database,
Columns = new [] { new Column {
Name = "col1",
Type = Schema.STRING
}, new Column {
Name = "col2",
Type = Schema.STRING
} },
DataFormat = DataFormat.CSV
});
var synthesizer = (DefaultStackSynthesizer)stack.Synthesizer;
new CfnDataLakeSettings(this, "DataLakeSettings", new CfnDataLakeSettingsProps {
Admins = new [] { new DataLakePrincipalProperty {
DataLakePrincipalIdentifier = stack.FormatArn(new ArnComponents {
Service = "iam",
Resource = "role",
Region = "",
Account = accountId,
ResourceName = "Admin"
})
}, new DataLakePrincipalProperty {
// The CDK cloudformation execution role.
DataLakePrincipalIdentifier = synthesizer.CloudFormationExecutionRoleArn.Replace("${AWS::Partition}", "aws")
} }
});
var tag = new CfnTag(this, "Tag", new CfnTagProps {
CatalogId = accountId,
TagKey = tagKey,
TagValues = tagValues
});
var lfTagPairProperty = new LFTagPairProperty {
CatalogId = accountId,
TagKey = tagKey,
TagValues = tagValues
};
var tagAssociation = new CfnTagAssociation(this, "TagAssociation", new CfnTagAssociationProps {
LfTags = new [] { lfTagPairProperty },
Resource = new ResourceProperty {
TableWithColumns = new TableWithColumnsResourceProperty {
DatabaseName = database.DatabaseName,
ColumnNames = new [] { "col1", "col2" },
CatalogId = accountId,
Name = table.TableName
}
}
});
tagAssociation.Node.AddDependency(tag);
tagAssociation.Node.AddDependency(table);
Synopsis
Constructors
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Admins | A list of AWS Lake Formation principals. |
Allow |
Whether to allow Amazon EMR clusters or other third-party query engines to access data managed by Lake Formation . |
Allow |
Specifies whether query engines and applications can get credentials without IAM session tags if the user has full table access. |
Attr |
|
Authorized |
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. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Create |
Specifies whether access control on a newly created database is managed by Lake Formation permissions or exclusively by IAM permissions. |
Create |
Specifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions. |
External |
A list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering. |
Mutation |
Specifies whether the data lake settings are updated by adding new values to the current settings ( |
Parameters | A key-value map that provides an additional configuration on your data lake. |
Trusted |
An array of UTF-8 strings. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnDataLakeSettings(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnDataLakeSettings(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnDataLakeSettings(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnDataLakeSettings(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnDataLakeSettings(Construct, String, ICfnDataLakeSettingsProps)
public CfnDataLakeSettings(Construct scope, string id, ICfnDataLakeSettingsProps props = null)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Data Lake Settings Props Resource properties.
Properties
Admins
A list of AWS Lake Formation principals.
public virtual object Admins { get; set; }
Property Value
System.
AllowExternalDataFiltering
Whether to allow Amazon EMR clusters or other third-party query engines to access data managed by Lake Formation .
public virtual object AllowExternalDataFiltering { get; set; }
Property Value
System.
AllowFullTableExternalDataAccess
Specifies whether query engines and applications can get credentials without IAM session tags if the user has full table access.
public virtual object AllowFullTableExternalDataAccess { get; set; }
Property Value
System.
AttrId
public virtual string AttrId { get; }
Property Value
System.
Remarks
CloudformationAttribute: Id
AuthorizedSessionTagValueList
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.
public virtual string[] AuthorizedSessionTagValueList { get; set; }
Property Value
System.
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
CreateDatabaseDefaultPermissions
Specifies whether access control on a newly created database is managed by Lake Formation permissions or exclusively by IAM permissions.
public virtual object CreateDatabaseDefaultPermissions { get; set; }
Property Value
System.
CreateTableDefaultPermissions
Specifies whether access control on a newly created table is managed by Lake Formation permissions or exclusively by IAM permissions.
public virtual object CreateTableDefaultPermissions { get; set; }
Property Value
System.
ExternalDataFilteringAllowList
A list of the account IDs of AWS accounts with Amazon EMR clusters or third-party engines that are allwed to perform data filtering.
public virtual object ExternalDataFilteringAllowList { get; set; }
Property Value
System.
MutationType
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
).
public virtual string MutationType { get; set; }
Property Value
System.
Parameters
A key-value map that provides an additional configuration on your data lake.
public virtual object Parameters { get; set; }
Property Value
System.
TrustedResourceOwners
An array of UTF-8 strings.
public virtual string[] TrustedResourceOwners { get; set; }
Property Value
System.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.