# PropagateTags

Configuration for propagating tags to managed resources created by a capacity provider.

Use static factory methods to create instances:
```
propagateTags: lambda.PropagateTags.explicit({ env: 'prod', team: 'platform' })
```

- Source: [`aws-lambda/lib/capacity-provider.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-lambda/lib/capacity-provider.ts#L139)
- Type last changed: v2.263.0 · 31 Jul 2026

## Example

```ts
import * as ec2 from 'aws-cdk-lib/aws-ec2';

const vpc = new ec2.Vpc(this, 'MyVpc');
const securityGroup = new ec2.SecurityGroup(this, 'SecurityGroup', { vpc });

const capacityProvider = new lambda.CapacityProvider(this, 'MyCapacityProvider', {
  subnets: vpc.privateSubnets,
  securityGroups: [securityGroup],
  propagateTags: lambda.PropagateTags.explicit({
    CostCenter: 'Engineering',
    Project: 'MyProject',
  }),
});
```

## Properties

- `explicitTags`: { [key: string]: string } — The explicit tags to propagate (only for Explicit mode).

- `mode`: string — The propagation mode.

## Methods

- `explicit(tags: { [key: string]: string }): PropagateTags // chainable` (static) — Propagate the specified tags to all managed resources.

  **Parameters**

  - `tags` — A map of tag keys to values to propagate.

- `none(): PropagateTags // chainable` (static) — No tag propagation to managed resources.
