# StackOutputsMap

Translate stack outputs to CodePipeline variable references.

- Source: [`pipelines/lib/codepipeline/stack-outputs-map.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/pipelines/lib/codepipeline/stack-outputs-map.ts#L9)
- Type last changed: v2.60.0 · 12 Jan 2023

## Example

TypeScript:

```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:

```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:

```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);
```

C# / .NET:

```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);
```

Golang:

```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

TypeScript:

```ts
new StackOutputsMap(pipeline: PipelineBase)
```

Python:

```python
StackOutputsMap(pipeline: PipelineBase)
```

Java:

```java
new StackOutputsMap(PipelineBase pipeline)
```

C# / .NET:

```csharp
new StackOutputsMap(PipelineBase pipeline)
```

Golang:

```go
NewStackOutputsMap(Pipeline PipelineBase)
```

## Methods

- `toCodePipeline(x: StackOutputReference): string` — Return the matching variable reference string for a StackOutputReference.
