Interface IS3ArtifactsProps
Construction properties for S3Artifacts
.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IS3ArtifactsProps : IArtifactsProps
Syntax (vb)
Public Interface IS3ArtifactsProps
Inherits IArtifactsProps
Remarks
ExampleMetadata: infused
Examples
Bucket bucket;
var project = new Project(this, "MyProject", new ProjectProps {
BuildSpec = BuildSpec.FromObject(new Dictionary<string, object> {
{ "version", "0.2" }
}),
Artifacts = Artifacts.S3(new S3ArtifactsProps {
Bucket = bucket,
IncludeBuildId = false,
PackageZip = true,
Path = "another/path",
Identifier = "AddArtifact1"
})
});
Synopsis
Properties
Bucket | The name of the output bucket. |
Encryption | If this is false, build output will not be encrypted. |
IncludeBuildId | Indicates if the build ID should be included in the path. |
Name | The name of the build output ZIP file or folder inside the bucket. |
PackageZip | If this is true, all build output will be packaged into a single .zip file. Otherwise, all files will be uploaded to <path>/<name>. |
Path | The path inside of the bucket for the build output .zip file or folder. If a value is not specified, then build output will be stored at the root of the bucket (or under the <build-id> directory if |
Properties
Bucket
Encryption
If this is false, build output will not be encrypted.
virtual Nullable<bool> Encryption { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
This is useful if the artifact to publish a static website or sharing content with others
Default: true - output will be encrypted
IncludeBuildId
Indicates if the build ID should be included in the path.
virtual Nullable<bool> IncludeBuildId { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
If this is set to true,
then the build artifact will be stored in "
Default: true
Name
The name of the build output ZIP file or folder inside the bucket.
virtual string Name { get; }
Property Value
System.String
Remarks
The full S3 object key will be "includeBuildId
is set to true.
If not set, overrideArtifactName
will be set and the name from the
buildspec will be used instead.
Default: undefined, and use the name from the buildspec
PackageZip
If this is true, all build output will be packaged into a single .zip file. Otherwise, all files will be uploaded to <path>/<name>.
virtual Nullable<bool> PackageZip { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true - files will be archived
Path
The path inside of the bucket for the build output .zip file or folder. If a value is not specified, then build output will be stored at the root of the bucket (or under the <build-id> directory if includeBuildId
is set to true).
virtual string Path { get; }
Property Value
System.String
Remarks
Default: the root of the bucket