Skip to content
v2.275.0

StackOutputsMap Class ​

Translate stack outputs to CodePipeline variable references.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { pipelines } from 'aws-cdk-lib';

declare const pipelineBase: pipelines.PipelineBase;
const stackOutputsMap = new pipelines.StackOutputsMap(pipelineBase);
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import pipelines

# pipeline_base: pipelines.PipelineBase

stack_outputs_map = pipelines.StackOutputsMap(pipeline_base)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.pipelines.*;

PipelineBase pipelineBase;

StackOutputsMap stackOutputsMap = new StackOutputsMap(pipelineBase);
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Pipelines;

PipelineBase pipelineBase;

var stackOutputsMap = new StackOutputsMap(pipelineBase);
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var pipelineBase PipelineBase

stackOutputsMap := awscdk.Pipelines.NewStackOutputsMap(pipelineBase)

Initializer ​

ts
new StackOutputsMap(pipeline: PipelineBase)
python
StackOutputsMap(pipeline: PipelineBase)
java
new StackOutputsMap(PipelineBase pipeline)
csharp
new StackOutputsMap(PipelineBase pipeline)
go
NewStackOutputsMap(Pipeline PipelineBase)

Methods ​

toCodePipeline(x: StackOutputReference): stringdef to_code_pipeline(self, x: StackOutputReference) -> strpublic String toCodePipeline(StackOutputReference x)public string ToCodePipeline(StackOutputReference x)func ToCodePipeline(X StackOutputReference) *string#
Return the matching variable reference string for a StackOutputReference.