agent-claw: automated task changes
This commit is contained in:
13
cdk/node_modules/aws-cdk-lib/aws-lakeformation/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/aws-lakeformation/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.services.lakeformation"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.AWS.LakeFormation"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.aws_lakeformation"
|
||||
}
|
||||
}
|
||||
}
|
||||
107
cdk/node_modules/aws-cdk-lib/aws-lakeformation/README.md
generated
vendored
Normal file
107
cdk/node_modules/aws-cdk-lib/aws-lakeformation/README.md
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
# AWS::LakeFormation Construct Library
|
||||
|
||||
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
||||
|
||||
```ts nofixture
|
||||
import * as lakeformation from 'aws-cdk-lib/aws-lakeformation';
|
||||
```
|
||||
|
||||
<!--BEGIN CFNONLY DISCLAIMER-->
|
||||
|
||||
There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:
|
||||
|
||||
- Search [Construct Hub for LakeFormation construct libraries](https://constructs.dev/search?q=lakeformation)
|
||||
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::LakeFormation resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_LakeFormation.html) directly.
|
||||
|
||||
<!--BEGIN CFNONLY DISCLAIMER-->
|
||||
|
||||
There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
|
||||
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.
|
||||
|
||||
For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::LakeFormation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_LakeFormation.html).
|
||||
|
||||
(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)
|
||||
|
||||
<!--END CFNONLY DISCLAIMER-->
|
||||
|
||||
## Example
|
||||
|
||||
Here is an example of creating a glue table and putting lakeformation tags on it. Note: this example uses deprecated constructs and overly permissive IAM roles. This example is meant to give a general idea of using the L1s; it is not production level.
|
||||
|
||||
```ts
|
||||
import * as cdk from 'aws-cdk-lib';
|
||||
import { S3Table, Database, DataFormat, Schema } from '@aws-cdk/aws-glue-alpha';
|
||||
import { CfnDataLakeSettings, CfnTag, CfnTagAssociation } from 'aws-cdk-lib/aws-lakeformation';
|
||||
|
||||
declare const stack: cdk.Stack;
|
||||
declare const accountId: string;
|
||||
|
||||
const tagKey = 'aws';
|
||||
const tagValues = ['dev'];
|
||||
|
||||
const database = new Database(this, 'Database');
|
||||
|
||||
const table = new S3Table(this, 'Table', {
|
||||
database,
|
||||
columns: [
|
||||
{
|
||||
name: 'col1',
|
||||
type: Schema.STRING,
|
||||
},
|
||||
{
|
||||
name: 'col2',
|
||||
type: Schema.STRING,
|
||||
}
|
||||
],
|
||||
dataFormat: DataFormat.CSV,
|
||||
});
|
||||
|
||||
const synthesizer = stack.synthesizer as cdk.DefaultStackSynthesizer;
|
||||
new CfnDataLakeSettings(this, 'DataLakeSettings', {
|
||||
admins: [
|
||||
{
|
||||
dataLakePrincipalIdentifier: stack.formatArn({
|
||||
service: 'iam',
|
||||
resource: 'role',
|
||||
region: '',
|
||||
account: accountId,
|
||||
resourceName: 'Admin',
|
||||
}),
|
||||
},
|
||||
{
|
||||
// The CDK cloudformation execution role.
|
||||
dataLakePrincipalIdentifier: synthesizer.cloudFormationExecutionRoleArn.replace('${AWS::Partition}', 'aws'),
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
const tag = new CfnTag(this, 'Tag', {
|
||||
catalogId: accountId,
|
||||
tagKey,
|
||||
tagValues,
|
||||
});
|
||||
|
||||
const lfTagPairProperty: CfnTagAssociation.LFTagPairProperty = {
|
||||
catalogId: accountId,
|
||||
tagKey,
|
||||
tagValues,
|
||||
};
|
||||
|
||||
const tagAssociation = new CfnTagAssociation(this, 'TagAssociation', {
|
||||
lfTags: [lfTagPairProperty],
|
||||
resource: {
|
||||
tableWithColumns: {
|
||||
databaseName: database.databaseName,
|
||||
columnNames: ['col1', 'col2'],
|
||||
catalogId: accountId,
|
||||
name: table.tableName,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
tagAssociation.node.addDependency(tag);
|
||||
tagAssociation.node.addDependency(table);
|
||||
|
||||
```
|
||||
|
||||
Additionally, you may need to use the lakeformation console to give permissions, particularly to give the cdk-exec-role tagging permissions.
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-lakeformation/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-lakeformation/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-lakeformation/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-lakeformation/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnDataCellsFilter=void 0,Object.defineProperty(exports,_noFold="CfnDataCellsFilter",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnDataCellsFilter;return Object.defineProperty(exports,_noFold="CfnDataCellsFilter",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnDataLakeSettings=void 0,Object.defineProperty(exports,_noFold="CfnDataLakeSettings",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnDataLakeSettings;return Object.defineProperty(exports,_noFold="CfnDataLakeSettings",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnPermissions=void 0,Object.defineProperty(exports,_noFold="CfnPermissions",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnPermissions;return Object.defineProperty(exports,_noFold="CfnPermissions",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnPrincipalPermissions=void 0,Object.defineProperty(exports,_noFold="CfnPrincipalPermissions",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnPrincipalPermissions;return Object.defineProperty(exports,_noFold="CfnPrincipalPermissions",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnResource=void 0,Object.defineProperty(exports,_noFold="CfnResource",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnResource;return Object.defineProperty(exports,_noFold="CfnResource",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnTag=void 0,Object.defineProperty(exports,_noFold="CfnTag",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnTag;return Object.defineProperty(exports,_noFold="CfnTag",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnTagAssociation=void 0,Object.defineProperty(exports,_noFold="CfnTagAssociation",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").CfnTagAssociation;return Object.defineProperty(exports,_noFold="CfnTagAssociation",{enumerable:!0,configurable:!0,value}),value}});
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-lakeformation/lib/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-lakeformation/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lakeformation.generated';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-lakeformation/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-lakeformation/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.CfnDataCellsFilter=void 0,Object.defineProperty(exports,_noFold="CfnDataCellsFilter",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lakeformation.generated").CfnDataCellsFilter;return Object.defineProperty(exports,_noFold="CfnDataCellsFilter",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnDataLakeSettings=void 0,Object.defineProperty(exports,_noFold="CfnDataLakeSettings",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lakeformation.generated").CfnDataLakeSettings;return Object.defineProperty(exports,_noFold="CfnDataLakeSettings",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnPermissions=void 0,Object.defineProperty(exports,_noFold="CfnPermissions",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lakeformation.generated").CfnPermissions;return Object.defineProperty(exports,_noFold="CfnPermissions",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnPrincipalPermissions=void 0,Object.defineProperty(exports,_noFold="CfnPrincipalPermissions",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lakeformation.generated").CfnPrincipalPermissions;return Object.defineProperty(exports,_noFold="CfnPrincipalPermissions",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnResource=void 0,Object.defineProperty(exports,_noFold="CfnResource",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lakeformation.generated").CfnResource;return Object.defineProperty(exports,_noFold="CfnResource",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnTag=void 0,Object.defineProperty(exports,_noFold="CfnTag",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lakeformation.generated").CfnTag;return Object.defineProperty(exports,_noFold="CfnTag",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnTagAssociation=void 0,Object.defineProperty(exports,_noFold="CfnTagAssociation",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lakeformation.generated").CfnTagAssociation;return Object.defineProperty(exports,_noFold="CfnTagAssociation",{enumerable:!0,configurable:!0,value}),value}});
|
||||
1980
cdk/node_modules/aws-cdk-lib/aws-lakeformation/lib/lakeformation.generated.d.ts
generated
vendored
Normal file
1980
cdk/node_modules/aws-cdk-lib/aws-lakeformation/lib/lakeformation.generated.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
cdk/node_modules/aws-cdk-lib/aws-lakeformation/lib/lakeformation.generated.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-lakeformation/lib/lakeformation.generated.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user