class AssetCode
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.AssetCode |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#AssetCode |
Java | software.amazon.awscdk.services.glue.alpha.AssetCode |
Python | aws_cdk.aws_glue_alpha.AssetCode |
TypeScript (source) | @aws-cdk/aws-glue-alpha 禄 AssetCode |
Extends
Code
Job Code from a local file.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as glue_alpha from '@aws-cdk/aws-glue-alpha';
import * as cdk from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_kms as kms } from 'aws-cdk-lib';
declare const dockerImage: cdk.DockerImage;
declare const grantable: iam.IGrantable;
declare const key: kms.Key;
declare const localBundling: cdk.ILocalBundling;
const assetCode = new glue_alpha.AssetCode('path', /* all optional props */ {
assetHash: 'assetHash',
assetHashType: cdk.AssetHashType.SOURCE,
bundling: {
image: dockerImage,
// the properties below are optional
bundlingFileAccess: cdk.BundlingFileAccess.VOLUME_COPY,
command: ['command'],
entrypoint: ['entrypoint'],
environment: {
environmentKey: 'environment',
},
local: localBundling,
network: 'network',
outputType: cdk.BundlingOutput.ARCHIVED,
platform: 'platform',
securityOpt: 'securityOpt',
user: 'user',
volumes: [{
containerPath: 'containerPath',
hostPath: 'hostPath',
// the properties below are optional
consistency: cdk.DockerVolumeConsistency.CONSISTENT,
}],
volumesFrom: ['volumesFrom'],
workingDirectory: 'workingDirectory',
},
deployTime: false,
exclude: ['exclude'],
followSymlinks: cdk.SymlinkFollowMode.NEVER,
ignoreMode: cdk.IgnoreMode.GLOB,
readers: [grantable],
sourceKMSKey: key,
});
Initializer
new AssetCode(path: string, options?: AssetOptions)
Parameters
- path
string
鈥� The path to the Code file. - options
Asset
Options
Methods
Name | Description |
---|---|
bind(scope, grantable) | Called when the Job is initialized to allow this object to bind. |
bind(scope, grantable)
public bind(scope: Construct, grantable: IGrantable): CodeConfig
Parameters
- scope
Construct
- grantable
IGrantable
Returns
Called when the Job is initialized to allow this object to bind.