Class Artifacts
Artifacts definition for a CodeBuild Project.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class Artifacts : DeputyBase, IArtifacts
Syntax (vb)
Public MustInherit Class Artifacts
Inherits DeputyBase
Implements IArtifacts
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
Constructors
Artifacts(IArtifactsProps) | |
Artifacts(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Artifacts(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Identifier | The artifact identifier. |
Type | The CodeBuild type of this artifact. |
Methods
Bind(Construct, IProject) | Callback when an Artifacts class is used in a CodeBuild Project. |
S3(IS3ArtifactsProps) |
Constructors
Artifacts(IArtifactsProps)
Artifacts(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Artifacts(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Artifacts(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Artifacts(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Identifier
The artifact identifier.
public virtual string Identifier { get; }
Property Value
System.String
Remarks
This property is required on secondary artifacts.
Type
The CodeBuild type of this artifact.
public abstract string Type { get; }
Property Value
System.String
Methods
Bind(Construct, IProject)
Callback when an Artifacts class is used in a CodeBuild Project.
public virtual IArtifactsConfig Bind(Construct scope, IProject project)
Parameters
- scope Constructs.Construct
- project IProject
Returns