All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.apprunner.alpha.Source Maven / Gradle / Ivy

There is a newer version: 2.173.2-alpha.0
Show newest version
package software.amazon.awscdk.services.apprunner.alpha;

/**
 * (experimental) Represents the App Runner service source.
 * 

* Example: *

*

 * import software.amazon.awscdk.services.iam.*;
 * Service service = Service.Builder.create(this, "Service")
 *         .source(Source.fromEcrPublic(EcrPublicProps.builder()
 *                 .imageConfiguration(ImageConfiguration.builder().port(8000).build())
 *                 .imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest")
 *                 .build()))
 *         .build();
 * service.addToRolePolicy(PolicyStatement.Builder.create()
 *         .effect(Effect.ALLOW)
 *         .actions(List.of("s3:GetObject"))
 *         .resources(List.of("*"))
 *         .build());
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-11-22T02:24:11.378Z") @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.Source") public abstract class Source extends software.amazon.jsii.JsiiObject { protected Source(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected Source(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) protected Source() { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); } /** * (experimental) Source from local assets. *

* @param props 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.AssetSource fromAsset(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.AssetProps props) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.Source.class, "fromAsset", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.AssetSource.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } /** * (experimental) Source from the ECR repository. *

* @param props 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.EcrSource fromEcr(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.EcrProps props) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.Source.class, "fromEcr", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.EcrSource.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } /** * (experimental) Source from the ECR Public repository. *

* @param props 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.EcrPublicSource fromEcrPublic(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.EcrPublicProps props) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.Source.class, "fromEcrPublic", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.EcrPublicSource.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } /** * (experimental) Source from the GitHub repository. *

* @param props 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.GithubSource fromGitHub(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.GithubRepositoryProps props) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.Source.class, "fromGitHub", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.GithubSource.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } /** * (experimental) Called when the Job is initialized to allow this object to bind. *

* @param scope This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public abstract @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.SourceConfig bind(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope); /** * A proxy class which represents a concrete javascript instance of this type. */ @software.amazon.jsii.Internal private static final class Jsii$Proxy extends software.amazon.awscdk.services.apprunner.alpha.Source { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } /** * (experimental) Called when the Job is initialized to allow this object to bind. *

* @param scope This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.SourceConfig bind(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope) { return software.amazon.jsii.Kernel.call(this, "bind", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.SourceConfig.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required") }); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy