We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.LakeFormation

Inherits:
AWS.Service show all
Identifier:
lakeformation
API Version:
2017-03-31
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Defines the public endpoint for the Lake Formation service.

Sending a Request Using LakeFormation

var lakeformation = new AWS.LakeFormation();
lakeformation.addLFTagsToResource(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the LakeFormation object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var lakeformation = new AWS.LakeFormation({apiVersion: '2017-03-31'});

You can also set the API version globally in AWS.config.apiVersions using the lakeformation service identifier:

AWS.config.apiVersions = {
  lakeformation: '2017-03-31',
  // other service API versions
};

var lakeformation = new AWS.LakeFormation();

Version:

  • 2017-03-31

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.LakeFormation(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a LakeFormation object

var lakeformation = new AWS.LakeFormation({apiVersion: '2017-03-31'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.LakeFormation.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.LakeFormation.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.LakeFormation.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

addLFTagsToResource(params = {}, callback) ⇒ AWS.Request

Attaches one or more LF-tags to an existing resource.

Service Reference:

Examples:

Calling the addLFTagsToResource operation

var params = {
  LFTags: [ /* required */
    {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    /* more items */
  ],
  Resource: { /* required */
    Catalog: {
    },
    DataCellsFilter: {
      DatabaseName: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableCatalogId: 'STRING_VALUE',
      TableName: 'STRING_VALUE'
    },
    DataLocation: {
      ResourceArn: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    Database: {
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    LFTag: {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    LFTagPolicy: {
      Expression: [ /* required */
        {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        },
        /* more items */
      ],
      ResourceType: DATABASE | TABLE, /* required */
      CatalogId: 'STRING_VALUE'
    },
    Table: {
      DatabaseName: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableWildcard: {
      }
    },
    TableWithColumns: {
      DatabaseName: 'STRING_VALUE', /* required */
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      ColumnNames: [
        'STRING_VALUE',
        /* more items */
      ],
      ColumnWildcard: {
        ExcludedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    }
  },
  CatalogId: 'STRING_VALUE'
};
lakeformation.addLFTagsToResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • Resource — (map)

      The database, table, or column resource to which to attach an LF-tag.

      • Catalog — (map)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • Database — (map)

        The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • Namerequired — (String)

          The name of the database resource. Unique to the Data Catalog.

      • Table — (map)

        The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Name — (String)

          The name of the table.

        • TableWildcard — (map)

          A wildcard object representing every table under a database.

          At least one of TableResource$Name or TableResource$TableWildcard is required.

      • TableWithColumns — (map)

        The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Namerequired — (String)

          The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • ColumnNames — (Array<String>)

          The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

        • ColumnWildcard — (map)

          A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

      • DataLocation — (map)

        The location of an Amazon S3 path where permissions are granted or revoked.

        • CatalogId — (String)

          The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

      • DataCellsFilter — (map)

        A data cell filter.

        • TableCatalogId — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseName — (String)

          A database in the Glue Data Catalog.

        • TableName — (String)

          The name of the table.

        • Name — (String)

          The name of the data cells filter.

      • LFTag — (map)

        The LF-tag key and values attached to a resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagPolicy — (map)

        A list of LF-tag conditions that define a resource's LF-tag policy.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • ResourceTyperequired — (String)

          The resource type for which the LF-tag policy applies.

          Possible values include:
          • "DATABASE"
          • "TABLE"
        • Expressionrequired — (Array<map>)

          A list of LF-tag conditions that apply to the resource's LF-tag policy.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

            The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

    • LFTags — (Array<map>)

      The LF-tags to attach to the resource.

      • CatalogId — (String)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • TagKeyrequired — (String)

        The key-name for the LF-tag.

      • TagValuesrequired — (Array<String>)

        A list of possible values an attribute can take.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Failures — (Array<map>)

        A list of failures to tag the resource.

        • LFTag — (map)

          The key-name of the LF-tag.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

        • Error — (map)

          An error that occurred with the attachment or detachment of the LF-tag.

          • ErrorCode — (String)

            The code associated with this error.

          • ErrorMessage — (String)

            A message describing the error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

assumeDecoratedRoleWithSAML(params = {}, callback) ⇒ AWS.Request

Allows a caller to assume an IAM role decorated as the SAML user specified in the SAML assertion included in the request. This decoration allows Lake Formation to enforce access policies against the SAML users and groups. This API operation requires SAML federation setup in the caller’s account as it can only be called with valid SAML assertions. Lake Formation does not scope down the permission of the assumed role. All permissions attached to the role via the SAML federation setup will be included in the role session.

This decorated role is expected to access data in Amazon S3 by getting temporary access from Lake Formation which is authorized via the virtual API GetDataAccess. Therefore, all SAML roles that can be assumed via AssumeDecoratedRoleWithSAML must at a minimum include lakeformation:GetDataAccess in their role policies. A typical IAM policy attached to such a role would look as follows:

Service Reference:

Examples:

Calling the assumeDecoratedRoleWithSAML operation

var params = {
  PrincipalArn: 'STRING_VALUE', /* required */
  RoleArn: 'STRING_VALUE', /* required */
  SAMLAssertion: 'STRING_VALUE', /* required */
  DurationSeconds: 'NUMBER_VALUE'
};
lakeformation.assumeDecoratedRoleWithSAML(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SAMLAssertion — (String)

      A SAML assertion consisting of an assertion statement for the user who needs temporary credentials. This must match the SAML assertion that was issued to IAM. This must be Base64 encoded.

    • RoleArn — (String)

      The role that represents an IAM principal whose scope down policy allows it to call credential vending APIs such as GetTemporaryTableCredentials. The caller must also have iam:PassRole permission on this role.

    • PrincipalArn — (String)

      The Amazon Resource Name (ARN) of the SAML provider in IAM that describes the IdP.

    • DurationSeconds — (Integer)

      The time period, between 900 and 43,200 seconds, for the timeout of the temporary credentials.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AccessKeyId — (String)

        The access key ID for the temporary credentials. (The access key consists of an access key ID and a secret key).

      • SecretAccessKey — (String)

        The secret key for the temporary credentials. (The access key consists of an access key ID and a secret key).

      • SessionToken — (String)

        The session token for the temporary credentials.

      • Expiration — (Date)

        The date and time when the temporary credentials expire.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchGrantPermissions(params = {}, callback) ⇒ AWS.Request

Batch operation to grant permissions to the principal.

Service Reference:

Examples:

Calling the batchGrantPermissions operation

var params = {
  Entries: [ /* required */
    {
      Id: 'STRING_VALUE', /* required */
      Permissions: [
        ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
        /* more items */
      ],
      PermissionsWithGrantOption: [
        ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
        /* more items */
      ],
      Principal: {
        DataLakePrincipalIdentifier: 'STRING_VALUE'
      },
      Resource: {
        Catalog: {
        },
        DataCellsFilter: {
          DatabaseName: 'STRING_VALUE',
          Name: 'STRING_VALUE',
          TableCatalogId: 'STRING_VALUE',
          TableName: 'STRING_VALUE'
        },
        DataLocation: {
          ResourceArn: 'STRING_VALUE', /* required */
          CatalogId: 'STRING_VALUE'
        },
        Database: {
          Name: 'STRING_VALUE', /* required */
          CatalogId: 'STRING_VALUE'
        },
        LFTag: {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ],
          CatalogId: 'STRING_VALUE'
        },
        LFTagPolicy: {
          Expression: [ /* required */
            {
              TagKey: 'STRING_VALUE', /* required */
              TagValues: [ /* required */
                'STRING_VALUE',
                /* more items */
              ]
            },
            /* more items */
          ],
          ResourceType: DATABASE | TABLE, /* required */
          CatalogId: 'STRING_VALUE'
        },
        Table: {
          DatabaseName: 'STRING_VALUE', /* required */
          CatalogId: 'STRING_VALUE',
          Name: 'STRING_VALUE',
          TableWildcard: {
          }
        },
        TableWithColumns: {
          DatabaseName: 'STRING_VALUE', /* required */
          Name: 'STRING_VALUE', /* required */
          CatalogId: 'STRING_VALUE',
          ColumnNames: [
            'STRING_VALUE',
            /* more items */
          ],
          ColumnWildcard: {
            ExcludedColumnNames: [
              'STRING_VALUE',
              /* more items */
            ]
          }
        }
      }
    },
    /* more items */
  ],
  CatalogId: 'STRING_VALUE'
};
lakeformation.batchGrantPermissions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • Entries — (Array<map>)

      A list of up to 20 entries for resource permissions to be granted by batch operation to the principal.

      • Idrequired — (String)

        A unique identifier for the batch permissions request entry.

      • Principal — (map)

        The principal to be granted a permission.

        • DataLakePrincipalIdentifier — (String)

          An identifier for the Lake Formation principal.

      • Resource — (map)

        The resource to which the principal is to be granted a permission.

        • Catalog — (map)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • Database — (map)

          The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, it is the account ID of the caller.

          • Namerequired — (String)

            The name of the database resource. Unique to the Data Catalog.

        • Table — (map)

          The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, it is the account ID of the caller.

          • DatabaseNamerequired — (String)

            The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

          • Name — (String)

            The name of the table.

          • TableWildcard — (map)

            A wildcard object representing every table under a database.

            At least one of TableResource$Name or TableResource$TableWildcard is required.

        • TableWithColumns — (map)

          The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, it is the account ID of the caller.

          • DatabaseNamerequired — (String)

            The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

          • Namerequired — (String)

            The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

          • ColumnNames — (Array<String>)

            The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

          • ColumnWildcard — (map)

            A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

            • ExcludedColumnNames — (Array<String>)

              Excludes column names. Any column with this name will be excluded.

        • DataLocation — (map)

          The location of an Amazon S3 path where permissions are granted or revoked.

          • CatalogId — (String)

            The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

          • ResourceArnrequired — (String)

            The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

        • DataCellsFilter — (map)

          A data cell filter.

          • TableCatalogId — (String)

            The ID of the catalog to which the table belongs.

          • DatabaseName — (String)

            A database in the Glue Data Catalog.

          • TableName — (String)

            The name of the table.

          • Name — (String)

            The name of the data cells filter.

        • LFTag — (map)

          The LF-tag key and values attached to a resource.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

        • LFTagPolicy — (map)

          A list of LF-tag conditions that define a resource's LF-tag policy.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • ResourceTyperequired — (String)

            The resource type for which the LF-tag policy applies.

            Possible values include:
            • "DATABASE"
            • "TABLE"
          • Expressionrequired — (Array<map>)

            A list of LF-tag conditions that apply to the resource's LF-tag policy.

            • TagKeyrequired — (String)

              The key-name for the LF-tag.

            • TagValuesrequired — (Array<String>)

              A list of possible values an attribute can take.

              The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

      • Permissions — (Array<String>)

        The permissions to be granted.

      • PermissionsWithGrantOption — (Array<String>)

        Indicates if the option to pass permissions is granted.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Failures — (Array<map>)

        A list of failures to grant permissions to the resources.

        • RequestEntry — (map)

          An identifier for an entry of the batch request.

          • Idrequired — (String)

            A unique identifier for the batch permissions request entry.

          • Principal — (map)

            The principal to be granted a permission.

            • DataLakePrincipalIdentifier — (String)

              An identifier for the Lake Formation principal.

          • Resource — (map)

            The resource to which the principal is to be granted a permission.

            • Catalog — (map)

              The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

            • Database — (map)

              The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

              • CatalogId — (String)

                The identifier for the Data Catalog. By default, it is the account ID of the caller.

              • Namerequired — (String)

                The name of the database resource. Unique to the Data Catalog.

            • Table — (map)

              The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

              • CatalogId — (String)

                The identifier for the Data Catalog. By default, it is the account ID of the caller.

              • DatabaseNamerequired — (String)

                The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

              • Name — (String)

                The name of the table.

              • TableWildcard — (map)

                A wildcard object representing every table under a database.

                At least one of TableResource$Name or TableResource$TableWildcard is required.

            • TableWithColumns — (map)

              The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

              • CatalogId — (String)

                The identifier for the Data Catalog. By default, it is the account ID of the caller.

              • DatabaseNamerequired — (String)

                The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

              • Namerequired — (String)

                The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

              • ColumnNames — (Array<String>)

                The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

              • ColumnWildcard — (map)

                A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

                • ExcludedColumnNames — (Array<String>)

                  Excludes column names. Any column with this name will be excluded.

            • DataLocation — (map)

              The location of an Amazon S3 path where permissions are granted or revoked.

              • CatalogId — (String)

                The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

              • ResourceArnrequired — (String)

                The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

            • DataCellsFilter — (map)

              A data cell filter.

              • TableCatalogId — (String)

                The ID of the catalog to which the table belongs.

              • DatabaseName — (String)

                A database in the Glue Data Catalog.

              • TableName — (String)

                The name of the table.

              • Name — (String)

                The name of the data cells filter.

            • LFTag — (map)

              The LF-tag key and values attached to a resource.

              • CatalogId — (String)

                The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

              • TagKeyrequired — (String)

                The key-name for the LF-tag.

              • TagValuesrequired — (Array<String>)

                A list of possible values an attribute can take.

            • LFTagPolicy — (map)

              A list of LF-tag conditions that define a resource's LF-tag policy.

              • CatalogId — (String)

                The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

              • ResourceTyperequired — (String)

                The resource type for which the LF-tag policy applies.

                Possible values include:
                • "DATABASE"
                • "TABLE"
              • Expressionrequired — (Array<map>)

                A list of LF-tag conditions that apply to the resource's LF-tag policy.

                • TagKeyrequired — (String)

                  The key-name for the LF-tag.

                • TagValuesrequired — (Array<String>)

                  A list of possible values an attribute can take.

                  The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

          • Permissions — (Array<String>)

            The permissions to be granted.

          • PermissionsWithGrantOption — (Array<String>)

            Indicates if the option to pass permissions is granted.

        • Error — (map)

          An error message that applies to the failure of the entry.

          • ErrorCode — (String)

            The code associated with this error.

          • ErrorMessage — (String)

            A message describing the error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchRevokePermissions(params = {}, callback) ⇒ AWS.Request

Batch operation to revoke permissions from the principal.

Service Reference:

Examples:

Calling the batchRevokePermissions operation

var params = {
  Entries: [ /* required */
    {
      Id: 'STRING_VALUE', /* required */
      Permissions: [
        ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
        /* more items */
      ],
      PermissionsWithGrantOption: [
        ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
        /* more items */
      ],
      Principal: {
        DataLakePrincipalIdentifier: 'STRING_VALUE'
      },
      Resource: {
        Catalog: {
        },
        DataCellsFilter: {
          DatabaseName: 'STRING_VALUE',
          Name: 'STRING_VALUE',
          TableCatalogId: 'STRING_VALUE',
          TableName: 'STRING_VALUE'
        },
        DataLocation: {
          ResourceArn: 'STRING_VALUE', /* required */
          CatalogId: 'STRING_VALUE'
        },
        Database: {
          Name: 'STRING_VALUE', /* required */
          CatalogId: 'STRING_VALUE'
        },
        LFTag: {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ],
          CatalogId: 'STRING_VALUE'
        },
        LFTagPolicy: {
          Expression: [ /* required */
            {
              TagKey: 'STRING_VALUE', /* required */
              TagValues: [ /* required */
                'STRING_VALUE',
                /* more items */
              ]
            },
            /* more items */
          ],
          ResourceType: DATABASE | TABLE, /* required */
          CatalogId: 'STRING_VALUE'
        },
        Table: {
          DatabaseName: 'STRING_VALUE', /* required */
          CatalogId: 'STRING_VALUE',
          Name: 'STRING_VALUE',
          TableWildcard: {
          }
        },
        TableWithColumns: {
          DatabaseName: 'STRING_VALUE', /* required */
          Name: 'STRING_VALUE', /* required */
          CatalogId: 'STRING_VALUE',
          ColumnNames: [
            'STRING_VALUE',
            /* more items */
          ],
          ColumnWildcard: {
            ExcludedColumnNames: [
              'STRING_VALUE',
              /* more items */
            ]
          }
        }
      }
    },
    /* more items */
  ],
  CatalogId: 'STRING_VALUE'
};
lakeformation.batchRevokePermissions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • Entries — (Array<map>)

      A list of up to 20 entries for resource permissions to be revoked by batch operation to the principal.

      • Idrequired — (String)

        A unique identifier for the batch permissions request entry.

      • Principal — (map)

        The principal to be granted a permission.

        • DataLakePrincipalIdentifier — (String)

          An identifier for the Lake Formation principal.

      • Resource — (map)

        The resource to which the principal is to be granted a permission.

        • Catalog — (map)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • Database — (map)

          The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, it is the account ID of the caller.

          • Namerequired — (String)

            The name of the database resource. Unique to the Data Catalog.

        • Table — (map)

          The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, it is the account ID of the caller.

          • DatabaseNamerequired — (String)

            The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

          • Name — (String)

            The name of the table.

          • TableWildcard — (map)

            A wildcard object representing every table under a database.

            At least one of TableResource$Name or TableResource$TableWildcard is required.

        • TableWithColumns — (map)

          The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, it is the account ID of the caller.

          • DatabaseNamerequired — (String)

            The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

          • Namerequired — (String)

            The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

          • ColumnNames — (Array<String>)

            The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

          • ColumnWildcard — (map)

            A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

            • ExcludedColumnNames — (Array<String>)

              Excludes column names. Any column with this name will be excluded.

        • DataLocation — (map)

          The location of an Amazon S3 path where permissions are granted or revoked.

          • CatalogId — (String)

            The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

          • ResourceArnrequired — (String)

            The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

        • DataCellsFilter — (map)

          A data cell filter.

          • TableCatalogId — (String)

            The ID of the catalog to which the table belongs.

          • DatabaseName — (String)

            A database in the Glue Data Catalog.

          • TableName — (String)

            The name of the table.

          • Name — (String)

            The name of the data cells filter.

        • LFTag — (map)

          The LF-tag key and values attached to a resource.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

        • LFTagPolicy — (map)

          A list of LF-tag conditions that define a resource's LF-tag policy.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • ResourceTyperequired — (String)

            The resource type for which the LF-tag policy applies.

            Possible values include:
            • "DATABASE"
            • "TABLE"
          • Expressionrequired — (Array<map>)

            A list of LF-tag conditions that apply to the resource's LF-tag policy.

            • TagKeyrequired — (String)

              The key-name for the LF-tag.

            • TagValuesrequired — (Array<String>)

              A list of possible values an attribute can take.

              The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

      • Permissions — (Array<String>)

        The permissions to be granted.

      • PermissionsWithGrantOption — (Array<String>)

        Indicates if the option to pass permissions is granted.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Failures — (Array<map>)

        A list of failures to revoke permissions to the resources.

        • RequestEntry — (map)

          An identifier for an entry of the batch request.

          • Idrequired — (String)

            A unique identifier for the batch permissions request entry.

          • Principal — (map)

            The principal to be granted a permission.

            • DataLakePrincipalIdentifier — (String)

              An identifier for the Lake Formation principal.

          • Resource — (map)

            The resource to which the principal is to be granted a permission.

            • Catalog — (map)

              The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

            • Database — (map)

              The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

              • CatalogId — (String)

                The identifier for the Data Catalog. By default, it is the account ID of the caller.

              • Namerequired — (String)

                The name of the database resource. Unique to the Data Catalog.

            • Table — (map)

              The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

              • CatalogId — (String)

                The identifier for the Data Catalog. By default, it is the account ID of the caller.

              • DatabaseNamerequired — (String)

                The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

              • Name — (String)

                The name of the table.

              • TableWildcard — (map)

                A wildcard object representing every table under a database.

                At least one of TableResource$Name or TableResource$TableWildcard is required.

            • TableWithColumns — (map)

              The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

              • CatalogId — (String)

                The identifier for the Data Catalog. By default, it is the account ID of the caller.

              • DatabaseNamerequired — (String)

                The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

              • Namerequired — (String)

                The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

              • ColumnNames — (Array<String>)

                The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

              • ColumnWildcard — (map)

                A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

                • ExcludedColumnNames — (Array<String>)

                  Excludes column names. Any column with this name will be excluded.

            • DataLocation — (map)

              The location of an Amazon S3 path where permissions are granted or revoked.

              • CatalogId — (String)

                The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

              • ResourceArnrequired — (String)

                The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

            • DataCellsFilter — (map)

              A data cell filter.

              • TableCatalogId — (String)

                The ID of the catalog to which the table belongs.

              • DatabaseName — (String)

                A database in the Glue Data Catalog.

              • TableName — (String)

                The name of the table.

              • Name — (String)

                The name of the data cells filter.

            • LFTag — (map)

              The LF-tag key and values attached to a resource.

              • CatalogId — (String)

                The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

              • TagKeyrequired — (String)

                The key-name for the LF-tag.

              • TagValuesrequired — (Array<String>)

                A list of possible values an attribute can take.

            • LFTagPolicy — (map)

              A list of LF-tag conditions that define a resource's LF-tag policy.

              • CatalogId — (String)

                The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

              • ResourceTyperequired — (String)

                The resource type for which the LF-tag policy applies.

                Possible values include:
                • "DATABASE"
                • "TABLE"
              • Expressionrequired — (Array<map>)

                A list of LF-tag conditions that apply to the resource's LF-tag policy.

                • TagKeyrequired — (String)

                  The key-name for the LF-tag.

                • TagValuesrequired — (Array<String>)

                  A list of possible values an attribute can take.

                  The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

          • Permissions — (Array<String>)

            The permissions to be granted.

          • PermissionsWithGrantOption — (Array<String>)

            Indicates if the option to pass permissions is granted.

        • Error — (map)

          An error message that applies to the failure of the entry.

          • ErrorCode — (String)

            The code associated with this error.

          • ErrorMessage — (String)

            A message describing the error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

cancelTransaction(params = {}, callback) ⇒ AWS.Request

Attempts to cancel the specified transaction. Returns an exception if the transaction was previously committed.

Service Reference:

Examples:

Calling the cancelTransaction operation

var params = {
  TransactionId: 'STRING_VALUE' /* required */
};
lakeformation.cancelTransaction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TransactionId — (String)

      The transaction to cancel.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

commitTransaction(params = {}, callback) ⇒ AWS.Request

Attempts to commit the specified transaction. Returns an exception if the transaction was previously aborted. This API action is idempotent if called multiple times for the same transaction.

Service Reference:

Examples:

Calling the commitTransaction operation

var params = {
  TransactionId: 'STRING_VALUE' /* required */
};
lakeformation.commitTransaction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TransactionId — (String)

      The transaction to commit.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TransactionStatus — (String)

        The status of the transaction.

        Possible values include:
        • "ACTIVE"
        • "COMMITTED"
        • "ABORTED"
        • "COMMIT_IN_PROGRESS"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDataCellsFilter(params = {}, callback) ⇒ AWS.Request

Creates a data cell filter to allow one to grant access to certain columns on certain rows.

Service Reference:

Examples:

Calling the createDataCellsFilter operation

var params = {
  TableData: { /* required */
    DatabaseName: 'STRING_VALUE', /* required */
    Name: 'STRING_VALUE', /* required */
    TableCatalogId: 'STRING_VALUE', /* required */
    TableName: 'STRING_VALUE', /* required */
    ColumnNames: [
      'STRING_VALUE',
      /* more items */
    ],
    ColumnWildcard: {
      ExcludedColumnNames: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    RowFilter: {
      AllRowsWildcard: {
      },
      FilterExpression: 'STRING_VALUE'
    },
    VersionId: 'STRING_VALUE'
  }
};
lakeformation.createDataCellsFilter(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TableData — (map)

      A DataCellsFilter structure containing information about the data cells filter.

      • TableCatalogIdrequired — (String)

        The ID of the catalog to which the table belongs.

      • DatabaseNamerequired — (String)

        A database in the Glue Data Catalog.

      • TableNamerequired — (String)

        A table in the database.

      • Namerequired — (String)

        The name given by the user to the data filter cell.

      • RowFilter — (map)

        A PartiQL predicate.

        • FilterExpression — (String)

          A filter expression.

        • AllRowsWildcard — (map)

          A wildcard for all rows.

      • ColumnNames — (Array<String>)

        A list of column names and/or nested column attributes. When specifying nested attributes, use a qualified dot (.) delimited format such as "address"."zip". Nested attributes within this list may not exceed a depth of 5.

      • ColumnWildcard — (map)

        A wildcard with exclusions.

        You must specify either a ColumnNames list or the ColumnWildCard.

        • ExcludedColumnNames — (Array<String>)

          Excludes column names. Any column with this name will be excluded.

      • VersionId — (String)

        The ID of the data cells filter version.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createLakeFormationIdentityCenterConfiguration(params = {}, callback) ⇒ AWS.Request

Creates an IAM Identity Center connection with Lake Formation to allow IAM Identity Center users and groups to access Data Catalog resources.

Examples:

Calling the createLakeFormationIdentityCenterConfiguration operation

var params = {
  CatalogId: 'STRING_VALUE',
  ExternalFiltering: {
    AuthorizedTargets: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    Status: ENABLED | DISABLED /* required */
  },
  InstanceArn: 'STRING_VALUE',
  ShareRecipients: [
    {
      DataLakePrincipalIdentifier: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lakeformation.createLakeFormationIdentityCenterConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, view definitions, and other control information to manage your Lake Formation environment.

    • InstanceArn — (String)

      The ARN of the IAM Identity Center instance for which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

    • ExternalFiltering — (map)

      A list of the account IDs of Amazon Web Services accounts of third-party applications that are allowed to access data managed by Lake Formation.

      • Statusrequired — (String)

        Allows to enable or disable the third-party applications that are allowed to access data managed by Lake Formation.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
      • AuthorizedTargetsrequired — (Array<String>)

        List of third-party application ARNs integrated with Lake Formation.

    • ShareRecipients — (Array<map>)

      A list of Amazon Web Services account IDs and/or Amazon Web Services organization/organizational unit ARNs that are allowed to access data managed by Lake Formation.

      If the ShareRecipients list includes valid values, a resource share is created with the principals you want to have access to the resources.

      If the ShareRecipients value is null or the list is empty, no resource share is created.

      • DataLakePrincipalIdentifier — (String)

        An identifier for the Lake Formation principal.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ApplicationArn — (String)

        The Amazon Resource Name (ARN) of the Lake Formation application integrated with IAM Identity Center.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createLakeFormationOptIn(params = {}, callback) ⇒ AWS.Request

Enforce Lake Formation permissions for the given databases, tables, and principals.

Service Reference:

Examples:

Calling the createLakeFormationOptIn operation

var params = {
  Principal: { /* required */
    DataLakePrincipalIdentifier: 'STRING_VALUE'
  },
  Resource: { /* required */
    Catalog: {
    },
    DataCellsFilter: {
      DatabaseName: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableCatalogId: 'STRING_VALUE',
      TableName: 'STRING_VALUE'
    },
    DataLocation: {
      ResourceArn: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    Database: {
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    LFTag: {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    LFTagPolicy: {
      Expression: [ /* required */
        {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        },
        /* more items */
      ],
      ResourceType: DATABASE | TABLE, /* required */
      CatalogId: 'STRING_VALUE'
    },
    Table: {
      DatabaseName: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableWildcard: {
      }
    },
    TableWithColumns: {
      DatabaseName: 'STRING_VALUE', /* required */
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      ColumnNames: [
        'STRING_VALUE',
        /* more items */
      ],
      ColumnWildcard: {
        ExcludedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    }
  }
};
lakeformation.createLakeFormationOptIn(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Principal — (map)

      The Lake Formation principal. Supported principals are IAM users or IAM roles.

      • DataLakePrincipalIdentifier — (String)

        An identifier for the Lake Formation principal.

    • Resource — (map)

      A structure for the resource.

      • Catalog — (map)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • Database — (map)

        The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • Namerequired — (String)

          The name of the database resource. Unique to the Data Catalog.

      • Table — (map)

        The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Name — (String)

          The name of the table.

        • TableWildcard — (map)

          A wildcard object representing every table under a database.

          At least one of TableResource$Name or TableResource$TableWildcard is required.

      • TableWithColumns — (map)

        The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Namerequired — (String)

          The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • ColumnNames — (Array<String>)

          The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

        • ColumnWildcard — (map)

          A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

      • DataLocation — (map)

        The location of an Amazon S3 path where permissions are granted or revoked.

        • CatalogId — (String)

          The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

      • DataCellsFilter — (map)

        A data cell filter.

        • TableCatalogId — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseName — (String)

          A database in the Glue Data Catalog.

        • TableName — (String)

          The name of the table.

        • Name — (String)

          The name of the data cells filter.

      • LFTag — (map)

        The LF-tag key and values attached to a resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagPolicy — (map)

        A list of LF-tag conditions that define a resource's LF-tag policy.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • ResourceTyperequired — (String)

          The resource type for which the LF-tag policy applies.

          Possible values include:
          • "DATABASE"
          • "TABLE"
        • Expressionrequired — (Array<map>)

          A list of LF-tag conditions that apply to the resource's LF-tag policy.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

            The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createLFTag(params = {}, callback) ⇒ AWS.Request

Creates an LF-tag with the specified name and values.

Service Reference:

Examples:

Calling the createLFTag operation

var params = {
  TagKey: 'STRING_VALUE', /* required */
  TagValues: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  CatalogId: 'STRING_VALUE'
};
lakeformation.createLFTag(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • TagKey — (String)

      The key-name for the LF-tag.

    • TagValues — (Array<String>)

      A list of possible values an attribute can take.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDataCellsFilter(params = {}, callback) ⇒ AWS.Request

Deletes a data cell filter.

Service Reference:

Examples:

Calling the deleteDataCellsFilter operation

var params = {
  DatabaseName: 'STRING_VALUE',
  Name: 'STRING_VALUE',
  TableCatalogId: 'STRING_VALUE',
  TableName: 'STRING_VALUE'
};
lakeformation.deleteDataCellsFilter(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TableCatalogId — (String)

      The ID of the catalog to which the table belongs.

    • DatabaseName — (String)

      A database in the Glue Data Catalog.

    • TableName — (String)

      A table in the database.

    • Name — (String)

      The name given by the user to the data filter cell.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteLakeFormationIdentityCenterConfiguration(params = {}, callback) ⇒ AWS.Request

Deletes an IAM Identity Center connection with Lake Formation.

Examples:

Calling the deleteLakeFormationIdentityCenterConfiguration operation

var params = {
  CatalogId: 'STRING_VALUE'
};
lakeformation.deleteLakeFormationIdentityCenterConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, view definition, and other control information to manage your Lake Formation environment.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteLakeFormationOptIn(params = {}, callback) ⇒ AWS.Request

Remove the Lake Formation permissions enforcement of the given databases, tables, and principals.

Service Reference:

Examples:

Calling the deleteLakeFormationOptIn operation

var params = {
  Principal: { /* required */
    DataLakePrincipalIdentifier: 'STRING_VALUE'
  },
  Resource: { /* required */
    Catalog: {
    },
    DataCellsFilter: {
      DatabaseName: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableCatalogId: 'STRING_VALUE',
      TableName: 'STRING_VALUE'
    },
    DataLocation: {
      ResourceArn: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    Database: {
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    LFTag: {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    LFTagPolicy: {
      Expression: [ /* required */
        {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        },
        /* more items */
      ],
      ResourceType: DATABASE | TABLE, /* required */
      CatalogId: 'STRING_VALUE'
    },
    Table: {
      DatabaseName: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableWildcard: {
      }
    },
    TableWithColumns: {
      DatabaseName: 'STRING_VALUE', /* required */
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      ColumnNames: [
        'STRING_VALUE',
        /* more items */
      ],
      ColumnWildcard: {
        ExcludedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    }
  }
};
lakeformation.deleteLakeFormationOptIn(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Principal — (map)

      The Lake Formation principal. Supported principals are IAM users or IAM roles.

      • DataLakePrincipalIdentifier — (String)

        An identifier for the Lake Formation principal.

    • Resource — (map)

      A structure for the resource.

      • Catalog — (map)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • Database — (map)

        The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • Namerequired — (String)

          The name of the database resource. Unique to the Data Catalog.

      • Table — (map)

        The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Name — (String)

          The name of the table.

        • TableWildcard — (map)

          A wildcard object representing every table under a database.

          At least one of TableResource$Name or TableResource$TableWildcard is required.

      • TableWithColumns — (map)

        The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Namerequired — (String)

          The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • ColumnNames — (Array<String>)

          The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

        • ColumnWildcard — (map)

          A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

      • DataLocation — (map)

        The location of an Amazon S3 path where permissions are granted or revoked.

        • CatalogId — (String)

          The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

      • DataCellsFilter — (map)

        A data cell filter.

        • TableCatalogId — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseName — (String)

          A database in the Glue Data Catalog.

        • TableName — (String)

          The name of the table.

        • Name — (String)

          The name of the data cells filter.

      • LFTag — (map)

        The LF-tag key and values attached to a resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagPolicy — (map)

        A list of LF-tag conditions that define a resource's LF-tag policy.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • ResourceTyperequired — (String)

          The resource type for which the LF-tag policy applies.

          Possible values include:
          • "DATABASE"
          • "TABLE"
        • Expressionrequired — (Array<map>)

          A list of LF-tag conditions that apply to the resource's LF-tag policy.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

            The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteLFTag(params = {}, callback) ⇒ AWS.Request

Deletes the specified LF-tag given a key name. If the input parameter tag key was not found, then the operation will throw an exception. When you delete an LF-tag, the LFTagPolicy attached to the LF-tag becomes invalid. If the deleted LF-tag was still assigned to any resource, the tag policy attach to the deleted LF-tag will no longer be applied to the resource.

Service Reference:

Examples:

Calling the deleteLFTag operation

var params = {
  TagKey: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
lakeformation.deleteLFTag(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • TagKey — (String)

      The key-name for the LF-tag to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteObjectsOnCancel(params = {}, callback) ⇒ AWS.Request

For a specific governed table, provides a list of Amazon S3 objects that will be written during the current transaction and that can be automatically deleted if the transaction is canceled. Without this call, no Amazon S3 objects are automatically deleted when a transaction cancels.

The Glue ETL library function write_dynamic_frame.from_catalog() includes an option to automatically call DeleteObjectsOnCancel before writes. For more information, see Rolling Back Amazon S3 Writes.

Service Reference:

Examples:

Calling the deleteObjectsOnCancel operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  Objects: [ /* required */
    {
      Uri: 'STRING_VALUE', /* required */
      ETag: 'STRING_VALUE'
    },
    /* more items */
  ],
  TableName: 'STRING_VALUE', /* required */
  TransactionId: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
lakeformation.deleteObjectsOnCancel(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The Glue data catalog that contains the governed table. Defaults to the current account ID.

    • DatabaseName — (String)

      The database that contains the governed table.

    • TableName — (String)

      The name of the governed table.

    • TransactionId — (String)

      ID of the transaction that the writes occur in.

    • Objects — (Array<map>)

      A list of VirtualObject structures, which indicates the Amazon S3 objects to be deleted if the transaction cancels.

      • Urirequired — (String)

        The path to the Amazon S3 object. Must start with s3://

      • ETag — (String)

        The ETag of the Amazon S3 object.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deregisterResource(params = {}, callback) ⇒ AWS.Request

Deregisters the resource as managed by the Data Catalog.

When you deregister a path, Lake Formation removes the path from the inline policy attached to your service-linked role.

Service Reference:

Examples:

Calling the deregisterResource operation

var params = {
  ResourceArn: 'STRING_VALUE' /* required */
};
lakeformation.deregisterResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource that you want to deregister.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeLakeFormationIdentityCenterConfiguration(params = {}, callback) ⇒ AWS.Request

Retrieves the instance ARN and application ARN for the connection.

Examples:

Calling the describeLakeFormationIdentityCenterConfiguration operation

var params = {
  CatalogId: 'STRING_VALUE'
};
lakeformation.describeLakeFormationIdentityCenterConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CatalogId — (String)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • InstanceArn — (String)

        The Amazon Resource Name (ARN) of the connection.

      • ApplicationArn — (String)

        The Amazon Resource Name (ARN) of the Lake Formation application integrated with IAM Identity Center.

      • ExternalFiltering — (map)

        Indicates if external filtering is enabled.

        • Statusrequired — (String)

          Allows to enable or disable the third-party applications that are allowed to access data managed by Lake Formation.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
        • AuthorizedTargetsrequired — (Array<String>)

          List of third-party application ARNs integrated with Lake Formation.

      • ShareRecipients — (Array<map>)

        A list of Amazon Web Services account IDs or Amazon Web Services organization/organizational unit ARNs that are allowed to access data managed by Lake Formation.

        If the ShareRecipients list includes valid values, a resource share is created with the principals you want to have access to the resources as the ShareRecipients.

        If the ShareRecipients value is null or the list is empty, no resource share is created.

        • DataLakePrincipalIdentifier — (String)

          An identifier for the Lake Formation principal.

      • ResourceShare — (String)

        The Amazon Resource Name (ARN) of the RAM share.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeResource(params = {}, callback) ⇒ AWS.Request

Retrieves the current data access role for the given resource registered in Lake Formation.

Service Reference:

Examples:

Calling the describeResource operation

var params = {
  ResourceArn: 'STRING_VALUE' /* required */
};
lakeformation.describeResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The resource ARN.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResourceInfo — (map)

        A structure containing information about an Lake Formation resource.

        • ResourceArn — (String)

          The Amazon Resource Name (ARN) of the resource.

        • RoleArn — (String)

          The IAM role that registered a resource.

        • LastModified — (Date)

          The date and time the resource was last modified.

        • WithFederation — (Boolean)

          Whether or not the resource is a federated resource.

        • HybridAccessEnabled — (Boolean)

          Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation permissions as well as Amazon S3 bucket policies.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeTransaction(params = {}, callback) ⇒ AWS.Request

Returns the details of a single transaction.

Service Reference:

Examples:

Calling the describeTransaction operation

var params = {
  TransactionId: 'STRING_VALUE' /* required */
};
lakeformation.describeTransaction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TransactionId — (String)

      The transaction for which to return status.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TransactionDescription — (map)

        Returns a TransactionDescription object containing information about the transaction.

        • TransactionId — (String)

          The ID of the transaction.

        • TransactionStatus — (String)

          A status of ACTIVE, COMMITTED, or ABORTED.

          Possible values include:
          • "ACTIVE"
          • "COMMITTED"
          • "ABORTED"
          • "COMMIT_IN_PROGRESS"
        • TransactionStartTime — (Date)

          The time when the transaction started.

        • TransactionEndTime — (Date)

          The time when the transaction committed or aborted, if it is not currently active.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

extendTransaction(params = {}, callback) ⇒ AWS.Request

Indicates to the service that the specified transaction is still active and should not be treated as idle and aborted.

Write transactions that remain idle for a long period are automatically aborted unless explicitly extended.

Service Reference:

Examples:

Calling the extendTransaction operation

var params = {
  TransactionId: 'STRING_VALUE'
};
lakeformation.extendTransaction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TransactionId — (String)

      The transaction to extend.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDataCellsFilter(params = {}, callback) ⇒ AWS.Request

Returns a data cells filter.

Service Reference:

Examples:

Calling the getDataCellsFilter operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  TableCatalogId: 'STRING_VALUE', /* required */
  TableName: 'STRING_VALUE' /* required */
};
lakeformation.getDataCellsFilter(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TableCatalogId — (String)

      The ID of the catalog to which the table belongs.

    • DatabaseName — (String)

      A database in the Glue Data Catalog.

    • TableName — (String)

      A table in the database.

    • Name — (String)

      The name given by the user to the data filter cell.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DataCellsFilter — (map)

        A structure that describes certain columns on certain rows.

        • TableCatalogIdrequired — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseNamerequired — (String)

          A database in the Glue Data Catalog.

        • TableNamerequired — (String)

          A table in the database.

        • Namerequired — (String)

          The name given by the user to the data filter cell.

        • RowFilter — (map)

          A PartiQL predicate.

          • FilterExpression — (String)

            A filter expression.

          • AllRowsWildcard — (map)

            A wildcard for all rows.

        • ColumnNames — (Array<String>)

          A list of column names and/or nested column attributes. When specifying nested attributes, use a qualified dot (.) delimited format such as "address"."zip". Nested attributes within this list may not exceed a depth of 5.

        • ColumnWildcard — (map)

          A wildcard with exclusions.

          You must specify either a ColumnNames list or the ColumnWildCard.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

        • VersionId — (String)

          The ID of the data cells filter version.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDataLakeSettings(params = {}, callback) ⇒ AWS.Request

Retrieves the list of the data lake administrators of a Lake Formation-managed data lake.

Service Reference:

Examples:

Calling the getDataLakeSettings operation

var params = {
  CatalogId: 'STRING_VALUE'
};
lakeformation.getDataLakeSettings(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DataLakeSettings — (map)

        A structure representing a list of Lake Formation principals designated as data lake administrators.

        • DataLakeAdmins — (Array<map>)

          A list of Lake Formation principals. Supported principals are IAM users or IAM roles.

          • DataLakePrincipalIdentifier — (String)

            An identifier for the Lake Formation principal.

        • ReadOnlyAdmins — (Array<map>)

          A list of Lake Formation principals with only view access to the resources, without the ability to make changes. Supported principals are IAM users or IAM roles.

          • DataLakePrincipalIdentifier — (String)

            An identifier for the Lake Formation principal.

        • CreateDatabaseDefaultPermissions — (Array<map>)

          Specifies whether access control on newly created database is managed by Lake Formation permissions or exclusively by IAM permissions.

          A null value indicates access control by Lake Formation permissions. A value that assigns ALL to IAM_ALLOWED_PRINCIPALS indicates access control by IAM permissions. This is referred to as the setting "Use only IAM access control," and is for backward compatibility with the Glue permission model implemented by IAM permissions.

          The only permitted values are an empty array or an array that contains a single JSON object that grants ALL to IAM_ALLOWED_PRINCIPALS.

          For more information, see Changing the Default Security Settings for Your Data Lake.

          • Principal — (map)

            The principal who is granted permissions.

            • DataLakePrincipalIdentifier — (String)

              An identifier for the Lake Formation principal.

          • Permissions — (Array<String>)

            The permissions that are granted to the principal.

        • CreateTableDefaultPermissions — (Array<map>)

          Specifies whether access control on newly created table is managed by Lake Formation permissions or exclusively by IAM permissions.

          A null value indicates access control by Lake Formation permissions. A value that assigns ALL to IAM_ALLOWED_PRINCIPALS indicates access control by IAM permissions. This is referred to as the setting "Use only IAM access control," and is for backward compatibility with the Glue permission model implemented by IAM permissions.

          The only permitted values are an empty array or an array that contains a single JSON object that grants ALL to IAM_ALLOWED_PRINCIPALS.

          For more information, see Changing the Default Security Settings for Your Data Lake.

          • Principal — (map)

            The principal who is granted permissions.

            • DataLakePrincipalIdentifier — (String)

              An identifier for the Lake Formation principal.

          • Permissions — (Array<String>)

            The permissions that are granted to the principal.

        • Parameters — (map<String>)

          A key-value map that provides an additional configuration on your data lake. CROSS_ACCOUNT_VERSION is the key you can configure in the Parameters field. Accepted values for the CrossAccountVersion key are 1, 2, 3, and 4.

        • TrustedResourceOwners — (Array<String>)

          A list of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs). The user ARNs can be logged in the resource owner's CloudTrail log.

          You may want to specify this property when you are in a high-trust boundary, such as the same team or company.

        • AllowExternalDataFiltering — (Boolean)

          Whether to allow Amazon EMR clusters to access data managed by Lake Formation.

          If true, you allow Amazon EMR clusters to access data in Amazon S3 locations that are registered with Lake Formation.

          If false or null, no Amazon EMR clusters will be able to access data in Amazon S3 locations that are registered with Lake Formation.

          For more information, see (Optional) Allow external data filtering.

        • AllowFullTableExternalDataAccess — (Boolean)

          Whether to allow a third-party query engine to get data access credentials without session tags when a caller has full data access permissions.

        • ExternalDataFilteringAllowList — (Array<map>)

          A list of the account IDs of Amazon Web Services accounts with Amazon EMR clusters that are to perform data filtering.>

          • DataLakePrincipalIdentifier — (String)

            An identifier for the Lake Formation principal.

        • AuthorizedSessionTagValueList — (Array<String>)

          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. Lake Formation will publish the acceptable key-value pair, for example key = "LakeFormationTrustedCaller" and value = "TRUE" and the third party integrator must properly tag the temporary security credentials that will be used to call Lake Formation's administrative APIs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getEffectivePermissionsForPath(params = {}, callback) ⇒ AWS.Request

Returns the Lake Formation permissions for a specified table or database resource located at a path in Amazon S3. GetEffectivePermissionsForPath will not return databases and tables if the catalog is encrypted.

Service Reference:

Examples:

Calling the getEffectivePermissionsForPath operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
lakeformation.getEffectivePermissionsForPath(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource for which you want to get permissions.

    • NextToken — (String)

      A continuation token, if this is not the first call to retrieve this list.

    • MaxResults — (Integer)

      The maximum number of results to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Permissions — (Array<map>)

        A list of the permissions for the specified table or database resource located at the path in Amazon S3.

        • Principal — (map)

          The Data Lake principal to be granted or revoked permissions.

          • DataLakePrincipalIdentifier — (String)

            An identifier for the Lake Formation principal.

        • Resource — (map)

          The resource where permissions are to be granted or revoked.

          • Catalog — (map)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • Database — (map)

            The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, it is the account ID of the caller.

            • Namerequired — (String)

              The name of the database resource. Unique to the Data Catalog.

          • Table — (map)

            The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, it is the account ID of the caller.

            • DatabaseNamerequired — (String)

              The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

            • Name — (String)

              The name of the table.

            • TableWildcard — (map)

              A wildcard object representing every table under a database.

              At least one of TableResource$Name or TableResource$TableWildcard is required.

          • TableWithColumns — (map)

            The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, it is the account ID of the caller.

            • DatabaseNamerequired — (String)

              The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

            • Namerequired — (String)

              The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

            • ColumnNames — (Array<String>)

              The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

            • ColumnWildcard — (map)

              A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

              • ExcludedColumnNames — (Array<String>)

                Excludes column names. Any column with this name will be excluded.

          • DataLocation — (map)

            The location of an Amazon S3 path where permissions are granted or revoked.

            • CatalogId — (String)

              The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

            • ResourceArnrequired — (String)

              The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

          • DataCellsFilter — (map)

            A data cell filter.

            • TableCatalogId — (String)

              The ID of the catalog to which the table belongs.

            • DatabaseName — (String)

              A database in the Glue Data Catalog.

            • TableName — (String)

              The name of the table.

            • Name — (String)

              The name of the data cells filter.

          • LFTag — (map)

            The LF-tag key and values attached to a resource.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

            • TagKeyrequired — (String)

              The key-name for the LF-tag.

            • TagValuesrequired — (Array<String>)

              A list of possible values an attribute can take.

          • LFTagPolicy — (map)

            A list of LF-tag conditions that define a resource's LF-tag policy.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

            • ResourceTyperequired — (String)

              The resource type for which the LF-tag policy applies.

              Possible values include:
              • "DATABASE"
              • "TABLE"
            • Expressionrequired — (Array<map>)

              A list of LF-tag conditions that apply to the resource's LF-tag policy.

              • TagKeyrequired — (String)

                The key-name for the LF-tag.

              • TagValuesrequired — (Array<String>)

                A list of possible values an attribute can take.

                The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

        • Permissions — (Array<String>)

          The permissions to be granted or revoked on the resource.

        • PermissionsWithGrantOption — (Array<String>)

          Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).

        • AdditionalDetails — (map)

          This attribute can be used to return any additional details of PrincipalResourcePermissions. Currently returns only as a RAM resource share ARN.

          • ResourceShare — (Array<String>)

            A resource share ARN for a catalog resource shared through RAM.

        • LastUpdated — (Date)

          The date and time when the resource was last updated.

        • LastUpdatedBy — (String)

          The user who updated the record.

      • NextToken — (String)

        A continuation token, if this is not the first call to retrieve this list.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getLFTag(params = {}, callback) ⇒ AWS.Request

Returns an LF-tag definition.

Service Reference:

Examples:

Calling the getLFTag operation

var params = {
  TagKey: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
lakeformation.getLFTag(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • TagKey — (String)

      The key-name for the LF-tag.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CatalogId — (String)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • TagKey — (String)

        The key-name for the LF-tag.

      • TagValues — (Array<String>)

        A list of possible values an attribute can take.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getQueryState(params = {}, callback) ⇒ AWS.Request

Returns the state of a query previously submitted. Clients are expected to poll GetQueryState to monitor the current state of the planning before retrieving the work units. A query state is only visible to the principal that made the initial call to StartQueryPlanning.

Service Reference:

Examples:

Calling the getQueryState operation

var params = {
  QueryId: 'STRING_VALUE' /* required */
};
lakeformation.getQueryState(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • QueryId — (String)

      The ID of the plan query operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Error — (String)

        An error message when the operation fails.

      • State — (String)

        The state of a query previously submitted. The possible states are:

        • PENDING: the query is pending.

        • WORKUNITS_AVAILABLE: some work units are ready for retrieval and execution.

        • FINISHED: the query planning finished successfully, and all work units are ready for retrieval and execution.

        • ERROR: an error occurred with the query, such as an invalid query ID or a backend error.

        Possible values include:
        • "PENDING"
        • "WORKUNITS_AVAILABLE"
        • "ERROR"
        • "FINISHED"
        • "EXPIRED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getQueryStatistics(params = {}, callback) ⇒ AWS.Request

Retrieves statistics on the planning and execution of a query.

Service Reference:

Examples:

Calling the getQueryStatistics operation

var params = {
  QueryId: 'STRING_VALUE' /* required */
};
lakeformation.getQueryStatistics(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • QueryId — (String)

      The ID of the plan query operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ExecutionStatistics — (map)

        An ExecutionStatistics structure containing execution statistics.

        • AverageExecutionTimeMillis — (Integer)

          The average time the request took to be executed.

        • DataScannedBytes — (Integer)

          The amount of data that was scanned in bytes.

        • WorkUnitsExecutedCount — (Integer)

          The number of work units executed.

      • PlanningStatistics — (map)

        A PlanningStatistics structure containing query planning statistics.

        • EstimatedDataToScanBytes — (Integer)

          An estimate of the data that was scanned in bytes.

        • PlanningTimeMillis — (Integer)

          The time that it took to process the request.

        • QueueTimeMillis — (Integer)

          The time the request was in queue to be processed.

        • WorkUnitsGeneratedCount — (Integer)

          The number of work units generated.

      • QuerySubmissionTime — (Date)

        The time that the query was submitted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getResourceLFTags(params = {}, callback) ⇒ AWS.Request

Returns the LF-tags applied to a resource.

Service Reference:

Examples:

Calling the getResourceLFTags operation

var params = {
  Resource: { /* required */
    Catalog: {
    },
    DataCellsFilter: {
      DatabaseName: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableCatalogId: 'STRING_VALUE',
      TableName: 'STRING_VALUE'
    },
    DataLocation: {
      ResourceArn: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    Database: {
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    LFTag: {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    LFTagPolicy: {
      Expression: [ /* required */
        {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        },
        /* more items */
      ],
      ResourceType: DATABASE | TABLE, /* required */
      CatalogId: 'STRING_VALUE'
    },
    Table: {
      DatabaseName: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableWildcard: {
      }
    },
    TableWithColumns: {
      DatabaseName: 'STRING_VALUE', /* required */
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      ColumnNames: [
        'STRING_VALUE',
        /* more items */
      ],
      ColumnWildcard: {
        ExcludedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    }
  },
  CatalogId: 'STRING_VALUE',
  ShowAssignedLFTags: true || false
};
lakeformation.getResourceLFTags(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • Resource — (map)

      The database, table, or column resource for which you want to return LF-tags.

      • Catalog — (map)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • Database — (map)

        The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • Namerequired — (String)

          The name of the database resource. Unique to the Data Catalog.

      • Table — (map)

        The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Name — (String)

          The name of the table.

        • TableWildcard — (map)

          A wildcard object representing every table under a database.

          At least one of TableResource$Name or TableResource$TableWildcard is required.

      • TableWithColumns — (map)

        The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Namerequired — (String)

          The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • ColumnNames — (Array<String>)

          The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

        • ColumnWildcard — (map)

          A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

      • DataLocation — (map)

        The location of an Amazon S3 path where permissions are granted or revoked.

        • CatalogId — (String)

          The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

      • DataCellsFilter — (map)

        A data cell filter.

        • TableCatalogId — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseName — (String)

          A database in the Glue Data Catalog.

        • TableName — (String)

          The name of the table.

        • Name — (String)

          The name of the data cells filter.

      • LFTag — (map)

        The LF-tag key and values attached to a resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagPolicy — (map)

        A list of LF-tag conditions that define a resource's LF-tag policy.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • ResourceTyperequired — (String)

          The resource type for which the LF-tag policy applies.

          Possible values include:
          • "DATABASE"
          • "TABLE"
        • Expressionrequired — (Array<map>)

          A list of LF-tag conditions that apply to the resource's LF-tag policy.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

            The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

    • ShowAssignedLFTags — (Boolean)

      Indicates whether to show the assigned LF-tags.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LFTagOnDatabase — (Array<map>)

        A list of LF-tags applied to a database resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagsOnTable — (Array<map>)

        A list of LF-tags applied to a table resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagsOnColumns — (Array<map>)

        A list of LF-tags applied to a column resource.

        • Name — (String)

          The name of a column resource.

        • LFTags — (Array<map>)

          The LF-tags attached to a column resource.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTableObjects(params = {}, callback) ⇒ AWS.Request

Returns the set of Amazon S3 objects that make up the specified governed table. A transaction ID or timestamp can be specified for time-travel queries.

Service Reference:

Examples:

Calling the getTableObjects operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  PartitionPredicate: 'STRING_VALUE',
  QueryAsOfTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  TransactionId: 'STRING_VALUE'
};
lakeformation.getTableObjects(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The catalog containing the governed table. Defaults to the caller’s account.

    • DatabaseName — (String)

      The database containing the governed table.

    • TableName — (String)

      The governed table for which to retrieve objects.

    • TransactionId — (String)

      The transaction ID at which to read the governed table contents. If this transaction has aborted, an error is returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with QueryAsOfTime.

    • QueryAsOfTime — (Date)

      The time as of when to read the governed table contents. If not set, the most recent transaction commit time is used. Cannot be specified along with TransactionId.

    • PartitionPredicate — (String)

      A predicate to filter the objects returned based on the partition keys defined in the governed table.

      • The comparison operators supported are: =, >, <, >=, <=

      • The logical operators supported are: AND

      • The data types supported are integer, long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd HH:mm:ss"), string and decimal.

    • MaxResults — (Integer)

      Specifies how many values to return in a page.

    • NextToken — (String)

      A continuation token if this is not the first call to retrieve these objects.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Objects — (Array<map>)

        A list of objects organized by partition keys.

        • PartitionValues — (Array<String>)

          A list of partition values.

        • Objects — (Array<map>)

          A list of table objects

          • Uri — (String)

            The Amazon S3 location of the object.

          • ETag — (String)

            The Amazon S3 ETag of the object. Returned by GetTableObjects for validation and used to identify changes to the underlying data.

          • Size — (Integer)

            The size of the Amazon S3 object in bytes.

      • NextToken — (String)

        A continuation token indicating whether additional data is available.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTemporaryGluePartitionCredentials(params = {}, callback) ⇒ AWS.Request

This API is identical to GetTemporaryTableCredentials except that this is used when the target Data Catalog resource is of type Partition. Lake Formation restricts the permission of the vended credentials with the same scope down policy which restricts access to a single Amazon S3 prefix.

Examples:

Calling the getTemporaryGluePartitionCredentials operation

var params = {
  Partition: { /* required */
    Values: [ /* required */
      'STRING_VALUE',
      /* more items */
    ]
  },
  TableArn: 'STRING_VALUE', /* required */
  AuditContext: {
    AdditionalAuditContext: 'STRING_VALUE'
  },
  DurationSeconds: 'NUMBER_VALUE',
  Permissions: [
    ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
    /* more items */
  ],
  SupportedPermissionTypes: [
    COLUMN_PERMISSION | CELL_FILTER_PERMISSION | NESTED_PERMISSION | NESTED_CELL_PERMISSION,
    /* more items */
  ]
};
lakeformation.getTemporaryGluePartitionCredentials(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TableArn — (String)

      The ARN of the partitions' table.

    • Partition — (map)

      A list of partition values identifying a single partition.

      • Valuesrequired — (Array<String>)

        The list of partition values.

    • Permissions — (Array<String>)

      Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).

    • DurationSeconds — (Integer)

      The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.

    • AuditContext — (map)

      A structure representing context to access a resource (column names, query ID, etc).

      • AdditionalAuditContext — (String)

        The filter engine can populate the 'AdditionalAuditContext' information with the request ID for you to track. This information will be displayed in CloudTrail log in your account.

    • SupportedPermissionTypes — (Array<String>)

      A list of supported permission types for the partition. Valid values are COLUMN_PERMISSION and CELL_FILTER_PERMISSION.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AccessKeyId — (String)

        The access key ID for the temporary credentials.

      • SecretAccessKey — (String)

        The secret key for the temporary credentials.

      • SessionToken — (String)

        The session token for the temporary credentials.

      • Expiration — (Date)

        The date and time when the temporary credentials expire.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTemporaryGlueTableCredentials(params = {}, callback) ⇒ AWS.Request

Allows a caller in a secure environment to assume a role with permission to access Amazon S3. In order to vend such credentials, Lake Formation assumes the role associated with a registered location, for example an Amazon S3 bucket, with a scope down policy which restricts the access to a single prefix.

Examples:

Calling the getTemporaryGlueTableCredentials operation

var params = {
  TableArn: 'STRING_VALUE', /* required */
  AuditContext: {
    AdditionalAuditContext: 'STRING_VALUE'
  },
  DurationSeconds: 'NUMBER_VALUE',
  Permissions: [
    ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
    /* more items */
  ],
  QuerySessionContext: {
    AdditionalContext: {
      '<ContextKey>': 'STRING_VALUE',
      /* '<ContextKey>': ... */
    },
    ClusterId: 'STRING_VALUE',
    QueryAuthorizationId: 'STRING_VALUE',
    QueryId: 'STRING_VALUE',
    QueryStartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
  },
  S3Path: 'STRING_VALUE',
  SupportedPermissionTypes: [
    COLUMN_PERMISSION | CELL_FILTER_PERMISSION | NESTED_PERMISSION | NESTED_CELL_PERMISSION,
    /* more items */
  ]
};
lakeformation.getTemporaryGlueTableCredentials(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TableArn — (String)

      The ARN identifying a table in the Data Catalog for the temporary credentials request.

    • Permissions — (Array<String>)

      Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).

    • DurationSeconds — (Integer)

      The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.

    • AuditContext — (map)

      A structure representing context to access a resource (column names, query ID, etc).

      • AdditionalAuditContext — (String)

        The filter engine can populate the 'AdditionalAuditContext' information with the request ID for you to track. This information will be displayed in CloudTrail log in your account.

    • SupportedPermissionTypes — (Array<String>)

      A list of supported permission types for the table. Valid values are COLUMN_PERMISSION and CELL_FILTER_PERMISSION.

    • S3Path — (String)

      The Amazon S3 path for the table.

    • QuerySessionContext — (map)

      A structure used as a protocol between query engines and Lake Formation or Glue. Contains both a Lake Formation generated authorization identifier and information from the request's authorization context.

      • QueryId — (String)

        A unique identifier generated by the query engine for the query.

      • QueryStartTime — (Date)

        A timestamp provided by the query engine for when the query started.

      • ClusterId — (String)

        An identifier string for the consumer cluster.

      • QueryAuthorizationId — (String)

        A cryptographically generated query identifier generated by Glue or Lake Formation.

      • AdditionalContext — (map<String>)

        An opaque string-string map passed by the query engine.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AccessKeyId — (String)

        The access key ID for the temporary credentials.

      • SecretAccessKey — (String)

        The secret key for the temporary credentials.

      • SessionToken — (String)

        The session token for the temporary credentials.

      • Expiration — (Date)

        The date and time when the temporary credentials expire.

      • VendedS3Path — (Array<String>)

        The Amazon S3 path for the temporary credentials.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getWorkUnitResults(params = {}, callback) ⇒ AWS.Request

Returns the work units resulting from the query. Work units can be executed in any order and in parallel.

Service Reference:

Examples:

Calling the getWorkUnitResults operation

var params = {
  QueryId: 'STRING_VALUE', /* required */
  WorkUnitId: 'NUMBER_VALUE', /* required */
  WorkUnitToken: 'STRING_VALUE' /* required */
};
lakeformation.getWorkUnitResults(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • QueryId — (String)

      The ID of the plan query operation for which to get results.

    • WorkUnitId — (Integer)

      The work unit ID for which to get results. Value generated by enumerating WorkUnitIdMin to WorkUnitIdMax (inclusive) from the WorkUnitRange in the output of GetWorkUnits.

    • WorkUnitToken — (String)

      A work token used to query the execution service. Token output from GetWorkUnits.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResultStream — (Buffer(Node.js), Typed Array(Browser), ReadableStream)

        Rows returned from the GetWorkUnitResults operation as a stream of Apache Arrow v1.0 messages.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getWorkUnits(params = {}, callback) ⇒ AWS.Request

Retrieves the work units generated by the StartQueryPlanning operation.

Service Reference:

Examples:

Calling the getWorkUnits operation

var params = {
  QueryId: 'STRING_VALUE', /* required */
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
lakeformation.getWorkUnits(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A continuation token, if this is a continuation call.

    • PageSize — (Integer)

      The size of each page to get in the Amazon Web Services service call. This does not affect the number of items returned in the command's output. Setting a smaller page size results in more calls to the Amazon Web Services service, retrieving fewer items in each call. This can help prevent the Amazon Web Services service calls from timing out.

    • QueryId — (String)

      The ID of the plan query operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.

      • QueryId — (String)

        The ID of the plan query operation.

      • WorkUnitRanges — (Array<map>)

        A WorkUnitRangeList object that specifies the valid range of work unit IDs for querying the execution service.

        • WorkUnitIdMaxrequired — (Integer)

          Defines the maximum work unit ID in the range. The maximum value is inclusive.

        • WorkUnitIdMinrequired — (Integer)

          Defines the minimum work unit ID in the range.

        • WorkUnitTokenrequired — (String)

          A work token used to query the execution service.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

grantPermissions(params = {}, callback) ⇒ AWS.Request

Grants permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.

For information about permissions, see Security and Access Control to Metadata and Data.

Service Reference:

Examples:

Calling the grantPermissions operation

var params = {
  Permissions: [ /* required */
    ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
    /* more items */
  ],
  Principal: { /* required */
    DataLakePrincipalIdentifier: 'STRING_VALUE'
  },
  Resource: { /* required */
    Catalog: {
    },
    DataCellsFilter: {
      DatabaseName: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableCatalogId: 'STRING_VALUE',
      TableName: 'STRING_VALUE'
    },
    DataLocation: {
      ResourceArn: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    Database: {
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    LFTag: {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    LFTagPolicy: {
      Expression: [ /* required */
        {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        },
        /* more items */
      ],
      ResourceType: DATABASE | TABLE, /* required */
      CatalogId: 'STRING_VALUE'
    },
    Table: {
      DatabaseName: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableWildcard: {
      }
    },
    TableWithColumns: {
      DatabaseName: 'STRING_VALUE', /* required */
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      ColumnNames: [
        'STRING_VALUE',
        /* more items */
      ],
      ColumnWildcard: {
        ExcludedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    }
  },
  CatalogId: 'STRING_VALUE',
  PermissionsWithGrantOption: [
    ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
    /* more items */
  ]
};
lakeformation.grantPermissions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • Principal — (map)

      The principal to be granted the permissions on the resource. Supported principals are IAM users or IAM roles, and they are defined by their principal type and their ARN.

      Note that if you define a resource with a particular ARN, then later delete, and recreate a resource with that same ARN, the resource maintains the permissions already granted.

      • DataLakePrincipalIdentifier — (String)

        An identifier for the Lake Formation principal.

    • Resource — (map)

      The resource to which permissions are to be granted. Resources in Lake Formation are the Data Catalog, databases, and tables.

      • Catalog — (map)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • Database — (map)

        The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • Namerequired — (String)

          The name of the database resource. Unique to the Data Catalog.

      • Table — (map)

        The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Name — (String)

          The name of the table.

        • TableWildcard — (map)

          A wildcard object representing every table under a database.

          At least one of TableResource$Name or TableResource$TableWildcard is required.

      • TableWithColumns — (map)

        The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Namerequired — (String)

          The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • ColumnNames — (Array<String>)

          The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

        • ColumnWildcard — (map)

          A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

      • DataLocation — (map)

        The location of an Amazon S3 path where permissions are granted or revoked.

        • CatalogId — (String)

          The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

      • DataCellsFilter — (map)

        A data cell filter.

        • TableCatalogId — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseName — (String)

          A database in the Glue Data Catalog.

        • TableName — (String)

          The name of the table.

        • Name — (String)

          The name of the data cells filter.

      • LFTag — (map)

        The LF-tag key and values attached to a resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagPolicy — (map)

        A list of LF-tag conditions that define a resource's LF-tag policy.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • ResourceTyperequired — (String)

          The resource type for which the LF-tag policy applies.

          Possible values include:
          • "DATABASE"
          • "TABLE"
        • Expressionrequired — (Array<map>)

          A list of LF-tag conditions that apply to the resource's LF-tag policy.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

            The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

    • Permissions — (Array<String>)

      The permissions granted to the principal on the resource. Lake Formation defines privileges to grant and revoke access to metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. Lake Formation requires that each principal be authorized to perform a specific task on Lake Formation resources.

    • PermissionsWithGrantOption — (Array<String>)

      Indicates a list of the granted permissions that the principal may pass to other users. These permissions may only be a subset of the permissions granted in the Privileges.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listDataCellsFilter(params = {}, callback) ⇒ AWS.Request

Lists all the data cell filters on a table.

Service Reference:

Examples:

Calling the listDataCellsFilter operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  Table: {
    DatabaseName: 'STRING_VALUE', /* required */
    CatalogId: 'STRING_VALUE',
    Name: 'STRING_VALUE',
    TableWildcard: {
    }
  }
};
lakeformation.listDataCellsFilter(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Table — (map)

      A table in the Glue Data Catalog.

      • CatalogId — (String)

        The identifier for the Data Catalog. By default, it is the account ID of the caller.

      • DatabaseNamerequired — (String)

        The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

      • Name — (String)

        The name of the table.

      • TableWildcard — (map)

        A wildcard object representing every table under a database.

        At least one of TableResource$Name or TableResource$TableWildcard is required.

    • NextToken — (String)

      A continuation token, if this is a continuation call.

    • MaxResults — (Integer)

      The maximum size of the response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DataCellsFilters — (Array<map>)

        A list of DataCellFilter structures.

        • TableCatalogIdrequired — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseNamerequired — (String)

          A database in the Glue Data Catalog.

        • TableNamerequired — (String)

          A table in the database.

        • Namerequired — (String)

          The name given by the user to the data filter cell.

        • RowFilter — (map)

          A PartiQL predicate.

          • FilterExpression — (String)

            A filter expression.

          • AllRowsWildcard — (map)

            A wildcard for all rows.

        • ColumnNames — (Array<String>)

          A list of column names and/or nested column attributes. When specifying nested attributes, use a qualified dot (.) delimited format such as "address"."zip". Nested attributes within this list may not exceed a depth of 5.

        • ColumnWildcard — (map)

          A wildcard with exclusions.

          You must specify either a ColumnNames list or the ColumnWildCard.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

        • VersionId — (String)

          The ID of the data cells filter version.

      • NextToken — (String)

        A continuation token, if not all requested data cell filters have been returned.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listLakeFormationOptIns(params = {}, callback) ⇒ AWS.Request

Retrieve the current list of resources and principals that are opt in to enforce Lake Formation permissions.

Service Reference:

Examples:

Calling the listLakeFormationOptIns operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  Principal: {
    DataLakePrincipalIdentifier: 'STRING_VALUE'
  },
  Resource: {
    Catalog: {
    },
    DataCellsFilter: {
      DatabaseName: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableCatalogId: 'STRING_VALUE',
      TableName: 'STRING_VALUE'
    },
    DataLocation: {
      ResourceArn: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    Database: {
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    LFTag: {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    LFTagPolicy: {
      Expression: [ /* required */
        {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        },
        /* more items */
      ],
      ResourceType: DATABASE | TABLE, /* required */
      CatalogId: 'STRING_VALUE'
    },
    Table: {
      DatabaseName: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableWildcard: {
      }
    },
    TableWithColumns: {
      DatabaseName: 'STRING_VALUE', /* required */
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      ColumnNames: [
        'STRING_VALUE',
        /* more items */
      ],
      ColumnWildcard: {
        ExcludedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    }
  }
};
lakeformation.listLakeFormationOptIns(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Principal — (map)

      The Lake Formation principal. Supported principals are IAM users or IAM roles.

      • DataLakePrincipalIdentifier — (String)

        An identifier for the Lake Formation principal.

    • Resource — (map)

      A structure for the resource.

      • Catalog — (map)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • Database — (map)

        The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • Namerequired — (String)

          The name of the database resource. Unique to the Data Catalog.

      • Table — (map)

        The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Name — (String)

          The name of the table.

        • TableWildcard — (map)

          A wildcard object representing every table under a database.

          At least one of TableResource$Name or TableResource$TableWildcard is required.

      • TableWithColumns — (map)

        The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Namerequired — (String)

          The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • ColumnNames — (Array<String>)

          The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

        • ColumnWildcard — (map)

          A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

      • DataLocation — (map)

        The location of an Amazon S3 path where permissions are granted or revoked.

        • CatalogId — (String)

          The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

      • DataCellsFilter — (map)

        A data cell filter.

        • TableCatalogId — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseName — (String)

          A database in the Glue Data Catalog.

        • TableName — (String)

          The name of the table.

        • Name — (String)

          The name of the data cells filter.

      • LFTag — (map)

        The LF-tag key and values attached to a resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagPolicy — (map)

        A list of LF-tag conditions that define a resource's LF-tag policy.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • ResourceTyperequired — (String)

          The resource type for which the LF-tag policy applies.

          Possible values include:
          • "DATABASE"
          • "TABLE"
        • Expressionrequired — (Array<map>)

          A list of LF-tag conditions that apply to the resource's LF-tag policy.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

            The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • NextToken — (String)

      A continuation token, if this is not the first call to retrieve this list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LakeFormationOptInsInfoList — (Array<map>)

        A list of principal-resource pairs that have Lake Formation permissins enforced.

        • Resource — (map)

          A structure for the resource.

          • Catalog — (map)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • Database — (map)

            The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, it is the account ID of the caller.

            • Namerequired — (String)

              The name of the database resource. Unique to the Data Catalog.

          • Table — (map)

            The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, it is the account ID of the caller.

            • DatabaseNamerequired — (String)

              The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

            • Name — (String)

              The name of the table.

            • TableWildcard — (map)

              A wildcard object representing every table under a database.

              At least one of TableResource$Name or TableResource$TableWildcard is required.

          • TableWithColumns — (map)

            The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, it is the account ID of the caller.

            • DatabaseNamerequired — (String)

              The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

            • Namerequired — (String)

              The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

            • ColumnNames — (Array<String>)

              The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

            • ColumnWildcard — (map)

              A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

              • ExcludedColumnNames — (Array<String>)

                Excludes column names. Any column with this name will be excluded.

          • DataLocation — (map)

            The location of an Amazon S3 path where permissions are granted or revoked.

            • CatalogId — (String)

              The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

            • ResourceArnrequired — (String)

              The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

          • DataCellsFilter — (map)

            A data cell filter.

            • TableCatalogId — (String)

              The ID of the catalog to which the table belongs.

            • DatabaseName — (String)

              A database in the Glue Data Catalog.

            • TableName — (String)

              The name of the table.

            • Name — (String)

              The name of the data cells filter.

          • LFTag — (map)

            The LF-tag key and values attached to a resource.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

            • TagKeyrequired — (String)

              The key-name for the LF-tag.

            • TagValuesrequired — (Array<String>)

              A list of possible values an attribute can take.

          • LFTagPolicy — (map)

            A list of LF-tag conditions that define a resource's LF-tag policy.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

            • ResourceTyperequired — (String)

              The resource type for which the LF-tag policy applies.

              Possible values include:
              • "DATABASE"
              • "TABLE"
            • Expressionrequired — (Array<map>)

              A list of LF-tag conditions that apply to the resource's LF-tag policy.

              • TagKeyrequired — (String)

                The key-name for the LF-tag.

              • TagValuesrequired — (Array<String>)

                A list of possible values an attribute can take.

                The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

        • Principal — (map)

          The Lake Formation principal. Supported principals are IAM users or IAM roles.

          • DataLakePrincipalIdentifier — (String)

            An identifier for the Lake Formation principal.

        • LastModified — (Date)

          The last modified date and time of the record.

        • LastUpdatedBy — (String)

          The user who updated the record.

      • NextToken — (String)

        A continuation token, if this is not the first call to retrieve this list.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listLFTags(params = {}, callback) ⇒ AWS.Request

Lists LF-tags that the requester has permission to view.

Service Reference:

Examples:

Calling the listLFTags operation

var params = {
  CatalogId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  ResourceShareType: FOREIGN | ALL
};
lakeformation.listLFTags(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • ResourceShareType — (String)

      If resource share type is ALL, returns both in-account LF-tags and shared LF-tags that the requester has permission to view. If resource share type is FOREIGN, returns all share LF-tags that the requester can view. If no resource share type is passed, lists LF-tags in the given catalog ID that the requester has permission to view.

      Possible values include:
      • "FOREIGN"
      • "ALL"
    • MaxResults — (Integer)

      The maximum number of results to return.

    • NextToken — (String)

      A continuation token, if this is not the first call to retrieve this list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LFTags — (Array<map>)

        A list of LF-tags that the requested has permission to view.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • NextToken — (String)

        A continuation token, present if the current list segment is not the last.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listPermissions(params = {}, callback) ⇒ AWS.Request

Returns a list of the principal permissions on the resource, filtered by the permissions of the caller. For example, if you are granted an ALTER permission, you are able to see only the principal permissions for ALTER.

This operation returns only those permissions that have been explicitly granted.

For information about permissions, see Security and Access Control to Metadata and Data.

Service Reference:

Examples:

Calling the listPermissions operation

var params = {
  CatalogId: 'STRING_VALUE',
  IncludeRelated: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  Principal: {
    DataLakePrincipalIdentifier: 'STRING_VALUE'
  },
  Resource: {
    Catalog: {
    },
    DataCellsFilter: {
      DatabaseName: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableCatalogId: 'STRING_VALUE',
      TableName: 'STRING_VALUE'
    },
    DataLocation: {
      ResourceArn: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    Database: {
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    LFTag: {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    LFTagPolicy: {
      Expression: [ /* required */
        {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        },
        /* more items */
      ],
      ResourceType: DATABASE | TABLE, /* required */
      CatalogId: 'STRING_VALUE'
    },
    Table: {
      DatabaseName: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableWildcard: {
      }
    },
    TableWithColumns: {
      DatabaseName: 'STRING_VALUE', /* required */
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      ColumnNames: [
        'STRING_VALUE',
        /* more items */
      ],
      ColumnWildcard: {
        ExcludedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    }
  },
  ResourceType: CATALOG | DATABASE | TABLE | DATA_LOCATION | LF_TAG | LF_TAG_POLICY | LF_TAG_POLICY_DATABASE | LF_TAG_POLICY_TABLE
};
lakeformation.listPermissions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • Principal — (map)

      Specifies a principal to filter the permissions returned.

      • DataLakePrincipalIdentifier — (String)

        An identifier for the Lake Formation principal.

    • ResourceType — (String)

      Specifies a resource type to filter the permissions returned.

      Possible values include:
      • "CATALOG"
      • "DATABASE"
      • "TABLE"
      • "DATA_LOCATION"
      • "LF_TAG"
      • "LF_TAG_POLICY"
      • "LF_TAG_POLICY_DATABASE"
      • "LF_TAG_POLICY_TABLE"
    • Resource — (map)

      A resource where you will get a list of the principal permissions.

      This operation does not support getting privileges on a table with columns. Instead, call this operation on the table, and the operation returns the table and the table w columns.

      • Catalog — (map)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • Database — (map)

        The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • Namerequired — (String)

          The name of the database resource. Unique to the Data Catalog.

      • Table — (map)

        The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Name — (String)

          The name of the table.

        • TableWildcard — (map)

          A wildcard object representing every table under a database.

          At least one of TableResource$Name or TableResource$TableWildcard is required.

      • TableWithColumns — (map)

        The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Namerequired — (String)

          The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • ColumnNames — (Array<String>)

          The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

        • ColumnWildcard — (map)

          A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

      • DataLocation — (map)

        The location of an Amazon S3 path where permissions are granted or revoked.

        • CatalogId — (String)

          The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

      • DataCellsFilter — (map)

        A data cell filter.

        • TableCatalogId — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseName — (String)

          A database in the Glue Data Catalog.

        • TableName — (String)

          The name of the table.

        • Name — (String)

          The name of the data cells filter.

      • LFTag — (map)

        The LF-tag key and values attached to a resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagPolicy — (map)

        A list of LF-tag conditions that define a resource's LF-tag policy.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • ResourceTyperequired — (String)

          The resource type for which the LF-tag policy applies.

          Possible values include:
          • "DATABASE"
          • "TABLE"
        • Expressionrequired — (Array<map>)

          A list of LF-tag conditions that apply to the resource's LF-tag policy.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

            The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

    • NextToken — (String)

      A continuation token, if this is not the first call to retrieve this list.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • IncludeRelated — (String)

      Indicates that related permissions should be included in the results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • PrincipalResourcePermissions — (Array<map>)

        A list of principals and their permissions on the resource for the specified principal and resource types.

        • Principal — (map)

          The Data Lake principal to be granted or revoked permissions.

          • DataLakePrincipalIdentifier — (String)

            An identifier for the Lake Formation principal.

        • Resource — (map)

          The resource where permissions are to be granted or revoked.

          • Catalog — (map)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • Database — (map)

            The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, it is the account ID of the caller.

            • Namerequired — (String)

              The name of the database resource. Unique to the Data Catalog.

          • Table — (map)

            The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, it is the account ID of the caller.

            • DatabaseNamerequired — (String)

              The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

            • Name — (String)

              The name of the table.

            • TableWildcard — (map)

              A wildcard object representing every table under a database.

              At least one of TableResource$Name or TableResource$TableWildcard is required.

          • TableWithColumns — (map)

            The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, it is the account ID of the caller.

            • DatabaseNamerequired — (String)

              The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

            • Namerequired — (String)

              The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

            • ColumnNames — (Array<String>)

              The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

            • ColumnWildcard — (map)

              A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

              • ExcludedColumnNames — (Array<String>)

                Excludes column names. Any column with this name will be excluded.

          • DataLocation — (map)

            The location of an Amazon S3 path where permissions are granted or revoked.

            • CatalogId — (String)

              The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

            • ResourceArnrequired — (String)

              The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

          • DataCellsFilter — (map)

            A data cell filter.

            • TableCatalogId — (String)

              The ID of the catalog to which the table belongs.

            • DatabaseName — (String)

              A database in the Glue Data Catalog.

            • TableName — (String)

              The name of the table.

            • Name — (String)

              The name of the data cells filter.

          • LFTag — (map)

            The LF-tag key and values attached to a resource.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

            • TagKeyrequired — (String)

              The key-name for the LF-tag.

            • TagValuesrequired — (Array<String>)

              A list of possible values an attribute can take.

          • LFTagPolicy — (map)

            A list of LF-tag conditions that define a resource's LF-tag policy.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

            • ResourceTyperequired — (String)

              The resource type for which the LF-tag policy applies.

              Possible values include:
              • "DATABASE"
              • "TABLE"
            • Expressionrequired — (Array<map>)

              A list of LF-tag conditions that apply to the resource's LF-tag policy.

              • TagKeyrequired — (String)

                The key-name for the LF-tag.

              • TagValuesrequired — (Array<String>)

                A list of possible values an attribute can take.

                The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

        • Permissions — (Array<String>)

          The permissions to be granted or revoked on the resource.

        • PermissionsWithGrantOption — (Array<String>)

          Indicates whether to grant the ability to grant permissions (as a subset of permissions granted).

        • AdditionalDetails — (map)

          This attribute can be used to return any additional details of PrincipalResourcePermissions. Currently returns only as a RAM resource share ARN.

          • ResourceShare — (Array<String>)

            A resource share ARN for a catalog resource shared through RAM.

        • LastUpdated — (Date)

          The date and time when the resource was last updated.

        • LastUpdatedBy — (String)

          The user who updated the record.

      • NextToken — (String)

        A continuation token, if this is not the first call to retrieve this list.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listResources(params = {}, callback) ⇒ AWS.Request

Lists the resources registered to be managed by the Data Catalog.

Service Reference:

Examples:

Calling the listResources operation

var params = {
  FilterConditionList: [
    {
      ComparisonOperator: EQ | NE | LE | LT | GE | GT | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN,
      Field: RESOURCE_ARN | ROLE_ARN | LAST_MODIFIED,
      StringValueList: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
lakeformation.listResources(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • FilterConditionList — (Array<map>)

      Any applicable row-level and/or column-level filtering conditions for the resources.

      • Field — (String)

        The field to filter in the filter condition.

        Possible values include:
        • "RESOURCE_ARN"
        • "ROLE_ARN"
        • "LAST_MODIFIED"
      • ComparisonOperator — (String)

        The comparison operator used in the filter condition.

        Possible values include:
        • "EQ"
        • "NE"
        • "LE"
        • "LT"
        • "GE"
        • "GT"
        • "CONTAINS"
        • "NOT_CONTAINS"
        • "BEGINS_WITH"
        • "IN"
        • "BETWEEN"
      • StringValueList — (Array<String>)

        A string with values used in evaluating the filter condition.

    • MaxResults — (Integer)

      The maximum number of resource results.

    • NextToken — (String)

      A continuation token, if this is not the first call to retrieve these resources.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResourceInfoList — (Array<map>)

        A summary of the data lake resources.

        • ResourceArn — (String)

          The Amazon Resource Name (ARN) of the resource.

        • RoleArn — (String)

          The IAM role that registered a resource.

        • LastModified — (Date)

          The date and time the resource was last modified.

        • WithFederation — (Boolean)

          Whether or not the resource is a federated resource.

        • HybridAccessEnabled — (Boolean)

          Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation permissions as well as Amazon S3 bucket policies.

      • NextToken — (String)

        A continuation token, if this is not the first call to retrieve these resources.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTableStorageOptimizers(params = {}, callback) ⇒ AWS.Request

Returns the configuration of all storage optimizers associated with a specified table.

Service Reference:

Examples:

Calling the listTableStorageOptimizers operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  StorageOptimizerType: COMPACTION | GARBAGE_COLLECTION | ALL
};
lakeformation.listTableStorageOptimizers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The Catalog ID of the table.

    • DatabaseName — (String)

      Name of the database where the table is present.

    • TableName — (String)

      Name of the table.

    • StorageOptimizerType — (String)

      The specific type of storage optimizers to list. The supported value is compaction.

      Possible values include:
      • "COMPACTION"
      • "GARBAGE_COLLECTION"
      • "ALL"
    • MaxResults — (Integer)

      The number of storage optimizers to return on each call.

    • NextToken — (String)

      A continuation token, if this is a continuation call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • StorageOptimizerList — (Array<map>)

        A list of the storage optimizers associated with a table.

        • StorageOptimizerType — (String)

          The specific type of storage optimizer. The supported value is compaction.

          Possible values include:
          • "COMPACTION"
          • "GARBAGE_COLLECTION"
          • "ALL"
        • Config — (map<String>)

          A map of the storage optimizer configuration. Currently contains only one key-value pair: is_enabled indicates true or false for acceleration.

        • ErrorMessage — (String)

          A message that contains information about any error (if present).

          When an acceleration result has an enabled status, the error message is empty.

          When an acceleration result has a disabled status, the message describes an error or simply indicates "disabled by the user".

        • Warnings — (String)

          A message that contains information about any warnings (if present).

        • LastRunDetails — (String)

          When an acceleration result has an enabled status, contains the details of the last job run.

      • NextToken — (String)

        A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTransactions(params = {}, callback) ⇒ AWS.Request

Returns metadata about transactions and their status. To prevent the response from growing indefinitely, only uncommitted transactions and those available for time-travel queries are returned.

This operation can help you identify uncommitted transactions or to get information about transactions.

Service Reference:

Examples:

Calling the listTransactions operation

var params = {
  CatalogId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  StatusFilter: ALL | COMPLETED | ACTIVE | COMMITTED | ABORTED
};
lakeformation.listTransactions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The catalog for which to list transactions. Defaults to the account ID of the caller.

    • StatusFilter — (String)

      A filter indicating the status of transactions to return. Options are ALL | COMPLETED | COMMITTED | ABORTED | ACTIVE. The default is ALL.

      Possible values include:
      • "ALL"
      • "COMPLETED"
      • "ACTIVE"
      • "COMMITTED"
      • "ABORTED"
    • MaxResults — (Integer)

      The maximum number of transactions to return in a single call.

    • NextToken — (String)

      A continuation token if this is not the first call to retrieve transactions.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Transactions — (Array<map>)

        A list of transactions. The record for each transaction is a TransactionDescription object.

        • TransactionId — (String)

          The ID of the transaction.

        • TransactionStatus — (String)

          A status of ACTIVE, COMMITTED, or ABORTED.

          Possible values include:
          • "ACTIVE"
          • "COMMITTED"
          • "ABORTED"
          • "COMMIT_IN_PROGRESS"
        • TransactionStartTime — (Date)

          The time when the transaction started.

        • TransactionEndTime — (Date)

          The time when the transaction committed or aborted, if it is not currently active.

      • NextToken — (String)

        A continuation token indicating whether additional data is available.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putDataLakeSettings(params = {}, callback) ⇒ AWS.Request

Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation. For more information on admin privileges, see Granting Lake Formation Permissions.

This API replaces the current list of data lake admins with the new list being passed. To add an admin, fetch the current list and add the new admin to that list and pass that list in this API.

Service Reference:

Examples:

Calling the putDataLakeSettings operation

var params = {
  DataLakeSettings: { /* required */
    AllowExternalDataFiltering: true || false,
    AllowFullTableExternalDataAccess: true || false,
    AuthorizedSessionTagValueList: [
      'STRING_VALUE',
      /* more items */
    ],
    CreateDatabaseDefaultPermissions: [
      {
        Permissions: [
          ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
          /* more items */
        ],
        Principal: {
          DataLakePrincipalIdentifier: 'STRING_VALUE'
        }
      },
      /* more items */
    ],
    CreateTableDefaultPermissions: [
      {
        Permissions: [
          ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
          /* more items */
        ],
        Principal: {
          DataLakePrincipalIdentifier: 'STRING_VALUE'
        }
      },
      /* more items */
    ],
    DataLakeAdmins: [
      {
        DataLakePrincipalIdentifier: 'STRING_VALUE'
      },
      /* more items */
    ],
    ExternalDataFilteringAllowList: [
      {
        DataLakePrincipalIdentifier: 'STRING_VALUE'
      },
      /* more items */
    ],
    Parameters: {
      '<KeyString>': 'STRING_VALUE',
      /* '<KeyString>': ... */
    },
    ReadOnlyAdmins: [
      {
        DataLakePrincipalIdentifier: 'STRING_VALUE'
      },
      /* more items */
    ],
    TrustedResourceOwners: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  CatalogId: 'STRING_VALUE'
};
lakeformation.putDataLakeSettings(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • DataLakeSettings — (map)

      A structure representing a list of Lake Formation principals designated as data lake administrators.

      • DataLakeAdmins — (Array<map>)

        A list of Lake Formation principals. Supported principals are IAM users or IAM roles.

        • DataLakePrincipalIdentifier — (String)

          An identifier for the Lake Formation principal.

      • ReadOnlyAdmins — (Array<map>)

        A list of Lake Formation principals with only view access to the resources, without the ability to make changes. Supported principals are IAM users or IAM roles.

        • DataLakePrincipalIdentifier — (String)

          An identifier for the Lake Formation principal.

      • CreateDatabaseDefaultPermissions — (Array<map>)

        Specifies whether access control on newly created database is managed by Lake Formation permissions or exclusively by IAM permissions.

        A null value indicates access control by Lake Formation permissions. A value that assigns ALL to IAM_ALLOWED_PRINCIPALS indicates access control by IAM permissions. This is referred to as the setting "Use only IAM access control," and is for backward compatibility with the Glue permission model implemented by IAM permissions.

        The only permitted values are an empty array or an array that contains a single JSON object that grants ALL to IAM_ALLOWED_PRINCIPALS.

        For more information, see Changing the Default Security Settings for Your Data Lake.

        • Principal — (map)

          The principal who is granted permissions.

          • DataLakePrincipalIdentifier — (String)

            An identifier for the Lake Formation principal.

        • Permissions — (Array<String>)

          The permissions that are granted to the principal.

      • CreateTableDefaultPermissions — (Array<map>)

        Specifies whether access control on newly created table is managed by Lake Formation permissions or exclusively by IAM permissions.

        A null value indicates access control by Lake Formation permissions. A value that assigns ALL to IAM_ALLOWED_PRINCIPALS indicates access control by IAM permissions. This is referred to as the setting "Use only IAM access control," and is for backward compatibility with the Glue permission model implemented by IAM permissions.

        The only permitted values are an empty array or an array that contains a single JSON object that grants ALL to IAM_ALLOWED_PRINCIPALS.

        For more information, see Changing the Default Security Settings for Your Data Lake.

        • Principal — (map)

          The principal who is granted permissions.

          • DataLakePrincipalIdentifier — (String)

            An identifier for the Lake Formation principal.

        • Permissions — (Array<String>)

          The permissions that are granted to the principal.

      • Parameters — (map<String>)

        A key-value map that provides an additional configuration on your data lake. CROSS_ACCOUNT_VERSION is the key you can configure in the Parameters field. Accepted values for the CrossAccountVersion key are 1, 2, 3, and 4.

      • TrustedResourceOwners — (Array<String>)

        A list of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs). The user ARNs can be logged in the resource owner's CloudTrail log.

        You may want to specify this property when you are in a high-trust boundary, such as the same team or company.

      • AllowExternalDataFiltering — (Boolean)

        Whether to allow Amazon EMR clusters to access data managed by Lake Formation.

        If true, you allow Amazon EMR clusters to access data in Amazon S3 locations that are registered with Lake Formation.

        If false or null, no Amazon EMR clusters will be able to access data in Amazon S3 locations that are registered with Lake Formation.

        For more information, see (Optional) Allow external data filtering.

      • AllowFullTableExternalDataAccess — (Boolean)

        Whether to allow a third-party query engine to get data access credentials without session tags when a caller has full data access permissions.

      • ExternalDataFilteringAllowList — (Array<map>)

        A list of the account IDs of Amazon Web Services accounts with Amazon EMR clusters that are to perform data filtering.>

        • DataLakePrincipalIdentifier — (String)

          An identifier for the Lake Formation principal.

      • AuthorizedSessionTagValueList — (Array<String>)

        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. Lake Formation will publish the acceptable key-value pair, for example key = "LakeFormationTrustedCaller" and value = "TRUE" and the third party integrator must properly tag the temporary security credentials that will be used to call Lake Formation's administrative APIs.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

registerResource(params = {}, callback) ⇒ AWS.Request

Registers the resource as managed by the Data Catalog.

To add or update data, Lake Formation needs read/write access to the chosen Amazon S3 path. Choose a role that you know has permission to do this, or choose the AWSServiceRoleForLakeFormationDataAccess service-linked role. When you register the first Amazon S3 path, the service-linked role and a new inline policy are created on your behalf. Lake Formation adds the first path to the inline policy and attaches it to the service-linked role. When you register subsequent paths, Lake Formation adds the path to the existing policy.

The following request registers a new location and gives Lake Formation permission to use the service-linked role to access that location.

ResourceArn = arn:aws:s3:::my-bucket UseServiceLinkedRole = true

If UseServiceLinkedRole is not set to true, you must provide or set the RoleArn:

arn:aws:iam::12345:role/my-data-access-role

Service Reference:

Examples:

Calling the registerResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  HybridAccessEnabled: true || false,
  RoleArn: 'STRING_VALUE',
  UseServiceLinkedRole: true || false,
  WithFederation: true || false
};
lakeformation.registerResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource that you want to register.

    • UseServiceLinkedRole — (Boolean)

      Designates an Identity and Access Management (IAM) service-linked role by registering this role with the Data Catalog. A service-linked role is a unique type of IAM role that is linked directly to Lake Formation.

      For more information, see Using Service-Linked Roles for Lake Formation.

    • RoleArn — (String)

      The identifier for the role that registers the resource.

    • WithFederation — (Boolean)

      Whether or not the resource is a federated resource.

    • HybridAccessEnabled — (Boolean)

      Specifies whether the data access of tables pointing to the location can be managed by both Lake Formation permissions as well as Amazon S3 bucket policies.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

removeLFTagsFromResource(params = {}, callback) ⇒ AWS.Request

Removes an LF-tag from the resource. Only database, table, or tableWithColumns resource are allowed. To tag columns, use the column inclusion list in tableWithColumns to specify column input.

Service Reference:

Examples:

Calling the removeLFTagsFromResource operation

var params = {
  LFTags: [ /* required */
    {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    /* more items */
  ],
  Resource: { /* required */
    Catalog: {
    },
    DataCellsFilter: {
      DatabaseName: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableCatalogId: 'STRING_VALUE',
      TableName: 'STRING_VALUE'
    },
    DataLocation: {
      ResourceArn: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    Database: {
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    LFTag: {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    LFTagPolicy: {
      Expression: [ /* required */
        {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        },
        /* more items */
      ],
      ResourceType: DATABASE | TABLE, /* required */
      CatalogId: 'STRING_VALUE'
    },
    Table: {
      DatabaseName: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableWildcard: {
      }
    },
    TableWithColumns: {
      DatabaseName: 'STRING_VALUE', /* required */
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      ColumnNames: [
        'STRING_VALUE',
        /* more items */
      ],
      ColumnWildcard: {
        ExcludedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    }
  },
  CatalogId: 'STRING_VALUE'
};
lakeformation.removeLFTagsFromResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • Resource — (map)

      The database, table, or column resource where you want to remove an LF-tag.

      • Catalog — (map)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • Database — (map)

        The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • Namerequired — (String)

          The name of the database resource. Unique to the Data Catalog.

      • Table — (map)

        The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Name — (String)

          The name of the table.

        • TableWildcard — (map)

          A wildcard object representing every table under a database.

          At least one of TableResource$Name or TableResource$TableWildcard is required.

      • TableWithColumns — (map)

        The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Namerequired — (String)

          The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • ColumnNames — (Array<String>)

          The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

        • ColumnWildcard — (map)

          A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

      • DataLocation — (map)

        The location of an Amazon S3 path where permissions are granted or revoked.

        • CatalogId — (String)

          The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

      • DataCellsFilter — (map)

        A data cell filter.

        • TableCatalogId — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseName — (String)

          A database in the Glue Data Catalog.

        • TableName — (String)

          The name of the table.

        • Name — (String)

          The name of the data cells filter.

      • LFTag — (map)

        The LF-tag key and values attached to a resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagPolicy — (map)

        A list of LF-tag conditions that define a resource's LF-tag policy.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • ResourceTyperequired — (String)

          The resource type for which the LF-tag policy applies.

          Possible values include:
          • "DATABASE"
          • "TABLE"
        • Expressionrequired — (Array<map>)

          A list of LF-tag conditions that apply to the resource's LF-tag policy.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

            The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

    • LFTags — (Array<map>)

      The LF-tags to be removed from the resource.

      • CatalogId — (String)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • TagKeyrequired — (String)

        The key-name for the LF-tag.

      • TagValuesrequired — (Array<String>)

        A list of possible values an attribute can take.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Failures — (Array<map>)

        A list of failures to untag a resource.

        • LFTag — (map)

          The key-name of the LF-tag.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

        • Error — (map)

          An error that occurred with the attachment or detachment of the LF-tag.

          • ErrorCode — (String)

            The code associated with this error.

          • ErrorMessage — (String)

            A message describing the error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

revokePermissions(params = {}, callback) ⇒ AWS.Request

Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.

Service Reference:

Examples:

Calling the revokePermissions operation

var params = {
  Permissions: [ /* required */
    ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
    /* more items */
  ],
  Principal: { /* required */
    DataLakePrincipalIdentifier: 'STRING_VALUE'
  },
  Resource: { /* required */
    Catalog: {
    },
    DataCellsFilter: {
      DatabaseName: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableCatalogId: 'STRING_VALUE',
      TableName: 'STRING_VALUE'
    },
    DataLocation: {
      ResourceArn: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    Database: {
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE'
    },
    LFTag: {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      CatalogId: 'STRING_VALUE'
    },
    LFTagPolicy: {
      Expression: [ /* required */
        {
          TagKey: 'STRING_VALUE', /* required */
          TagValues: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        },
        /* more items */
      ],
      ResourceType: DATABASE | TABLE, /* required */
      CatalogId: 'STRING_VALUE'
    },
    Table: {
      DatabaseName: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      Name: 'STRING_VALUE',
      TableWildcard: {
      }
    },
    TableWithColumns: {
      DatabaseName: 'STRING_VALUE', /* required */
      Name: 'STRING_VALUE', /* required */
      CatalogId: 'STRING_VALUE',
      ColumnNames: [
        'STRING_VALUE',
        /* more items */
      ],
      ColumnWildcard: {
        ExcludedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    }
  },
  CatalogId: 'STRING_VALUE',
  PermissionsWithGrantOption: [
    ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS | CREATE_LF_TAG | ASSOCIATE | GRANT_WITH_LF_TAG_EXPRESSION,
    /* more items */
  ]
};
lakeformation.revokePermissions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • Principal — (map)

      The principal to be revoked permissions on the resource.

      • DataLakePrincipalIdentifier — (String)

        An identifier for the Lake Formation principal.

    • Resource — (map)

      The resource to which permissions are to be revoked.

      • Catalog — (map)

        The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

      • Database — (map)

        The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • Namerequired — (String)

          The name of the database resource. Unique to the Data Catalog.

      • Table — (map)

        The table for the resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Name — (String)

          The name of the table.

        • TableWildcard — (map)

          A wildcard object representing every table under a database.

          At least one of TableResource$Name or TableResource$TableWildcard is required.

      • TableWithColumns — (map)

        The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, it is the account ID of the caller.

        • DatabaseNamerequired — (String)

          The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

        • Namerequired — (String)

          The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.

        • ColumnNames — (Array<String>)

          The list of column names for the table. At least one of ColumnNames or ColumnWildcard is required.

        • ColumnWildcard — (map)

          A wildcard specified by a ColumnWildcard object. At least one of ColumnNames or ColumnWildcard is required.

          • ExcludedColumnNames — (Array<String>)

            Excludes column names. Any column with this name will be excluded.

      • DataLocation — (map)

        The location of an Amazon S3 path where permissions are granted or revoked.

        • CatalogId — (String)

          The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) that uniquely identifies the data location resource.

      • DataCellsFilter — (map)

        A data cell filter.

        • TableCatalogId — (String)

          The ID of the catalog to which the table belongs.

        • DatabaseName — (String)

          A database in the Glue Data Catalog.

        • TableName — (String)

          The name of the table.

        • Name — (String)

          The name of the data cells filter.

      • LFTag — (map)

        The LF-tag key and values attached to a resource.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • TagKeyrequired — (String)

          The key-name for the LF-tag.

        • TagValuesrequired — (Array<String>)

          A list of possible values an attribute can take.

      • LFTagPolicy — (map)

        A list of LF-tag conditions that define a resource's LF-tag policy.

        • CatalogId — (String)

          The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

        • ResourceTyperequired — (String)

          The resource type for which the LF-tag policy applies.

          Possible values include:
          • "DATABASE"
          • "TABLE"
        • Expressionrequired — (Array<map>)

          A list of LF-tag conditions that apply to the resource's LF-tag policy.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

            The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

    • Permissions — (Array<String>)

      The permissions revoked to the principal on the resource. For information about permissions, see Security and Access Control to Metadata and Data.

    • PermissionsWithGrantOption — (Array<String>)

      Indicates a list of permissions for which to revoke the grant option allowing the principal to pass permissions to other principals.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

searchDatabasesByLFTags(params = {}, callback) ⇒ AWS.Request

This operation allows a search on DATABASE resources by TagCondition. This operation is used by admins who want to grant user permissions on certain TagConditions. Before making a grant, the admin can use SearchDatabasesByTags to find all resources where the given TagConditions are valid to verify whether the returned resources can be shared.

Service Reference:

Examples:

Calling the searchDatabasesByLFTags operation

var params = {
  Expression: [ /* required */
    {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  CatalogId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
lakeformation.searchDatabasesByLFTags(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A continuation token, if this is not the first call to retrieve this list.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • Expression — (Array<map>)

      A list of conditions (LFTag structures) to search for in database resources.

      • TagKeyrequired — (String)

        The key-name for the LF-tag.

      • TagValuesrequired — (Array<String>)

        A list of possible values an attribute can take.

        The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        A continuation token, present if the current list segment is not the last.

      • DatabaseList — (Array<map>)

        A list of databases that meet the LF-tag conditions.

        • Database — (map)

          A database that has LF-tags attached to it.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, it is the account ID of the caller.

          • Namerequired — (String)

            The name of the database resource. Unique to the Data Catalog.

        • LFTags — (Array<map>)

          A list of LF-tags attached to the database.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

searchTablesByLFTags(params = {}, callback) ⇒ AWS.Request

This operation allows a search on TABLE resources by LFTags. This will be used by admins who want to grant user permissions on certain LF-tags. Before making a grant, the admin can use SearchTablesByLFTags to find all resources where the given LFTags are valid to verify whether the returned resources can be shared.

Service Reference:

Examples:

Calling the searchTablesByLFTags operation

var params = {
  Expression: [ /* required */
    {
      TagKey: 'STRING_VALUE', /* required */
      TagValues: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  CatalogId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
lakeformation.searchTablesByLFTags(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A continuation token, if this is not the first call to retrieve this list.

    • MaxResults — (Integer)

      The maximum number of results to return.

    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • Expression — (Array<map>)

      A list of conditions (LFTag structures) to search for in table resources.

      • TagKeyrequired — (String)

        The key-name for the LF-tag.

      • TagValuesrequired — (Array<String>)

        A list of possible values an attribute can take.

        The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        A continuation token, present if the current list segment is not the last. On the first run, if you include a not null (a value) token you can get empty pages.

      • TableList — (Array<map>)

        A list of tables that meet the LF-tag conditions.

        • Table — (map)

          A table that has LF-tags attached to it.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, it is the account ID of the caller.

          • DatabaseNamerequired — (String)

            The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.

          • Name — (String)

            The name of the table.

          • TableWildcard — (map)

            A wildcard object representing every table under a database.

            At least one of TableResource$Name or TableResource$TableWildcard is required.

        • LFTagOnDatabase — (Array<map>)

          A list of LF-tags attached to the database where the table resides.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

        • LFTagsOnTable — (Array<map>)

          A list of LF-tags attached to the table.

          • CatalogId — (String)

            The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

          • TagKeyrequired — (String)

            The key-name for the LF-tag.

          • TagValuesrequired — (Array<String>)

            A list of possible values an attribute can take.

        • LFTagsOnColumns — (Array<map>)

          A list of LF-tags attached to columns in the table.

          • Name — (String)

            The name of a column resource.

          • LFTags — (Array<map>)

            The LF-tags attached to a column resource.

            • CatalogId — (String)

              The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

            • TagKeyrequired — (String)

              The key-name for the LF-tag.

            • TagValuesrequired — (Array<String>)

              A list of possible values an attribute can take.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startQueryPlanning(params = {}, callback) ⇒ AWS.Request

Submits a request to process a query statement.

This operation generates work units that can be retrieved with the GetWorkUnits operation as soon as the query state is WORKUNITS_AVAILABLE or FINISHED.

Service Reference:

Examples:

Calling the startQueryPlanning operation

var params = {
  QueryPlanningContext: { /* required */
    DatabaseName: 'STRING_VALUE', /* required */
    CatalogId: 'STRING_VALUE',
    QueryAsOfTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    QueryParameters: {
      '<String>': 'STRING_VALUE',
      /* '<String>': ... */
    },
    TransactionId: 'STRING_VALUE'
  },
  QueryString: 'STRING_VALUE' /* required */
};
lakeformation.startQueryPlanning(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • QueryPlanningContext — (map)

      A structure containing information about the query plan.

      • CatalogId — (String)

        The ID of the Data Catalog where the partition in question resides. If none is provided, the Amazon Web Services account ID is used by default.

      • DatabaseNamerequired — (String)

        The database containing the table.

      • QueryAsOfTime — (Date)

        The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId.

      • QueryParameters — (map<String>)

        A map consisting of key-value pairs.

      • TransactionId — (String)

        The transaction ID at which to read the table contents. If this transaction is not committed, the read will be treated as part of that transaction and will see its writes. If this transaction has aborted, an error will be returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with QueryAsOfTime.

    • QueryString — (String)

      A PartiQL query statement used as an input to the planner service.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • QueryId — (String)

        The ID of the plan query operation can be used to fetch the actual work unit descriptors that are produced as the result of the operation. The ID is also used to get the query state and as an input to the Execute operation.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startTransaction(params = {}, callback) ⇒ AWS.Request

Starts a new transaction and returns its transaction ID. Transaction IDs are opaque objects that you can use to identify a transaction.

Service Reference:

Examples:

Calling the startTransaction operation

var params = {
  TransactionType: READ_AND_WRITE | READ_ONLY
};
lakeformation.startTransaction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TransactionType — (String)

      Indicates whether this transaction should be read only or read and write. Writes made using a read-only transaction ID will be rejected. Read-only transactions do not need to be committed.

      Possible values include:
      • "READ_AND_WRITE"
      • "READ_ONLY"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TransactionId — (String)

        An opaque identifier for the transaction.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateDataCellsFilter(params = {}, callback) ⇒ AWS.Request

Updates a data cell filter.

Service Reference:

Examples:

Calling the updateDataCellsFilter operation

var params = {
  TableData: { /* required */
    DatabaseName: 'STRING_VALUE', /* required */
    Name: 'STRING_VALUE', /* required */
    TableCatalogId: 'STRING_VALUE', /* required */
    TableName: 'STRING_VALUE', /* required */
    ColumnNames: [
      'STRING_VALUE',
      /* more items */
    ],
    ColumnWildcard: {
      ExcludedColumnNames: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    RowFilter: {
      AllRowsWildcard: {
      },
      FilterExpression: 'STRING_VALUE'
    },
    VersionId: 'STRING_VALUE'
  }
};
lakeformation.updateDataCellsFilter(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TableData — (map)

      A DataCellsFilter structure containing information about the data cells filter.

      • TableCatalogIdrequired — (String)

        The ID of the catalog to which the table belongs.

      • DatabaseNamerequired — (String)

        A database in the Glue Data Catalog.

      • TableNamerequired — (String)

        A table in the database.

      • Namerequired — (String)

        The name given by the user to the data filter cell.

      • RowFilter — (map)

        A PartiQL predicate.

        • FilterExpression — (String)

          A filter expression.

        • AllRowsWildcard — (map)

          A wildcard for all rows.

      • ColumnNames — (Array<String>)

        A list of column names and/or nested column attributes. When specifying nested attributes, use a qualified dot (.) delimited format such as "address"."zip". Nested attributes within this list may not exceed a depth of 5.

      • ColumnWildcard — (map)

        A wildcard with exclusions.

        You must specify either a ColumnNames list or the ColumnWildCard.

        • ExcludedColumnNames — (Array<String>)

          Excludes column names. Any column with this name will be excluded.

      • VersionId — (String)

        The ID of the data cells filter version.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateLakeFormationIdentityCenterConfiguration(params = {}, callback) ⇒ AWS.Request

Updates the IAM Identity Center connection parameters.

Examples:

Calling the updateLakeFormationIdentityCenterConfiguration operation

var params = {
  ApplicationStatus: ENABLED | DISABLED,
  CatalogId: 'STRING_VALUE',
  ExternalFiltering: {
    AuthorizedTargets: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    Status: ENABLED | DISABLED /* required */
  },
  ShareRecipients: [
    {
      DataLakePrincipalIdentifier: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lakeformation.updateLakeFormationIdentityCenterConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, view definitions, and other control information to manage your Lake Formation environment.

    • ShareRecipients — (Array<map>)

      A list of Amazon Web Services account IDs or Amazon Web Services organization/organizational unit ARNs that are allowed to access to access data managed by Lake Formation.

      If the ShareRecipients list includes valid values, then the resource share is updated with the principals you want to have access to the resources.

      If the ShareRecipients value is null, both the list of share recipients and the resource share remain unchanged.

      If the ShareRecipients value is an empty list, then the existing share recipients list will be cleared, and the resource share will be deleted.

      • DataLakePrincipalIdentifier — (String)

        An identifier for the Lake Formation principal.

    • ApplicationStatus — (String)

      Allows to enable or disable the IAM Identity Center connection.

      Possible values include:
      • "ENABLED"
      • "DISABLED"
    • ExternalFiltering — (map)

      A list of the account IDs of Amazon Web Services accounts of third-party applications that are allowed to access data managed by Lake Formation.

      • Statusrequired — (String)

        Allows to enable or disable the third-party applications that are allowed to access data managed by Lake Formation.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
      • AuthorizedTargetsrequired — (Array<String>)

        List of third-party application ARNs integrated with Lake Formation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateLFTag(params = {}, callback) ⇒ AWS.Request

Updates the list of possible values for the specified LF-tag key. If the LF-tag does not exist, the operation throws an EntityNotFoundException. The values in the delete key values will be deleted from list of possible values. If any value in the delete key values is attached to a resource, then API errors out with a 400 Exception - "Update not allowed". Untag the attribute before deleting the LF-tag key's value.

Service Reference:

Examples:

Calling the updateLFTag operation

var params = {
  TagKey: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE',
  TagValuesToAdd: [
    'STRING_VALUE',
    /* more items */
  ],
  TagValuesToDelete: [
    'STRING_VALUE',
    /* more items */
  ]
};
lakeformation.updateLFTag(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

    • TagKey — (String)

      The key-name for the LF-tag for which to add or delete values.

    • TagValuesToDelete — (Array<String>)

      A list of LF-tag values to delete from the LF-tag.

    • TagValuesToAdd — (Array<String>)

      A list of LF-tag values to add from the LF-tag.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateResource(params = {}, callback) ⇒ AWS.Request

Updates the data access role used for vending access to the given (registered) resource in Lake Formation.

Service Reference:

Examples:

Calling the updateResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  RoleArn: 'STRING_VALUE', /* required */
  HybridAccessEnabled: true || false,
  WithFederation: true || false
};
lakeformation.updateResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • RoleArn — (String)

      The new role to use for the given resource registered in Lake Formation.

    • ResourceArn — (String)

      The resource ARN.

    • WithFederation — (Boolean)

      Whether or not the resource is a federated resource.

    • HybridAccessEnabled — (Boolean)

      Specifies whether the data access of tables pointing to the location can be managed by both Lake Formation permissions as well as Amazon S3 bucket policies.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateTableObjects(params = {}, callback) ⇒ AWS.Request

Updates the manifest of Amazon S3 objects that make up the specified governed table.

Service Reference:

Examples:

Calling the updateTableObjects operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  TableName: 'STRING_VALUE', /* required */
  WriteOperations: [ /* required */
    {
      AddObject: {
        ETag: 'STRING_VALUE', /* required */
        Size: 'NUMBER_VALUE', /* required */
        Uri: 'STRING_VALUE', /* required */
        PartitionValues: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      DeleteObject: {
        Uri: 'STRING_VALUE', /* required */
        ETag: 'STRING_VALUE',
        PartitionValues: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    /* more items */
  ],
  CatalogId: 'STRING_VALUE',
  TransactionId: 'STRING_VALUE'
};
lakeformation.updateTableObjects(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The catalog containing the governed table to update. Defaults to the caller’s account ID.

    • DatabaseName — (String)

      The database containing the governed table to update.

    • TableName — (String)

      The governed table to update.

    • TransactionId — (String)

      The transaction at which to do the write.

    • WriteOperations — (Array<map>)

      A list of WriteOperation objects that define an object to add to or delete from the manifest for a governed table.

      • AddObject — (map)

        A new object to add to the governed table.

        • Urirequired — (String)

          The Amazon S3 location of the object.

        • ETagrequired — (String)

          The Amazon S3 ETag of the object. Returned by GetTableObjects for validation and used to identify changes to the underlying data.

        • Sizerequired — (Integer)

          The size of the Amazon S3 object in bytes.

        • PartitionValues — (Array<String>)

          A list of partition values for the object. A value must be specified for each partition key associated with the table.

          The supported data types are integer, long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd HH:mm:ss"), string and decimal.

      • DeleteObject — (map)

        An object to delete from the governed table.

        • Urirequired — (String)

          The Amazon S3 location of the object to delete.

        • ETag — (String)

          The Amazon S3 ETag of the object. Returned by GetTableObjects for validation and used to identify changes to the underlying data.

        • PartitionValues — (Array<String>)

          A list of partition values for the object. A value must be specified for each partition key associated with the governed table.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateTableStorageOptimizer(params = {}, callback) ⇒ AWS.Request

Updates the configuration of the storage optimizers for a table.

Service Reference:

Examples:

Calling the updateTableStorageOptimizer operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  StorageOptimizerConfig: { /* required */
    '<OptimizerType>': {
      '<StorageOptimizerConfigKey>': 'STRING_VALUE',
      /* '<StorageOptimizerConfigKey>': ... */
    },
    /* '<OptimizerType>': ... */
  },
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
lakeformation.updateTableStorageOptimizer(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The Catalog ID of the table.

    • DatabaseName — (String)

      Name of the database where the table is present.

    • TableName — (String)

      Name of the table for which to enable the storage optimizer.

    • StorageOptimizerConfig — (map<map<String>>)

      Name of the table for which to enable the storage optimizer.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Result — (String)

        A response indicating the success of failure of the operation.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.