@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:00.798Z") @Stability(value=Experimental) public class Runtime extends software.amazon.jsii.JsiiObject
Example:
Service.Builder.create(this, "Service")
.source(Source.fromGitHub(GithubRepositoryProps.builder()
.repositoryUrl("https://github.com/aws-containers/hello-app-runner")
.branch("main")
.configurationSource(ConfigurationSourceType.API)
.codeConfigurationValues(CodeConfigurationValues.builder()
.runtime(Runtime.PYTHON_3)
.port("8000")
.startCommand("python app.py")
.buildCommand("yum install -y pycairo && pip install -r requirements.txt")
.build())
.connection(GitHubConnection.fromConnectionArn("CONNECTION_ARN"))
.build()))
.build();
| Modifier and Type | Field and Description |
|---|---|
static Runtime |
NODEJS_12
(experimental) NodeJS 12.
|
static Runtime |
PYTHON_3
(experimental) Python 3.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Runtime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Runtime(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
(experimental) The runtime name.
|
static Runtime |
of(String name)
(experimental) Other runtimes.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final Runtime NODEJS_12
@Stability(value=Experimental) public static final Runtime PYTHON_3
protected Runtime(software.amazon.jsii.JsiiObjectRef objRef)
protected Runtime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static Runtime of(@NotNull String name)
name - runtime name. This parameter is required.@Stability(value=Experimental) @NotNull public String getName()
Copyright © 2022. All rights reserved.