Apply Mapping field.
import { ApplyMappingField } from 'cdk-glue-job-builder'
const applyMappingField: ApplyMappingField = { ... }
Name | Type | Description |
---|---|---|
source |
@aws-cdk/aws-glue-alpha.Column |
Source field. |
target |
@aws-cdk/aws-glue-alpha.Column |
Target field. |
public readonly source: Column;
- Type: @aws-cdk/aws-glue-alpha.Column
Source field.
public readonly target: Column;
- Type: @aws-cdk/aws-glue-alpha.Column
Target field.
Props of ApplyMapping.
import { ApplyMappingProps } from 'cdk-glue-job-builder'
const applyMappingProps: ApplyMappingProps = { ... }
Name | Type | Description |
---|---|---|
mappings |
ApplyMappingField[] |
Field you want to select. |
name |
string |
The node name. |
public readonly mappings: ApplyMappingField[];
- Type: ApplyMappingField[]
Field you want to select.
public readonly name: string;
- Type: string
- Default: 'Apply Mapping'
The node name.
Props of CatalogSource.
import { CatalogSourceProps } from 'cdk-glue-job-builder'
const catalogSourceProps: CatalogSourceProps = { ... }
Name | Type | Description |
---|---|---|
database |
@aws-cdk/aws-glue-alpha.IDatabase |
The database to read from. |
table |
@aws-cdk/aws-glue-alpha.ITable |
The table in the database to read from. |
granter |
IGranter |
Granter the necessary authorization to a node. |
name |
string |
The name of your data source. |
public readonly database: IDatabase;
- Type: @aws-cdk/aws-glue-alpha.IDatabase
The database to read from.
public readonly table: ITable;
- Type: @aws-cdk/aws-glue-alpha.ITable
The table in the database to read from.
public readonly granter: IGranter;
- Type: IGranter
Granter the necessary authorization to a node.
public readonly name: string;
- Type: string
- Default: 'AWS Glue Data Catalog'
The name of your data source.
Props of CatalogTarget.
import { CatalogTargetProps } from 'cdk-glue-job-builder'
const catalogTargetProps: CatalogTargetProps = { ... }
Name | Type | Description |
---|---|---|
database |
@aws-cdk/aws-glue-alpha.IDatabase |
The database that contains the table you want to use as the target. |
table |
@aws-cdk/aws-glue-alpha.ITable |
The table that defines the schema of your output data. |
granter |
IGranter |
Granter the necessary authorization to a node. |
name |
string |
The name of the data target. |
public readonly database: IDatabase;
- Type: @aws-cdk/aws-glue-alpha.IDatabase
The database that contains the table you want to use as the target.
This database must already exist in the Data Catalog.
public readonly table: ITable;
- Type: @aws-cdk/aws-glue-alpha.ITable
The table that defines the schema of your output data.
This table must already exist in the Data Catalog.
public readonly granter: IGranter;
- Type: IGranter
Granter the necessary authorization to a node.
public readonly name: string;
- Type: string
- Default: 'AWS Glue Data Catalog'
The name of the data target.
Fragment of code.
import { CodeFragment } from 'cdk-glue-job-builder'
const codeFragment: CodeFragment = { ... }
Name | Type | Description |
---|---|---|
body |
string[] |
The body is output between the head and tail sections. |
head |
string[] |
Set the code to be written between the import section and body. |
imports |
string[] |
Import section of CodeFragment. |
tail |
string[] |
The tail is output just before job.commit(). |
public readonly body: string[];
- Type: string[]
- Default: No body codes.
The body is output between the head and tail sections.
The ETL is written here.
public readonly head: string[];
- Type: string[]
- Default: No head codes.
Set the code to be written between the import section and body.
Functions must be defined here.
public readonly imports: string[];
- Type: string[]
- Default: No imports.
Import section of CodeFragment.
public readonly tail: string[];
- Type: string[]
- Default: No tail codes.
The tail is output just before job.commit().
Props of DropFields.
import { DropFieldsProps } from 'cdk-glue-job-builder'
const dropFieldsProps: DropFieldsProps = { ... }
Name | Type | Description |
---|---|---|
fields |
string[] |
Field you want to drop. |
name |
string |
The node name. |
public readonly fields: string[];
- Type: string[]
Field you want to drop.
public readonly name: string;
- Type: string
- Default: 'Drop Fields'
The node name.
Props of DropNullFields.
import { DropNullFieldsProps } from 'cdk-glue-job-builder'
const dropNullFieldsProps: DropNullFieldsProps = { ... }
Name | Type | Description |
---|---|---|
fields |
RepresentNullValue[] |
Field you want to drop. |
name |
string |
The node name. |
public readonly fields: RepresentNullValue[];
- Type: RepresentNullValue[]
Field you want to drop.
Example
Transform.dropNullFields({
fields: [
RepresentNullValue.emptyString(),
RepresentNullValue.nullString(),
]
})
public readonly name: string;
- Type: string
- Default: 'Drop Null Fields'
The node name.
Props of S3CatalogSource.
import { S3CatalogSourceProps } from 'cdk-glue-job-builder'
const s3CatalogSourceProps: S3CatalogSourceProps = { ... }
Name | Type | Description |
---|---|---|
bucket |
aws-cdk-lib.aws_s3.IBucket |
The bucket of table. |
database |
@aws-cdk/aws-glue-alpha.IDatabase |
The database to read from. |
table |
@aws-cdk/aws-glue-alpha.ITable |
The table in the database to read from. |
name |
string |
The name of your data source. |
public readonly bucket: IBucket;
- Type: aws-cdk-lib.aws_s3.IBucket
The bucket of table.
public readonly database: IDatabase;
- Type: @aws-cdk/aws-glue-alpha.IDatabase
The database to read from.
public readonly table: ITable;
- Type: @aws-cdk/aws-glue-alpha.ITable
The table in the database to read from.
public readonly name: string;
- Type: string
- Default: 'Amazon S3'
The name of your data source.
Props of S3CatalogTarget.
import { S3CatalogTargetProps } from 'cdk-glue-job-builder'
const s3CatalogTargetProps: S3CatalogTargetProps = { ... }
Name | Type | Description |
---|---|---|
bucket |
aws-cdk-lib.aws_s3.IBucket |
The bucket of table. |
database |
@aws-cdk/aws-glue-alpha.IDatabase |
The database that contains the table you want to use as the target. |
table |
@aws-cdk/aws-glue-alpha.ITable |
The table that defines the schema of your output data. |
name |
string |
The name of your data source. |
public readonly bucket: IBucket;
- Type: aws-cdk-lib.aws_s3.IBucket
The bucket of table.
public readonly database: IDatabase;
- Type: @aws-cdk/aws-glue-alpha.IDatabase
The database that contains the table you want to use as the target.
This database must already exist in the Data Catalog.
public readonly table: ITable;
- Type: @aws-cdk/aws-glue-alpha.ITable
The table that defines the schema of your output data.
This table must already exist in the Data Catalog.
public readonly name: string;
- Type: string
- Default: 'Amazon S3'
The name of your data source.
Props of SelectFields.
import { SelectFieldsProps } from 'cdk-glue-job-builder'
const selectFieldsProps: SelectFieldsProps = { ... }
Name | Type | Description |
---|---|---|
fields |
string[] |
Field you want to select. |
name |
string |
The node name. |
public readonly fields: string[];
- Type: string[]
Field you want to select.
public readonly name: string;
- Type: string
- Default: 'Select Fields'
The node name.
Map fields to new names and types of your chice.
import { ApplyMapping } from 'cdk-glue-job-builder'
new ApplyMapping(id: string, props: ApplyMappingProps)
Name | Type | Description |
---|---|---|
id |
string |
No description. |
props |
ApplyMappingProps |
No description. |
- Type: string
- Type: ApplyMappingProps
Name | Description |
---|---|
from |
Chain from previous node. |
grant |
Granting Glue job permissions. |
python |
Build Python code fragment. |
scala |
Build Scala code fragment. |
to |
Chain to the next node. |
public from(node: INode): INode
Chain from previous node.
- Type: INode
public grant(_job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
public python(): CodeFragment
Build Python code fragment.
public scala(): CodeFragment
Build Scala code fragment.
public to(node: INode): INode
Chain to the next node.
- Type: INode
Name | Type | Description |
---|---|---|
inputs |
INode[] |
Input nodes (i.e parent nodes). |
name |
string |
No description. |
nodeId |
string |
ID of node. |
outputs |
INode[] |
Output nodes (i.e child nodes). |
generation |
number |
Generation of node. |
public readonly inputs: INode[];
- Type: INode[]
Input nodes (i.e parent nodes).
public readonly name: string;
- Type: string
public readonly nodeId: string;
- Type: string
ID of node.
public readonly outputs: INode[];
- Type: INode[]
Output nodes (i.e child nodes).
public readonly generation: number;
- Type: number
Generation of node.
Generation of node.
Specifies a data store in the Glue Data Catalog.
import { CatalogSource } from 'cdk-glue-job-builder'
new CatalogSource(id: string, props: CatalogSourceProps)
Name | Type | Description |
---|---|---|
id |
string |
No description. |
props |
CatalogSourceProps |
No description. |
- Type: string
- Type: CatalogSourceProps
Name | Description |
---|---|
from |
Chain from previous node. |
grant |
Granting Glue job permissions. |
python |
Build Python code fragment. |
scala |
Build Scala code fragment. |
to |
Chain to the next node. |
public from(node: INode): INode
Chain from previous node.
- Type: INode
public grant(job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
public python(): CodeFragment
Build Python code fragment.
public scala(): CodeFragment
Build Scala code fragment.
public to(node: INode): INode
Chain to the next node.
- Type: INode
Name | Type | Description |
---|---|---|
inputs |
INode[] |
Input nodes (i.e parent nodes). |
name |
string |
No description. |
nodeId |
string |
ID of node. |
outputs |
INode[] |
Output nodes (i.e child nodes). |
generation |
number |
Generation of node. |
database |
@aws-cdk/aws-glue-alpha.IDatabase |
No description. |
table |
@aws-cdk/aws-glue-alpha.ITable |
No description. |
public readonly inputs: INode[];
- Type: INode[]
Input nodes (i.e parent nodes).
public readonly name: string;
- Type: string
public readonly nodeId: string;
- Type: string
ID of node.
public readonly outputs: INode[];
- Type: INode[]
Output nodes (i.e child nodes).
public readonly generation: number;
- Type: number
Generation of node.
Generation of node.
public readonly database: IDatabase;
- Type: @aws-cdk/aws-glue-alpha.IDatabase
public readonly table: ITable;
- Type: @aws-cdk/aws-glue-alpha.ITable
Specifies a data target that writes to AWS Glue Data Catalog using the Glue Data Catalog.
import { CatalogTarget } from 'cdk-glue-job-builder'
new CatalogTarget(id: string, props: CatalogTargetProps)
Name | Type | Description |
---|---|---|
id |
string |
No description. |
props |
CatalogTargetProps |
No description. |
- Type: string
- Type: CatalogTargetProps
Name | Description |
---|---|
from |
Chain from previous node. |
grant |
Granting Glue job permissions. |
python |
Build Python code fragment. |
scala |
Build Scala code fragment. |
to |
Chain to the next node. |
public from(node: INode): INode
Chain from previous node.
- Type: INode
public grant(job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
public python(): CodeFragment
Build Python code fragment.
public scala(): CodeFragment
Build Scala code fragment.
public to(node: INode): INode
Chain to the next node.
- Type: INode
Name | Type | Description |
---|---|---|
inputs |
INode[] |
Input nodes (i.e parent nodes). |
name |
string |
No description. |
nodeId |
string |
ID of node. |
outputs |
INode[] |
Output nodes (i.e child nodes). |
generation |
number |
Generation of node. |
database |
@aws-cdk/aws-glue-alpha.IDatabase |
No description. |
table |
@aws-cdk/aws-glue-alpha.ITable |
No description. |
public readonly inputs: INode[];
- Type: INode[]
Input nodes (i.e parent nodes).
public readonly name: string;
- Type: string
public readonly nodeId: string;
- Type: string
ID of node.
public readonly outputs: INode[];
- Type: INode[]
Output nodes (i.e child nodes).
public readonly generation: number;
- Type: number
Generation of node.
Generation of node.
public readonly database: IDatabase;
- Type: @aws-cdk/aws-glue-alpha.IDatabase
public readonly table: ITable;
- Type: @aws-cdk/aws-glue-alpha.ITable
import { Codenizer } from 'cdk-glue-job-builder'
new Codenizer()
Name | Type | Description |
---|
Name | Description |
---|---|
python |
No description. |
scala |
No description. |
import { Codenizer } from 'cdk-glue-job-builder'
Codenizer.python(node: INode, bucket?: IBucket, objectKey?: string)
- Type: INode
The Node you want to build.
- Type: aws-cdk-lib.aws_s3.IBucket
- Default: generate a new Bucket
Built code save S3 bucket.
- Type: string
- Default: generate a object key
Built code save S3 object key.
import { Codenizer } from 'cdk-glue-job-builder'
Codenizer.scala(node: INode, bucket?: IBucket, objectKey?: string)
- Type: INode
The Node you want to build.
- Type: aws-cdk-lib.aws_s3.IBucket
- Default: generate a new Bucket
Built code save S3 bucket.
- Type: string
- Default: generate a object key
Built code save S3 object key.
import { CodenizerBase } from 'cdk-glue-job-builder'
new CodenizerBase(node: INode, bucket?: IBucket, objectKey?: string)
Name | Type | Description |
---|---|---|
node |
INode |
The Node you want to build. |
bucket |
aws-cdk-lib.aws_s3.IBucket |
Built code save S3 bucket. |
objectKey |
string |
Built code save S3 object key. |
- Type: INode
The Node you want to build.
- Type: aws-cdk-lib.aws_s3.IBucket
- Default: generate a new Bucket
Built code save S3 bucket.
- Type: string
- Default: generate a object key
Built code save S3 object key.
Name | Description |
---|---|
bind |
Called when the Job is initialized to allow this object to bind. |
codenize |
No description. |
public bind(scope: Construct, grantable: IGrantable): CodeConfig
Called when the Job is initialized to allow this object to bind.
- Type: constructs.Construct
- Type: aws-cdk-lib.aws_iam.IGrantable
public codenize(): string
Name | Description |
---|---|
fromAsset |
Job code from a local disk path. |
fromBucket |
Job code as an S3 object. |
import { CodenizerBase } from 'cdk-glue-job-builder'
CodenizerBase.fromAsset(path: string, options?: AssetOptions)
Job code from a local disk path.
- Type: string
code file (not a directory).
- Type: aws-cdk-lib.aws_s3_assets.AssetOptions
import { CodenizerBase } from 'cdk-glue-job-builder'
CodenizerBase.fromBucket(bucket: IBucket, key: string)
Job code as an S3 object.
- Type: aws-cdk-lib.aws_s3.IBucket
The S3 bucket.
- Type: string
The object key.
Data sources.
import { DataSource } from 'cdk-glue-job-builder'
new DataSource()
Name | Type | Description |
---|
Name | Description |
---|---|
catalog |
Create a new {@link CatalogSource}. |
s3Catalog |
Create a new {@link S3CatalogSource}. |
import { DataSource } from 'cdk-glue-job-builder'
DataSource.catalog(id: string, props: CatalogSourceProps)
Create a new {@link CatalogSource}.
- Type: string
- Type: CatalogSourceProps
import { DataSource } from 'cdk-glue-job-builder'
DataSource.s3Catalog(id: string, props: S3CatalogSourceProps)
Create a new {@link S3CatalogSource}.
- Type: string
- Type: S3CatalogSourceProps
Data targets.
import { DataTarget } from 'cdk-glue-job-builder'
new DataTarget()
Name | Type | Description |
---|
Name | Description |
---|---|
catalog |
Create a new {@link CatalogTarget}. |
s3Catalog |
Create a new {@link S3CatalogTarget}. |
import { DataTarget } from 'cdk-glue-job-builder'
DataTarget.catalog(id: string, props: CatalogTargetProps)
Create a new {@link CatalogTarget}.
- Type: string
- Type: CatalogTargetProps
import { DataTarget } from 'cdk-glue-job-builder'
DataTarget.s3Catalog(id: string, props: S3CatalogTargetProps)
Create a new {@link S3CatalogTarget}.
- Type: string
- Type: S3CatalogTargetProps
Remove selected fields from your data.
import { DropFields } from 'cdk-glue-job-builder'
new DropFields(id: string, props: DropFieldsProps)
Name | Type | Description |
---|---|---|
id |
string |
No description. |
props |
DropFieldsProps |
No description. |
- Type: string
- Type: DropFieldsProps
Name | Description |
---|---|
from |
Chain from previous node. |
grant |
Granting Glue job permissions. |
python |
Build Python code fragment. |
scala |
Build Scala code fragment. |
to |
Chain to the next node. |
public from(node: INode): INode
Chain from previous node.
- Type: INode
public grant(_job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
public python(): CodeFragment
Build Python code fragment.
public scala(): CodeFragment
Build Scala code fragment.
public to(node: INode): INode
Chain to the next node.
- Type: INode
Name | Type | Description |
---|---|---|
inputs |
INode[] |
Input nodes (i.e parent nodes). |
name |
string |
No description. |
nodeId |
string |
ID of node. |
outputs |
INode[] |
Output nodes (i.e child nodes). |
generation |
number |
Generation of node. |
public readonly inputs: INode[];
- Type: INode[]
Input nodes (i.e parent nodes).
public readonly name: string;
- Type: string
public readonly nodeId: string;
- Type: string
ID of node.
public readonly outputs: INode[];
- Type: INode[]
Output nodes (i.e child nodes).
public readonly generation: number;
- Type: number
Generation of node.
Generation of node.
Remove fields or columns where all the values are the null objects.
import { DropNullFields } from 'cdk-glue-job-builder'
new DropNullFields(id: string, props: DropNullFieldsProps)
Name | Type | Description |
---|---|---|
id |
string |
No description. |
props |
DropNullFieldsProps |
No description. |
- Type: string
- Type: DropNullFieldsProps
Name | Description |
---|---|
from |
Chain from previous node. |
grant |
Granting Glue job permissions. |
python |
Build Python code fragment. |
scala |
Build Scala code fragment. |
to |
Chain to the next node. |
public from(node: INode): INode
Chain from previous node.
- Type: INode
public grant(_job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
public python(): CodeFragment
Build Python code fragment.
public scala(): CodeFragment
Build Scala code fragment.
public to(node: INode): INode
Chain to the next node.
- Type: INode
Name | Type | Description |
---|---|---|
inputs |
INode[] |
Input nodes (i.e parent nodes). |
name |
string |
No description. |
nodeId |
string |
ID of node. |
outputs |
INode[] |
Output nodes (i.e child nodes). |
generation |
number |
Generation of node. |
public readonly inputs: INode[];
- Type: INode[]
Input nodes (i.e parent nodes).
public readonly name: string;
- Type: string
public readonly nodeId: string;
- Type: string
ID of node.
public readonly outputs: INode[];
- Type: INode[]
Output nodes (i.e child nodes).
public readonly generation: number;
- Type: number
Generation of node.
Generation of node.
- Implements: INode
Base of node.
import { NodeBase } from 'cdk-glue-job-builder'
new NodeBase(id: string, name: string)
Name | Type | Description |
---|---|---|
id |
string |
No description. |
name |
string |
No description. |
- Type: string
- Type: string
Name | Description |
---|---|
from |
Chain from previous node. |
grant |
Granting Glue job permissions. |
python |
Build Python code fragment. |
scala |
Build Scala code fragment. |
to |
Chain to the next node. |
public from(node: INode): INode
Chain from previous node.
- Type: INode
public grant(job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
public python(): CodeFragment
Build Python code fragment.
public scala(): CodeFragment
Build Scala code fragment.
public to(node: INode): INode
Chain to the next node.
- Type: INode
Name | Type | Description |
---|---|---|
inputs |
INode[] |
Input nodes (i.e parent nodes). |
name |
string |
No description. |
nodeId |
string |
ID of node. |
outputs |
INode[] |
Output nodes (i.e child nodes). |
generation |
number |
Generation of node. |
public readonly inputs: INode[];
- Type: INode[]
Input nodes (i.e parent nodes).
public readonly name: string;
- Type: string
public readonly nodeId: string;
- Type: string
ID of node.
public readonly outputs: INode[];
- Type: INode[]
Output nodes (i.e child nodes).
public readonly generation: number;
- Type: number
Generation of node.
Generation of node.
Build Python code from nodes.
import { PythonCodenizer } from 'cdk-glue-job-builder'
new PythonCodenizer(node: INode, bucket?: IBucket, objectKey?: string)
Name | Type | Description |
---|---|---|
node |
INode |
The Node you want to build. |
bucket |
aws-cdk-lib.aws_s3.IBucket |
Built code save S3 bucket. |
objectKey |
string |
Built code save S3 object key. |
- Type: INode
The Node you want to build.
- Type: aws-cdk-lib.aws_s3.IBucket
- Default: generate a new Bucket
Built code save S3 bucket.
- Type: string
- Default: generate a object key
Built code save S3 object key.
Name | Description |
---|---|
bind |
Called when the Job is initialized to allow this object to bind. |
codenize |
No description. |
public bind(scope: Construct, grantable: IGrantable): CodeConfig
Called when the Job is initialized to allow this object to bind.
- Type: constructs.Construct
- Type: aws-cdk-lib.aws_iam.IGrantable
public codenize(): string
Name | Description |
---|---|
fromAsset |
Job code from a local disk path. |
fromBucket |
Job code as an S3 object. |
import { PythonCodenizer } from 'cdk-glue-job-builder'
PythonCodenizer.fromAsset(path: string, options?: AssetOptions)
Job code from a local disk path.
- Type: string
code file (not a directory).
- Type: aws-cdk-lib.aws_s3_assets.AssetOptions
import { PythonCodenizer } from 'cdk-glue-job-builder'
PythonCodenizer.fromBucket(bucket: IBucket, key: string)
Job code as an S3 object.
- Type: aws-cdk-lib.aws_s3.IBucket
The S3 bucket.
- Type: string
The object key.
Name | Description |
---|---|
emptyString |
Empty String ("" or ''). |
integer |
Create a new {@link RepresentNullValue} from number value. |
minusOne |
-1 Integer. |
nullString |
"null" String. |
string |
Create a new {@link RepresentNullValue} from string value. |
import { RepresentNullValue } from 'cdk-glue-job-builder'
RepresentNullValue.emptyString()
Empty String ("" or '').
import { RepresentNullValue } from 'cdk-glue-job-builder'
RepresentNullValue.integer(value: number)
Create a new {@link RepresentNullValue} from number value.
- Type: number
represent null value.
import { RepresentNullValue } from 'cdk-glue-job-builder'
RepresentNullValue.minusOne()
1 Integer.
import { RepresentNullValue } from 'cdk-glue-job-builder'
RepresentNullValue.nullString()
"null" String.
import { RepresentNullValue } from 'cdk-glue-job-builder'
RepresentNullValue.string(value: string)
Create a new {@link RepresentNullValue} from string value.
- Type: string
represent null value.
Name | Type | Description |
---|---|---|
type |
RepresentNullType |
No description. |
value |
string |
No description. |
public readonly type: RepresentNullType;
- Type: RepresentNullType
public readonly value: string;
- Type: string
Specifies an Amazon S3 data store in the Glue Data Catalog.
import { S3CatalogSource } from 'cdk-glue-job-builder'
new S3CatalogSource(id: string, props: S3CatalogSourceProps)
Name | Type | Description |
---|---|---|
id |
string |
No description. |
props |
S3CatalogSourceProps |
No description. |
- Type: string
- Type: S3CatalogSourceProps
Name | Description |
---|---|
from |
Chain from previous node. |
grant |
Granting Glue job permissions. |
python |
Build Python code fragment. |
scala |
Build Scala code fragment. |
to |
Chain to the next node. |
public from(node: INode): INode
Chain from previous node.
- Type: INode
public grant(job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
public python(): CodeFragment
Build Python code fragment.
public scala(): CodeFragment
Build Scala code fragment.
public to(node: INode): INode
Chain to the next node.
- Type: INode
Name | Type | Description |
---|---|---|
inputs |
INode[] |
Input nodes (i.e parent nodes). |
name |
string |
No description. |
nodeId |
string |
ID of node. |
outputs |
INode[] |
Output nodes (i.e child nodes). |
generation |
number |
Generation of node. |
database |
@aws-cdk/aws-glue-alpha.IDatabase |
No description. |
table |
@aws-cdk/aws-glue-alpha.ITable |
No description. |
public readonly inputs: INode[];
- Type: INode[]
Input nodes (i.e parent nodes).
public readonly name: string;
- Type: string
public readonly nodeId: string;
- Type: string
ID of node.
public readonly outputs: INode[];
- Type: INode[]
Output nodes (i.e child nodes).
public readonly generation: number;
- Type: number
Generation of node.
Generation of node.
public readonly database: IDatabase;
- Type: @aws-cdk/aws-glue-alpha.IDatabase
public readonly table: ITable;
- Type: @aws-cdk/aws-glue-alpha.ITable
Specifies a data target that writes to Amazon S3 using the Glue Data Catalog.
import { S3CatalogTarget } from 'cdk-glue-job-builder'
new S3CatalogTarget(id: string, props: S3CatalogTargetProps)
Name | Type | Description |
---|---|---|
id |
string |
No description. |
props |
S3CatalogTargetProps |
No description. |
- Type: string
- Type: S3CatalogTargetProps
Name | Description |
---|---|
from |
Chain from previous node. |
grant |
Granting Glue job permissions. |
python |
Build Python code fragment. |
scala |
Build Scala code fragment. |
to |
Chain to the next node. |
public from(node: INode): INode
Chain from previous node.
- Type: INode
public grant(job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
public python(): CodeFragment
Build Python code fragment.
public scala(): CodeFragment
Build Scala code fragment.
public to(node: INode): INode
Chain to the next node.
- Type: INode
Name | Type | Description |
---|---|---|
inputs |
INode[] |
Input nodes (i.e parent nodes). |
name |
string |
No description. |
nodeId |
string |
ID of node. |
outputs |
INode[] |
Output nodes (i.e child nodes). |
generation |
number |
Generation of node. |
database |
@aws-cdk/aws-glue-alpha.IDatabase |
No description. |
table |
@aws-cdk/aws-glue-alpha.ITable |
No description. |
public readonly inputs: INode[];
- Type: INode[]
Input nodes (i.e parent nodes).
public readonly name: string;
- Type: string
public readonly nodeId: string;
- Type: string
ID of node.
public readonly outputs: INode[];
- Type: INode[]
Output nodes (i.e child nodes).
public readonly generation: number;
- Type: number
Generation of node.
Generation of node.
public readonly database: IDatabase;
- Type: @aws-cdk/aws-glue-alpha.IDatabase
public readonly table: ITable;
- Type: @aws-cdk/aws-glue-alpha.ITable
Build Scala code from nodes.
import { ScalaCodenizer } from 'cdk-glue-job-builder'
new ScalaCodenizer(node: INode, bucket?: IBucket, objectKey?: string)
Name | Type | Description |
---|---|---|
node |
INode |
The Node you want to build. |
bucket |
aws-cdk-lib.aws_s3.IBucket |
Built code save S3 bucket. |
objectKey |
string |
Built code save S3 object key. |
- Type: INode
The Node you want to build.
- Type: aws-cdk-lib.aws_s3.IBucket
- Default: generate a new Bucket
Built code save S3 bucket.
- Type: string
- Default: generate a object key
Built code save S3 object key.
Name | Description |
---|---|
bind |
Called when the Job is initialized to allow this object to bind. |
codenize |
No description. |
public bind(scope: Construct, grantable: IGrantable): CodeConfig
Called when the Job is initialized to allow this object to bind.
- Type: constructs.Construct
- Type: aws-cdk-lib.aws_iam.IGrantable
public codenize(): string
Name | Description |
---|---|
fromAsset |
Job code from a local disk path. |
fromBucket |
Job code as an S3 object. |
import { ScalaCodenizer } from 'cdk-glue-job-builder'
ScalaCodenizer.fromAsset(path: string, options?: AssetOptions)
Job code from a local disk path.
- Type: string
code file (not a directory).
- Type: aws-cdk-lib.aws_s3_assets.AssetOptions
import { ScalaCodenizer } from 'cdk-glue-job-builder'
ScalaCodenizer.fromBucket(bucket: IBucket, key: string)
Job code as an S3 object.
- Type: aws-cdk-lib.aws_s3.IBucket
The S3 bucket.
- Type: string
The object key.
Choose which fields you want from your data.
import { SelectFields } from 'cdk-glue-job-builder'
new SelectFields(id: string, props: SelectFieldsProps)
Name | Type | Description |
---|---|---|
id |
string |
No description. |
props |
SelectFieldsProps |
No description. |
- Type: string
- Type: SelectFieldsProps
Name | Description |
---|---|
from |
Chain from previous node. |
grant |
Granting Glue job permissions. |
python |
Build Python code fragment. |
scala |
Build Scala code fragment. |
to |
Chain to the next node. |
public from(node: INode): INode
Chain from previous node.
- Type: INode
public grant(_job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
public python(): CodeFragment
Build Python code fragment.
public scala(): CodeFragment
Build Scala code fragment.
public to(node: INode): INode
Chain to the next node.
- Type: INode
Name | Type | Description |
---|---|---|
inputs |
INode[] |
Input nodes (i.e parent nodes). |
name |
string |
No description. |
nodeId |
string |
ID of node. |
outputs |
INode[] |
Output nodes (i.e child nodes). |
generation |
number |
Generation of node. |
public readonly inputs: INode[];
- Type: INode[]
Input nodes (i.e parent nodes).
public readonly name: string;
- Type: string
public readonly nodeId: string;
- Type: string
ID of node.
public readonly outputs: INode[];
- Type: INode[]
Output nodes (i.e child nodes).
public readonly generation: number;
- Type: number
Generation of node.
Generation of node.
Transforms.
import { Transform } from 'cdk-glue-job-builder'
new Transform()
Name | Type | Description |
---|
Name | Description |
---|---|
applyMapping |
Create a new {@link ApplyMapping}. |
dropFields |
Create a new {@link DropFields}. |
dropNullFields |
Create a new {@link DropNullFields}. |
selectFields |
Create a new {@link SelectFields}. |
import { Transform } from 'cdk-glue-job-builder'
Transform.applyMapping(id: string, props: ApplyMappingProps)
Create a new {@link ApplyMapping}.
- Type: string
- Type: ApplyMappingProps
import { Transform } from 'cdk-glue-job-builder'
Transform.dropFields(id: string, props: DropFieldsProps)
Create a new {@link DropFields}.
- Type: string
- Type: DropFieldsProps
import { Transform } from 'cdk-glue-job-builder'
Transform.dropNullFields(id: string, props: DropNullFieldsProps)
Create a new {@link DropNullFields}.
- Type: string
- Type: DropNullFieldsProps
import { Transform } from 'cdk-glue-job-builder'
Transform.selectFields(id: string, props: SelectFieldsProps)
Create a new {@link SelectFields}.
- Type: string
- Type: SelectFieldsProps
- Implemented By: IGranter
Granter the necessary authorization to a node.
Name | Description |
---|---|
grant |
Granting Glue job permissions. |
public grant(job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
The Glue job.
- Implemented By: ApplyMapping, CatalogSource, CatalogTarget, DropFields, DropNullFields, NodeBase, S3CatalogSource, S3CatalogTarget, SelectFields, INode
A node of job.
Name | Description |
---|---|
from |
Chain from previous node. |
grant |
Granting Glue job permissions. |
python |
Build Python code fragment. |
scala |
Build Scala code fragment. |
to |
Chain to the next node. |
public from(node: INode): INode
Chain from previous node.
- Type: INode
previous node.
public grant(job: IGrantable): Grant
Granting Glue job permissions.
- Type: aws-cdk-lib.aws_iam.IGrantable
The Glue job.
public python(): CodeFragment
Build Python code fragment.
public scala(): CodeFragment
Build Scala code fragment.
public to(node: INode): INode
Chain to the next node.
- Type: INode
next node.
Name | Type | Description |
---|---|---|
inputs |
INode[] |
Input nodes (i.e parent nodes). |
name |
string |
Name of node. |
nodeId |
string |
ID of node. |
outputs |
INode[] |
Output nodes (i.e child nodes). |
generation |
number |
Generation of node. |
public readonly inputs: INode[];
- Type: INode[]
Input nodes (i.e parent nodes).
public readonly name: string;
- Type: string
Name of node.
public readonly nodeId: string;
- Type: string
ID of node.
public readonly outputs: INode[];
- Type: INode[]
Output nodes (i.e child nodes).
public readonly generation: number;
- Type: number
Generation of node.
Type representing a null value.
Name | Description |
---|---|
STRING |
No description. |
INTEGER |
No description. |