Show / Hide Table of Contents

Class ArtifactPath_

A specific file within an output artifact.

Inheritance
System.Object
ArtifactPath_
Namespace: Amazon.CDK.AWS.CodePipeline
Assembly: Amazon.CDK.AWS.CodePipeline.dll
Syntax (csharp)
public class ArtifactPath_ : DeputyBase
Syntax (vb)
Public Class ArtifactPath_
    Inherits DeputyBase
Remarks

The most common use case for this is specifying the template file for a CloudFormation action.

ExampleMetadata: lit=test/integ.cfn-template-from-repo.lit.ts infused

Examples
// Source stage: read from repository
Repository repo = new Repository(stack, "TemplateRepo", new RepositoryProps {
    RepositoryName = "template-repo"
});
Artifact sourceOutput = new Artifact("SourceArtifact");
CodeCommitSourceAction source = new CodeCommitSourceAction(new CodeCommitSourceActionProps {
    ActionName = "Source",
    Repository = repo,
    Output = sourceOutput,
    Trigger = CodeCommitTrigger.POLL
});
IDictionary<string, object> sourceStage = new Dictionary<string, object> {
    { "stageName", "Source" },
    { "actions", new [] { source } }
};

// Deployment stage: create and deploy changeset with manual approval
string stackName = "OurStack";
string changeSetName = "StagedChangeSet";

IDictionary<string, object> prodStage = new Dictionary<string, object> {
    { "stageName", "Deploy" },
    { "actions", new [] {
        new CloudFormationCreateReplaceChangeSetAction(new CloudFormationCreateReplaceChangeSetActionProps {
            ActionName = "PrepareChanges",
            StackName = stackName,
            ChangeSetName = changeSetName,
            AdminPermissions = true,
            TemplatePath = sourceOutput.AtPath("template.yaml"),
            RunOrder = 1
        }),
        new ManualApprovalAction(new ManualApprovalActionProps {
            ActionName = "ApproveChanges",
            RunOrder = 2
        }),
        new CloudFormationExecuteChangeSetAction(new CloudFormationExecuteChangeSetActionProps {
            ActionName = "ExecuteChanges",
            StackName = stackName,
            ChangeSetName = changeSetName,
            RunOrder = 3
        }) } }
};

new Pipeline(stack, "Pipeline", new PipelineProps {
    Stages = new [] { sourceStage, prodStage }
});

Synopsis

Constructors

ArtifactPath_(Artifact_, String)
ArtifactPath_(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

ArtifactPath_(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Properties

Artifact
FileName
Location

Methods

ArtifactPath(String, String)

Constructors

ArtifactPath_(Artifact_, String)

public ArtifactPath_(Artifact_ artifact, string fileName)
Parameters
artifact Artifact_
fileName System.String

ArtifactPath_(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected ArtifactPath_(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

ArtifactPath_(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected ArtifactPath_(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Properties

Artifact

public virtual Artifact_ Artifact { get; }
Property Value

Artifact_

FileName

public virtual string FileName { get; }
Property Value

System.String

Location

public virtual string Location { get; }
Property Value

System.String

Methods

ArtifactPath(String, String)

public static ArtifactPath_ ArtifactPath(string artifactName, string fileName)
Parameters
artifactName System.String
fileName System.String
Returns

ArtifactPath_

Back to top Generated by DocFX