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

software.amazon.awscdk.services.apprunner.alpha.EcrPublicSource 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 service source from ECR Public.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.apprunner.alpha.*;
 * EcrPublicSource ecrPublicSource = EcrPublicSource.Builder.create()
 *         .imageIdentifier("imageIdentifier")
 *         // the properties below are optional
 *         .imageConfiguration(ImageConfiguration.builder()
 *                 .environment(Map.of(
 *                         "environmentKey", "environment"))
 *                 .port(123)
 *                 .startCommand("startCommand")
 *                 .build())
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.60.1 (build 2799dc8)", date = "2022-07-13T22:14:11.913Z") @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.EcrPublicSource") public class EcrPublicSource extends software.amazon.awscdk.services.apprunner.alpha.Source { protected EcrPublicSource(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected EcrPublicSource(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public EcrPublicSource(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.EcrPublicProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, 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) @Override public @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") }); } /** * (experimental) A fluent builder for {@link software.amazon.awscdk.services.apprunner.alpha.EcrPublicSource}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static Builder create() { return new Builder(); } private final software.amazon.awscdk.services.apprunner.alpha.EcrPublicProps.Builder props; private Builder() { this.props = new software.amazon.awscdk.services.apprunner.alpha.EcrPublicProps.Builder(); } /** * (experimental) The ECR Public image URI. *

* @return {@code this} * @param imageIdentifier The ECR Public image URI. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder imageIdentifier(final java.lang.String imageIdentifier) { this.props.imageIdentifier(imageIdentifier); return this; } /** * (experimental) The image configuration for the image from ECR Public. *

* Default: - no image configuration will be passed. The default `port` will be 8080. *

* @return {@code this} * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imageconfiguration.html#cfn-apprunner-service-imageconfiguration-port * @param imageConfiguration The image configuration for the image from ECR Public. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder imageConfiguration(final software.amazon.awscdk.services.apprunner.alpha.ImageConfiguration imageConfiguration) { this.props.imageConfiguration(imageConfiguration); return this; } /** * @returns a newly built instance of {@link software.amazon.awscdk.services.apprunner.alpha.EcrPublicSource}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public software.amazon.awscdk.services.apprunner.alpha.EcrPublicSource build() { return new software.amazon.awscdk.services.apprunner.alpha.EcrPublicSource( this.props.build() ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy