@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:56.602Z") @Stability(value=Experimental) public class Artifact extends software.amazon.jsii.JsiiObject
Artifacts can be used as input by some actions.
| Modifier | Constructor and Description |
|---|---|
|
Artifact() |
protected |
Artifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Artifact(software.amazon.jsii.JsiiObjectRef objRef) |
|
Artifact(String artifactName) |
| Modifier and Type | Method and Description |
|---|---|
static Artifact |
artifact(String name)
(experimental) A static factory method used to create instances of the Artifact class.
|
ArtifactPath |
atPath(String fileName)
(experimental) Returns an ArtifactPath for a file within this artifact.
|
String |
getArtifactName() |
String |
getBucketName()
(experimental) The artifact attribute for the name of the S3 bucket where the artifact is stored.
|
Object |
getMetadata(String key)
(experimental) Retrieve the metadata stored in this artifact under the given key.
|
String |
getObjectKey()
(experimental) The artifact attribute for The name of the .zip file that contains the artifact that is generated by AWS CodePipeline, such as 1ABCyZZ.zip.
|
String |
getParam(String jsonFile,
String keyName)
(experimental) Returns a token for a value inside a JSON file within this artifact.
|
Location |
getS3Location()
(experimental) Returns the location of the .zip file in S3 that this Artifact represents.
|
String |
getUrl()
(experimental) The artifact attribute of the Amazon Simple Storage Service (Amazon S3) URL of the artifact, such as https://s3-us-west-2.amazonaws.com/artifactstorebucket-yivczw8jma0c/test/TemplateSo/1ABCyZZ.zip.
|
void |
setMetadata(String key,
Object value)
(experimental) Add arbitrary extra payload to the artifact under a given key.
|
String |
toString() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Artifact(software.amazon.jsii.JsiiObjectRef objRef)
protected Artifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Artifact(@Nullable
String artifactName)
artifactName - @Stability(value=Experimental) public Artifact()
@Stability(value=Experimental) @NotNull public static Artifact artifact(@NotNull String name)
Mainly meant to be used from decdk.
name - the (required) name of the Artifact. This parameter is required.@Stability(value=Experimental) @NotNull public ArtifactPath atPath(@NotNull String fileName)
CfnOutput is in the form "
fileName - The name of the file. This parameter is required.@Stability(value=Experimental) @NotNull public Object getMetadata(@NotNull String key)
If there is no metadata stored under the given key, null will be returned.
key - This parameter is required.@Stability(value=Experimental) @NotNull public String getParam(@NotNull String jsonFile, @NotNull String keyName)
jsonFile - The JSON file name. This parameter is required.keyName - The hash key. This parameter is required.@Stability(value=Experimental)
public void setMetadata(@NotNull
String key,
@NotNull
Object value)
This can be used by CodePipeline actions to communicate data between themselves. If metadata was already present under the given key, it will be overwritten with the new value.
key - This parameter is required.value - This parameter is required.@Stability(value=Experimental) @Nullable public String toString()
@Stability(value=Experimental) @NotNull public String getBucketName()
@Stability(value=Experimental) @NotNull public String getObjectKey()
@Stability(value=Experimental) @NotNull public Location getS3Location()
@Stability(value=Experimental) @NotNull public String getUrl()
@Stability(value=Experimental) @Nullable public String getArtifactName()
Copyright © 2021. All rights reserved.