@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:49.634Z") @Stability(value=Experimental) public abstract class Code extends software.amazon.jsii.JsiiObject
Example:
Bucket bucket;
Job.Builder.create(this, "PythonShellJob")
.executable(JobExecutable.pythonShell(PythonShellExecutableProps.builder()
.glueVersion(GlueVersion.V1_0)
.pythonVersion(PythonVersion.THREE)
.script(Code.fromBucket(bucket, "script.py"))
.build()))
.description("an example Python Shell job")
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
Code() |
protected |
Code(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Code(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract CodeConfig |
bind(software.constructs.Construct scope,
IGrantable grantable)
(experimental) Called when the Job is initialized to allow this object to bind.
|
static AssetCode |
fromAsset(String path)
(experimental) Job code from a local disk path.
|
static AssetCode |
fromAsset(String path,
AssetOptions options)
(experimental) Job code from a local disk path.
|
static S3Code |
fromBucket(IBucket bucket,
String key)
(experimental) Job code as an S3 object.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Code(software.amazon.jsii.JsiiObjectRef objRef)
protected Code(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected Code()
@Stability(value=Experimental) @NotNull public static AssetCode fromAsset(@NotNull String path, @Nullable AssetOptions options)
path - code file (not a directory). This parameter is required.options - @Stability(value=Experimental) @NotNull public static AssetCode fromAsset(@NotNull String path)
path - code file (not a directory). This parameter is required.@Stability(value=Experimental) @NotNull public static S3Code fromBucket(@NotNull IBucket bucket, @NotNull String key)
bucket - The S3 bucket. This parameter is required.key - The object key. This parameter is required.@Stability(value=Experimental) @NotNull public abstract CodeConfig bind(@NotNull software.constructs.Construct scope, @NotNull IGrantable grantable)
scope - This parameter is required.grantable - This parameter is required.Copyright © 2022. All rights reserved.