Class: AWS.LakeFormation
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.LakeFormation
- 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 AWS Lake Formation service.
Sending a Request Using LakeFormation
var lakeformation = new AWS.LakeFormation();
lakeformation.batchGrantPermissions(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
-
new AWS.LakeFormation(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
batchGrantPermissions(params = {}, callback) ⇒ AWS.Request
Batch operation to grant permissions to the principal.
-
batchRevokePermissions(params = {}, callback) ⇒ AWS.Request
Batch operation to revoke permissions from the principal.
-
deregisterResource(params = {}, callback) ⇒ AWS.Request
Deregisters the resource as managed by the Data Catalog.
-
describeResource(params = {}, callback) ⇒ AWS.Request
Retrieves the current data access role for the given resource registered in AWS Lake Formation.
-
getDataLakeSettings(params = {}, callback) ⇒ AWS.Request
Retrieves the list of the data lake administrators of a Lake Formation-managed data lake.
-
getEffectivePermissionsForPath(params = {}, callback) ⇒ AWS.Request
Returns the Lake Formation permissions for a specified table or database resource located at a path in Amazon S3.
-
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.
-
listPermissions(params = {}, callback) ⇒ AWS.Request
Returns a list of the principal permissions on the resource, filtered by the permissions of the caller.
-
listResources(params = {}, callback) ⇒ AWS.Request
Lists the resources registered to be managed by the Data Catalog.
-
putDataLakeSettings(params = {}, callback) ⇒ AWS.Request
Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation.
-
registerResource(params = {}, callback) ⇒ AWS.Request
Registers the resource as managed by the Data Catalog.
-
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.
-
updateResource(params = {}, callback) ⇒ AWS.Request
Updates the data access role used for vending access to the given (registered) resource in AWS Lake Formation.
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.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
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 totrue
. -
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'.
Property Details
Method Details
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,
/* more items */
],
PermissionsWithGrantOption: [
ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS,
/* more items */
],
Principal: {
DataLakePrincipalIdentifier: 'STRING_VALUE'
},
Resource: {
Catalog: {
},
DataLocation: {
ResourceArn: 'STRING_VALUE', /* required */
CatalogId: 'STRING_VALUE'
},
Database: {
Name: 'STRING_VALUE', /* 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 AWS 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.
Id
— required — (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 AWS 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 AWS 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.
Name
— required — (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.
DatabaseName
— required — (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
orTableResource$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.
DatabaseName
— required — (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.
Name
— required — (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
orColumnWildcard
is required.ColumnWildcard
— (map
)A wildcard specified by a
ColumnWildcard
object. At least one ofColumnNames
orColumnWildcard
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 AWS Lake Formation. By default, it is the account ID of the caller.
ResourceArn
— required — (String
)The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
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. Thedata
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.
Id
— required — (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 AWS 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 AWS 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.
Name
— required — (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.
DatabaseName
— required — (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
orTableResource$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.
DatabaseName
— required — (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.
Name
— required — (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
orColumnWildcard
is required.ColumnWildcard
— (map
)A wildcard specified by a
ColumnWildcard
object. At least one ofColumnNames
orColumnWildcard
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 AWS Lake Formation. By default, it is the account ID of the caller.
ResourceArn
— required — (String
)The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
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.
-
(AWS.Response)
—
Returns:
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,
/* more items */
],
PermissionsWithGrantOption: [
ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS,
/* more items */
],
Principal: {
DataLakePrincipalIdentifier: 'STRING_VALUE'
},
Resource: {
Catalog: {
},
DataLocation: {
ResourceArn: 'STRING_VALUE', /* required */
CatalogId: 'STRING_VALUE'
},
Database: {
Name: 'STRING_VALUE', /* 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 AWS 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.
Id
— required — (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 AWS 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 AWS 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.
Name
— required — (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.
DatabaseName
— required — (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
orTableResource$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.
DatabaseName
— required — (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.
Name
— required — (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
orColumnWildcard
is required.ColumnWildcard
— (map
)A wildcard specified by a
ColumnWildcard
object. At least one ofColumnNames
orColumnWildcard
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 AWS Lake Formation. By default, it is the account ID of the caller.
ResourceArn
— required — (String
)The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
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. Thedata
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.
Id
— required — (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 AWS 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 AWS 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.
Name
— required — (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.
DatabaseName
— required — (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
orTableResource$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.
DatabaseName
— required — (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.
Name
— required — (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
orColumnWildcard
is required.ColumnWildcard
— (map
)A wildcard specified by a
ColumnWildcard
object. At least one ofColumnNames
orColumnWildcard
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 AWS Lake Formation. By default, it is the account ID of the caller.
ResourceArn
— required — (String
)The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
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.
-
(AWS.Response)
—
Returns:
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.
-
(AWS.Response)
—
Returns:
describeResource(params = {}, callback) ⇒ AWS.Request
Retrieves the current data access role for the given resource registered in AWS 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. Thedata
object has the following properties:ResourceInfo
— (map
)A structure containing information about an AWS 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.
-
(AWS.Response)
—
Returns:
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 AWS 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. Thedata
object has the following properties:DataLakeSettings
— (map
)A structure representing a list of AWS Lake Formation principals designated as data lake administrators.
DataLakeAdmins
— (Array<map>
)A list of AWS Lake Formation principals. Supported principals are IAM users or IAM roles.
DataLakePrincipalIdentifier
— (String
)An identifier for the AWS Lake Formation principal.
CreateDatabaseDefaultPermissions
— (Array<map>
)A structure representing a list of up to three principal permissions entries for default create database permissions.
Principal
— (map
)The principal who is granted permissions.
DataLakePrincipalIdentifier
— (String
)An identifier for the AWS Lake Formation principal.
Permissions
— (Array<String>
)The permissions that are granted to the principal.
CreateTableDefaultPermissions
— (Array<map>
)A structure representing a list of up to three principal permissions entries for default create table permissions.
Principal
— (map
)The principal who is granted permissions.
DataLakePrincipalIdentifier
— (String
)An identifier for the AWS Lake Formation principal.
Permissions
— (Array<String>
)The permissions that are granted to the principal.
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 AWS CloudTrail log.
You may want to specify this property when you are in a high-trust boundary, such as the same team or company.
-
(AWS.Response)
—
Returns:
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 AWS 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. Thedata
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 AWS 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 AWS 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.
Name
— required — (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.
DatabaseName
— required — (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
orTableResource$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.
DatabaseName
— required — (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.
Name
— required — (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
orColumnWildcard
is required.ColumnWildcard
— (map
)A wildcard specified by a
ColumnWildcard
object. At least one ofColumnNames
orColumnWildcard
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 AWS Lake Formation. By default, it is the account ID of the caller.
ResourceArn
— required — (String
)The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
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 share resource ARN.ResourceShare
— (Array<String>
)A share resource ARN for a catalog resource shared through AWS Resource Access Manager (AWS RAM).
NextToken
— (String
)A continuation token, if this is not the first call to retrieve this list.
-
(AWS.Response)
—
Returns:
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,
/* more items */
],
Principal: { /* required */
DataLakePrincipalIdentifier: 'STRING_VALUE'
},
Resource: { /* required */
Catalog: {
},
DataLocation: {
ResourceArn: 'STRING_VALUE', /* required */
CatalogId: 'STRING_VALUE'
},
Database: {
Name: 'STRING_VALUE', /* 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,
/* 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 AWS 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 AWS Lake Formation principal.
Resource
— (map
)The resource to which permissions are to be granted. Resources in AWS 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 AWS 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.
Name
— required — (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.
DatabaseName
— required — (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
orTableResource$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.
DatabaseName
— required — (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.
Name
— required — (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
orColumnWildcard
is required.ColumnWildcard
— (map
)A wildcard specified by a
ColumnWildcard
object. At least one ofColumnNames
orColumnWildcard
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 AWS Lake Formation. By default, it is the account ID of the caller.
ResourceArn
— required — (String
)The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
Permissions
— (Array<String>
)The permissions granted to the principal on the resource. AWS 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. AWS Lake Formation requires that each principal be authorized to perform a specific task on AWS 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.
-
(AWS.Response)
—
Returns:
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',
MaxResults: 'NUMBER_VALUE',
NextToken: 'STRING_VALUE',
Principal: {
DataLakePrincipalIdentifier: 'STRING_VALUE'
},
Resource: {
Catalog: {
},
DataLocation: {
ResourceArn: 'STRING_VALUE', /* required */
CatalogId: 'STRING_VALUE'
},
Database: {
Name: 'STRING_VALUE', /* 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
};
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 AWS Lake Formation environment.
Principal
— (map
)Specifies a principal to filter the permissions returned.
DataLakePrincipalIdentifier
— (String
)An identifier for the AWS Lake Formation principal.
ResourceType
— (String
)Specifies a resource type to filter the permissions returned.
Possible values include:"CATALOG"
"DATABASE"
"TABLE"
"DATA_LOCATION"
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 AWS 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.
Name
— required — (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.
DatabaseName
— required — (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
orTableResource$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.
DatabaseName
— required — (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.
Name
— required — (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
orColumnWildcard
is required.ColumnWildcard
— (map
)A wildcard specified by a
ColumnWildcard
object. At least one ofColumnNames
orColumnWildcard
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 AWS Lake Formation. By default, it is the account ID of the caller.
ResourceArn
— required — (String
)The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
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. Thedata
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 AWS 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 AWS 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.
Name
— required — (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.
DatabaseName
— required — (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
orTableResource$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.
DatabaseName
— required — (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.
Name
— required — (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
orColumnWildcard
is required.ColumnWildcard
— (map
)A wildcard specified by a
ColumnWildcard
object. At least one ofColumnNames
orColumnWildcard
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 AWS Lake Formation. By default, it is the account ID of the caller.
ResourceArn
— required — (String
)The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
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 share resource ARN.ResourceShare
— (Array<String>
)A share resource ARN for a catalog resource shared through AWS Resource Access Manager (AWS RAM).
NextToken
— (String
)A continuation token, if this is not the first call to retrieve this list.
-
(AWS.Response)
—
Returns:
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. Thedata
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.
NextToken
— (String
)A continuation token, if this is not the first call to retrieve these resources.
-
(AWS.Response)
—
Returns:
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 */
CreateDatabaseDefaultPermissions: [
{
Permissions: [
ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS,
/* more items */
],
Principal: {
DataLakePrincipalIdentifier: 'STRING_VALUE'
}
},
/* more items */
],
CreateTableDefaultPermissions: [
{
Permissions: [
ALL | SELECT | ALTER | DROP | DELETE | INSERT | DESCRIBE | CREATE_DATABASE | CREATE_TABLE | DATA_LOCATION_ACCESS,
/* more items */
],
Principal: {
DataLakePrincipalIdentifier: 'STRING_VALUE'
}
},
/* more items */
],
DataLakeAdmins: [
{
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 AWS Lake Formation environment.
DataLakeSettings
— (map
)A structure representing a list of AWS Lake Formation principals designated as data lake administrators.
DataLakeAdmins
— (Array<map>
)A list of AWS Lake Formation principals. Supported principals are IAM users or IAM roles.
DataLakePrincipalIdentifier
— (String
)An identifier for the AWS Lake Formation principal.
CreateDatabaseDefaultPermissions
— (Array<map>
)A structure representing a list of up to three principal permissions entries for default create database permissions.
Principal
— (map
)The principal who is granted permissions.
DataLakePrincipalIdentifier
— (String
)An identifier for the AWS Lake Formation principal.
Permissions
— (Array<String>
)The permissions that are granted to the principal.
CreateTableDefaultPermissions
— (Array<map>
)A structure representing a list of up to three principal permissions entries for default create table permissions.
Principal
— (map
)The principal who is granted permissions.
DataLakePrincipalIdentifier
— (String
)An identifier for the AWS Lake Formation principal.
Permissions
— (Array<String>
)The permissions that are granted to the principal.
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 AWS CloudTrail log.
You may want to specify this property when you are in a high-trust boundary, such as the same team or company.
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.
-
(AWS.Response)
—
Returns:
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 AWS 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 */
RoleArn: 'STRING_VALUE',
UseServiceLinkedRole: 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 AWS 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.
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.
-
(AWS.Response)
—
Returns:
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,
/* more items */
],
Principal: { /* required */
DataLakePrincipalIdentifier: 'STRING_VALUE'
},
Resource: { /* required */
Catalog: {
},
DataLocation: {
ResourceArn: 'STRING_VALUE', /* required */
CatalogId: 'STRING_VALUE'
},
Database: {
Name: 'STRING_VALUE', /* 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,
/* 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 AWS Lake Formation environment.
Principal
— (map
)The principal to be revoked permissions on the resource.
DataLakePrincipalIdentifier
— (String
)An identifier for the AWS 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 AWS 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.
Name
— required — (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.
DatabaseName
— required — (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
orTableResource$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.
DatabaseName
— required — (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.
Name
— required — (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
orColumnWildcard
is required.ColumnWildcard
— (map
)A wildcard specified by a
ColumnWildcard
object. At least one ofColumnNames
orColumnWildcard
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 AWS Lake Formation. By default, it is the account ID of the caller.
ResourceArn
— required — (String
)The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
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.
-
(AWS.Response)
—
Returns:
updateResource(params = {}, callback) ⇒ AWS.Request
Updates the data access role used for vending access to the given (registered) resource in AWS Lake Formation.
Service Reference:
Examples:
Calling the updateResource operation
var params = {
ResourceArn: 'STRING_VALUE', /* required */
RoleArn: 'STRING_VALUE' /* required */
};
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 AWS Lake Formation.
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.
-
(AWS.Response)
—
Returns: