software.amazon.awscdk.services.apprunner.alpha.Runtime Maven / Gradle / Ivy
Show all versions of apprunner-alpha Show documentation
package software.amazon.awscdk.services.apprunner.alpha;
/**
* (experimental) The code runtimes.
*
* 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();
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.60.1 (build 2799dc8)", date = "2022-07-13T22:14:11.918Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.apprunner.alpha.$Module.class, fqn = "@aws-cdk/aws-apprunner-alpha.Runtime")
public class Runtime extends software.amazon.jsii.JsiiObject {
protected Runtime(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Runtime(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
NODEJS_12 = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.apprunner.alpha.Runtime.class, "NODEJS_12", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.Runtime.class));
PYTHON_3 = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.apprunner.alpha.Runtime.class, "PYTHON_3", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.Runtime.class));
}
/**
* (experimental) Other runtimes.
*
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfigurationvalues.html#cfn-apprunner-service-codeconfigurationvalues-runtime for all available runtimes.
* @param name runtime name. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.Runtime of(final @org.jetbrains.annotations.NotNull java.lang.String name) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.Runtime.class, "of", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.Runtime.class), new Object[] { java.util.Objects.requireNonNull(name, "name is required") });
}
/**
* (experimental) NodeJS 12.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static software.amazon.awscdk.services.apprunner.alpha.Runtime NODEJS_12;
/**
* (experimental) Python 3.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static software.amazon.awscdk.services.apprunner.alpha.Runtime PYTHON_3;
/**
* (experimental) The runtime name.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getName() {
return software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
}