# Variable

A pipeline-level variable used for a pipeline execution.

- Source: [`aws-codepipeline-actions/lib/codepipeline/invoke-action.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-codepipeline-actions/lib/codepipeline/invoke-action.ts#L55)
- Type last changed: v2.193.0 · 30 Apr 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline_actions as codepipeline_actions } from 'aws-cdk-lib';
const variable: codepipeline_actions.Variable = {
  name: 'name',
  value: 'value',
};
```

## Properties

- `name`: string (required) — The name of a pipeline-level variable.

- `value`: string (required) — The value of a pipeline-level variable.
