software.amazon.awscdk.assets.docker.DockerImageAsset Maven / Gradle / Ivy
package software.amazon.awscdk.assets.docker;
/**
* An asset that represents a Docker image.
*
* The image will be created in build time and uploaded to an ECR repository.
*
* EXPERIMENTAL
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.11.2 (build 27d16c2)", date = "2019-06-10T11:10:22.636Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.assets.docker.$Module.class, fqn = "@aws-cdk/assets-docker.DockerImageAsset")
public class DockerImageAsset extends software.amazon.awscdk.Construct implements software.amazon.awscdk.assets.IAsset {
protected DockerImageAsset(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
/**
* EXPERIMENTAL
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public DockerImageAsset(final software.amazon.awscdk.Construct scope, final java.lang.String id, final software.amazon.awscdk.assets.docker.DockerImageAssetProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* A hash of the bundle for of this asset, which is only available at deployment time.
*
* As this is
* a late-bound token, it may not be used in construct IDs, but can be passed as a resource
* property in order to force a change on a resource when an asset is effectively updated. This is
* more reliable than `sourceHash` in particular for assets which bundling phase involve external
* resources that can change over time (such as Docker image builds).
*
* EXPERIMENTAL
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public java.lang.String getArtifactHash() {
return this.jsiiGet("artifactHash", java.lang.String.class);
}
/**
* A hash of the source of this asset, which is available at construction time.
*
* As this is a plain
* string, it can be used in construct IDs in order to enforce creation of a new resource when
* the content hash has changed.
*
* EXPERIMENTAL
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public java.lang.String getSourceHash() {
return this.jsiiGet("sourceHash", java.lang.String.class);
}
/**
* The full URI of the image (including a tag).
*
* Use this reference to pull
* the asset.
*
* EXPERIMENTAL
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public java.lang.String getImageUri() {
return this.jsiiGet("imageUri", java.lang.String.class);
}
/**
* The full URI of the image (including a tag).
*
* Use this reference to pull
* the asset.
*
* EXPERIMENTAL
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void setImageUri(final java.lang.String value) {
this.jsiiSet("imageUri", java.util.Objects.requireNonNull(value, "imageUri is required"));
}
/**
* Repository where the image is stored.
*
* EXPERIMENTAL
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public software.amazon.awscdk.services.ecr.IRepository getRepository() {
return this.jsiiGet("repository", software.amazon.awscdk.services.ecr.IRepository.class);
}
/**
* Repository where the image is stored.
*
* EXPERIMENTAL
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void setRepository(final software.amazon.awscdk.services.ecr.IRepository value) {
this.jsiiSet("repository", java.util.Objects.requireNonNull(value, "repository is required"));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy