# CapacityProviderReference

A reference to a CapacityProvider resource.

- Source: Generated at build time
- Type last changed: v2.231.0 · 1 Dec 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as interfaces_lambda } from 'aws-cdk-lib/interfaces';
const capacityProviderReference: interfaces_lambda.CapacityProviderReference = {
  capacityProviderArn: 'capacityProviderArn',
  capacityProviderName: 'capacityProviderName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_lambda as interfaces_lambda

capacity_provider_reference = interfaces_lambda.CapacityProviderReference(
    capacity_provider_arn="capacityProviderArn",
    capacity_provider_name="capacityProviderName"
)
```

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.interfaces.lambda.*;

CapacityProviderReference capacityProviderReference = CapacityProviderReference.builder()
        .capacityProviderArn("capacityProviderArn")
        .capacityProviderName("capacityProviderName")
        .build();
```

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.Interfaces.Lambda;

var capacityProviderReference = new CapacityProviderReference {
    CapacityProviderArn = "capacityProviderArn",
    CapacityProviderName = "capacityProviderName"
};
```

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"

capacityProviderReference := &CapacityProviderReference{
	CapacityProviderArn: jsii.String("capacityProviderArn"),
	CapacityProviderName: jsii.String("capacityProviderName"),
}
```

## Properties

- `capacityProviderArn`: string (required) — The ARN of the CapacityProvider resource.

- `capacityProviderName`: string (required) — The CapacityProviderName of the CapacityProvider resource.
