CapacityProviderReference Struct
A reference to a CapacityProvider resource.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as interfaces_ecs } from 'aws-cdk-lib/interfaces';
const capacityProviderReference: interfaces_ecs.CapacityProviderReference = {
capacityProviderName: 'capacityProviderName',
};
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_ecs as interfaces_ecs
capacity_provider_reference = interfaces_ecs.CapacityProviderReference(
capacity_provider_name="capacityProviderName"
)
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.ecs.*;
CapacityProviderReference capacityProviderReference = CapacityProviderReference.builder()
.capacityProviderName("capacityProviderName")
.build();
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.ECS;
var capacityProviderReference = new CapacityProviderReference {
CapacityProviderName = "capacityProviderName"
};
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{
CapacityProviderName: jsii.String("capacityProviderName"),
}
Properties
capacityProviderNamestringcapacity_provider_namestrcapacityProviderNameStringCapacityProviderNamestringCapacityProviderName*stringrequired#The Name of the CapacityProvider resource.