Skip to main content

data_lakes

Creates, updates, deletes or gets a data_lake resource or lists data_lakes in a region

Overview

Namedata_lakes
TypeResource
DescriptionResource Type definition for AWS::SecurityLake::DataLake
Idawscc.securitylake.data_lakes

Fields

NameDatatypeDescription
encryption_configurationobjectProvides encryption details of Amazon Security Lake object.
lifecycle_configurationobjectProvides lifecycle details of Amazon Security Lake object.
replication_configurationobjectProvides replication details of Amazon Security Lake object.
meta_store_manager_role_arnstringThe Amazon Resource Name (ARN) used to index AWS Glue table partitions that are generated by the ingestion and normalization of AWS log sources and custom sources.
tagsarray
arnstringThe Amazon Resource Name (ARN) created by you to provide to the subscriber.
s3_bucket_arnstringThe ARN for the Amazon Security Lake Amazon S3 bucket.
regionstringAWS region.

For more information, see AWS::SecurityLake::DataLake.

Methods

NameResourceAccessible byRequired Params
create_resourcedata_lakesINSERTregion
delete_resourcedata_lakesDELETEIdentifier, region
update_resourcedata_lakesUPDATEIdentifier, PatchDocument, region
list_resourcesdata_lakes_list_onlySELECTregion
get_resourcedata_lakesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual data_lake.

SELECT
region,
encryption_configuration,
lifecycle_configuration,
replication_configuration,
meta_store_manager_role_arn,
tags,
arn,
s3_bucket_arn
FROM awscc.securitylake.data_lakes
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new data_lake resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.securitylake.data_lakes (
EncryptionConfiguration,
LifecycleConfiguration,
ReplicationConfiguration,
MetaStoreManagerRoleArn,
Tags,
region
)
SELECT
'{{ encryption_configuration }}',
'{{ lifecycle_configuration }}',
'{{ replication_configuration }}',
'{{ meta_store_manager_role_arn }}',
'{{ tags }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a data_lake resource, using stack-deploy.

/*+ update */
UPDATE awscc.securitylake.data_lakes
SET PatchDocument = string('{{ {
"EncryptionConfiguration": encryption_configuration,
"LifecycleConfiguration": lifecycle_configuration,
"ReplicationConfiguration": replication_configuration,
"MetaStoreManagerRoleArn": meta_store_manager_role_arn,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.securitylake.data_lakes
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

To operate on the data_lakes resource, the following permissions are required:

events:*,
iam:CreateServiceLinkedRole,
iam:GetRole,
iam:ListAttachedRolePolicies,
iam:PutRolePolicy,
iam:PassRole,
glue:*,
organizations:*,
kms:DescribeKey,
kms:CreateGrant,
lakeformation:*,
lambda:*,
s3:*,
securitylake:CreateDataLake,
securitylake:TagResource,
securitylake:List*,
sqs:*