# StackOutputsMap

Translate stack outputs to CodePipeline variable references.

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

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

## Initializer

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

## Methods

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