@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.366Z") @Stability(value=Stable) public interface S3ArtifactsProps extends software.amazon.jsii.JsiiSerializable, ArtifactsProps
S3Artifacts.
Example:
Bucket bucket;
Project project = Project.Builder.create(this, "MyProject")
.buildSpec(BuildSpec.fromObject(Map.of(
"version", "0.2")))
.artifacts(Artifacts.s3(S3ArtifactsProps.builder()
.bucket(bucket)
.includeBuildId(false)
.packageZip(true)
.path("another/path")
.identifier("AddArtifact1")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
S3ArtifactsProps.Builder
A builder for
S3ArtifactsProps |
static class |
S3ArtifactsProps.Jsii$Proxy
An implementation for
S3ArtifactsProps |
| Modifier and Type | Method and Description |
|---|---|
static S3ArtifactsProps.Builder |
builder() |
IBucket |
getBucket()
The name of the output bucket.
|
default Boolean |
getEncryption()
If this is false, build output will not be encrypted.
|
default Boolean |
getIncludeBuildId()
Indicates if the build ID should be included in the path.
|
default String |
getName()
The name of the build output ZIP file or folder inside the bucket.
|
default Boolean |
getPackageZip()
If this is true, all build output will be packaged into a single .zip file.
|
default String |
getPath()
The path inside of the bucket for the build output .zip file or folder.
|
getIdentifier@Stability(value=Stable) @NotNull IBucket getBucket()
@Stability(value=Stable) @Nullable default Boolean getEncryption()
This is useful if the artifact to publish a static website or sharing content with others
Default: true - output will be encrypted
@Stability(value=Stable) @Nullable default Boolean getIncludeBuildId()
If this is set to true,
then the build artifact will be stored in "
Default: true
@Stability(value=Stable) @Nullable default String getName()
The full S3 object key will be "
If not set,
Default: undefined, and use the name from the buildspecincludeBuildId is set to true.
overrideArtifactName will be set and the name from the
buildspec will be used instead.
@Stability(value=Stable) @Nullable default Boolean getPackageZip()
Default: true - files will be archived
@Stability(value=Stable) @Nullable default String getPath()
Default: the root of the bucket
@Stability(value=Stable) static S3ArtifactsProps.Builder builder()
builder in interface ArtifactsPropsS3ArtifactsProps.Builder of S3ArtifactsPropsCopyright © 2022. All rights reserved.