AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getDataLakeSettings

Get Lake Formation principals designated as data lake administrators and lists of principal permission entries for default create database and default create table permissions.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.LakeFormation.GetDataLakeSettings.InvokeAsync(new Aws.LakeFormation.GetDataLakeSettingsArgs
        {
            CatalogId = "14916253649",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lakeformation"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lakeformation.LookupDataLakeSettings(ctx, &lakeformation.LookupDataLakeSettingsArgs{
			CatalogId: pulumi.StringRef("14916253649"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(LakeformationFunctions.getDataLakeSettings(GetDataLakeSettingsArgs.builder()
            .catalogId("14916253649")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.lakeformation.get_data_lake_settings(catalog_id="14916253649")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.lakeformation.getDataLakeSettings({
    catalogId: "14916253649",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:lakeformation:getDataLakeSettings
      Arguments:
        catalogId: 14916253649

Using getDataLakeSettings

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDataLakeSettings(args: GetDataLakeSettingsArgs, opts?: InvokeOptions): Promise<GetDataLakeSettingsResult>
function getDataLakeSettingsOutput(args: GetDataLakeSettingsOutputArgs, opts?: InvokeOptions): Output<GetDataLakeSettingsResult>
def get_data_lake_settings(catalog_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDataLakeSettingsResult
def get_data_lake_settings_output(catalog_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDataLakeSettingsResult]
func LookupDataLakeSettings(ctx *Context, args *LookupDataLakeSettingsArgs, opts ...InvokeOption) (*LookupDataLakeSettingsResult, error)
func LookupDataLakeSettingsOutput(ctx *Context, args *LookupDataLakeSettingsOutputArgs, opts ...InvokeOption) LookupDataLakeSettingsResultOutput

> Note: This function is named LookupDataLakeSettings in the Go SDK.

public static class GetDataLakeSettings 
{
    public static Task<GetDataLakeSettingsResult> InvokeAsync(GetDataLakeSettingsArgs args, InvokeOptions? opts = null)
    public static Output<GetDataLakeSettingsResult> Invoke(GetDataLakeSettingsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataLakeSettingsResult> getDataLakeSettings(GetDataLakeSettingsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:lakeformation/getDataLakeSettings:getDataLakeSettings
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CatalogId string

Identifier for the Data Catalog. By default, the account ID.

CatalogId string

Identifier for the Data Catalog. By default, the account ID.

catalogId String

Identifier for the Data Catalog. By default, the account ID.

catalogId string

Identifier for the Data Catalog. By default, the account ID.

catalog_id str

Identifier for the Data Catalog. By default, the account ID.

catalogId String

Identifier for the Data Catalog. By default, the account ID.

getDataLakeSettings Result

The following output properties are available:

Admins List<string>

List of ARNs of AWS Lake Formation principals (IAM users or roles).

CreateDatabaseDefaultPermissions List<GetDataLakeSettingsCreateDatabaseDefaultPermission>

Up to three configuration blocks of principal permissions for default create database permissions. Detailed below.

CreateTableDefaultPermissions List<GetDataLakeSettingsCreateTableDefaultPermission>

Up to three configuration blocks of principal permissions for default create table permissions. Detailed below.

Id string

The provider-assigned unique ID for this managed resource.

TrustedResourceOwners List<string>

List of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs).

CatalogId string
Admins []string

List of ARNs of AWS Lake Formation principals (IAM users or roles).

CreateDatabaseDefaultPermissions []GetDataLakeSettingsCreateDatabaseDefaultPermission

Up to three configuration blocks of principal permissions for default create database permissions. Detailed below.

CreateTableDefaultPermissions []GetDataLakeSettingsCreateTableDefaultPermission

Up to three configuration blocks of principal permissions for default create table permissions. Detailed below.

Id string

The provider-assigned unique ID for this managed resource.

TrustedResourceOwners []string

List of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs).

CatalogId string
admins List<String>

List of ARNs of AWS Lake Formation principals (IAM users or roles).

createDatabaseDefaultPermissions List<GetDataLakeSettingsCreateDatabaseDefaultPermission>

Up to three configuration blocks of principal permissions for default create database permissions. Detailed below.

createTableDefaultPermissions List<GetDataLakeSettingsCreateTableDefaultPermission>

Up to three configuration blocks of principal permissions for default create table permissions. Detailed below.

id String

The provider-assigned unique ID for this managed resource.

trustedResourceOwners List<String>

List of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs).

catalogId String
admins string[]

List of ARNs of AWS Lake Formation principals (IAM users or roles).

createDatabaseDefaultPermissions GetDataLakeSettingsCreateDatabaseDefaultPermission[]

Up to three configuration blocks of principal permissions for default create database permissions. Detailed below.

createTableDefaultPermissions GetDataLakeSettingsCreateTableDefaultPermission[]

Up to three configuration blocks of principal permissions for default create table permissions. Detailed below.

id string

The provider-assigned unique ID for this managed resource.

trustedResourceOwners string[]

List of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs).

catalogId string
admins Sequence[str]

List of ARNs of AWS Lake Formation principals (IAM users or roles).

create_database_default_permissions Sequence[GetDataLakeSettingsCreateDatabaseDefaultPermission]

Up to three configuration blocks of principal permissions for default create database permissions. Detailed below.

create_table_default_permissions Sequence[GetDataLakeSettingsCreateTableDefaultPermission]

Up to three configuration blocks of principal permissions for default create table permissions. Detailed below.

id str

The provider-assigned unique ID for this managed resource.

trusted_resource_owners Sequence[str]

List of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs).

catalog_id str
admins List<String>

List of ARNs of AWS Lake Formation principals (IAM users or roles).

createDatabaseDefaultPermissions List<Property Map>

Up to three configuration blocks of principal permissions for default create database permissions. Detailed below.

createTableDefaultPermissions List<Property Map>

Up to three configuration blocks of principal permissions for default create table permissions. Detailed below.

id String

The provider-assigned unique ID for this managed resource.

trustedResourceOwners List<String>

List of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs).

catalogId String

Supporting Types

GetDataLakeSettingsCreateDatabaseDefaultPermission

Permissions List<string>

List of permissions granted to the principal.

Principal string

Principal who is granted permissions.

Permissions []string

List of permissions granted to the principal.

Principal string

Principal who is granted permissions.

permissions List<String>

List of permissions granted to the principal.

principal String

Principal who is granted permissions.

permissions string[]

List of permissions granted to the principal.

principal string

Principal who is granted permissions.

permissions Sequence[str]

List of permissions granted to the principal.

principal str

Principal who is granted permissions.

permissions List<String>

List of permissions granted to the principal.

principal String

Principal who is granted permissions.

GetDataLakeSettingsCreateTableDefaultPermission

Permissions List<string>

List of permissions granted to the principal.

Principal string

Principal who is granted permissions.

Permissions []string

List of permissions granted to the principal.

Principal string

Principal who is granted permissions.

permissions List<String>

List of permissions granted to the principal.

principal String

Principal who is granted permissions.

permissions string[]

List of permissions granted to the principal.

principal string

Principal who is granted permissions.

permissions Sequence[str]

List of permissions granted to the principal.

principal str

Principal who is granted permissions.

permissions List<String>

List of permissions granted to the principal.

principal String

Principal who is granted permissions.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.