Class AssetCode
(experimental) Job Code from a local file.
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.AWS.Glue.dll
Syntax (csharp)
public class AssetCode : Code
Syntax (vb)
Public Class AssetCode
Inherits Code
Remarks
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Assets;
using Amazon.CDK.AWS.Glue;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK;
DockerImage dockerImage;
IGrantable grantable;
ILocalBundling localBundling;
var assetCode = new AssetCode("path", new AssetOptions {
AssetHash = "assetHash",
AssetHashType = AssetHashType.SOURCE,
Bundling = new BundlingOptions {
Image = dockerImage,
// the properties below are optional
Command = new [] { "command" },
Entrypoint = new [] { "entrypoint" },
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
Local = localBundling,
OutputType = BundlingOutput.ARCHIVED,
SecurityOpt = "securityOpt",
User = "user",
Volumes = new [] { new DockerVolume {
ContainerPath = "containerPath",
HostPath = "hostPath",
// the properties below are optional
Consistency = DockerVolumeConsistency.CONSISTENT
} },
WorkingDirectory = "workingDirectory"
},
Exclude = new [] { "exclude" },
Follow = FollowMode.NEVER,
FollowSymlinks = SymlinkFollowMode.NEVER,
IgnoreMode = IgnoreMode.GLOB,
Readers = new [] { grantable },
SourceHash = "sourceHash"
});
Synopsis
Constructors
AssetCode(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AssetCode(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AssetCode(String, IAssetOptions) |
Methods
Bind(Construct, IGrantable) | (experimental) Called when the Job is initialized to allow this object to bind. |
Constructors
AssetCode(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AssetCode(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AssetCode(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AssetCode(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AssetCode(String, IAssetOptions)
public AssetCode(string path, IAssetOptions options = null)
Parameters
- path System.String
The path to the Code file.
- options IAssetOptions
The path to the Code file.
Remarks
Stability: Experimental
Methods
Bind(Construct, IGrantable)
(experimental) Called when the Job is initialized to allow this object to bind.
public override ICodeConfig Bind(Construct scope, IGrantable grantable)
Parameters
- scope Constructs.Construct
- grantable IGrantable
Returns
Overrides
Remarks
Stability: Experimental