Skip to content
v2.278.0

CapacityReservationRequestProperty Struct ​

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 ecs } from 'aws-cdk-lib';
const capacityReservationRequestProperty: ecs.CfnCapacityProvider.CapacityReservationRequestProperty = {
  reservationGroupArn: 'reservationGroupArn',
  reservationPreference: 'reservationPreference',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs

capacity_reservation_request_property = ecs.CfnCapacityProvider.CapacityReservationRequestProperty(
    reservation_group_arn="reservationGroupArn",
    reservation_preference="reservationPreference"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;

CapacityReservationRequestProperty capacityReservationRequestProperty = CapacityReservationRequestProperty.builder()
        .reservationGroupArn("reservationGroupArn")
        .reservationPreference("reservationPreference")
        .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.AWS.ECS;

var capacityReservationRequestProperty = new CapacityReservationRequestProperty {
    ReservationGroupArn = "reservationGroupArn",
    ReservationPreference = "reservationPreference"
};
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"

capacityReservationRequestProperty := &CapacityReservationRequestProperty{
	ReservationGroupArn: jsii.String("reservationGroupArn"),
	ReservationPreference: jsii.String("reservationPreference"),
}

Properties ​

reservationGroupArnoptionalstringreservation_group_arnoptionalstrreservationGroupArnoptionalStringReservationGroupArnoptionalstringReservationGroupArnoptional*string #
reservationPreferenceoptionalstringreservation_preferenceoptionalstrreservationPreferenceoptionalStringReservationPreferenceoptionalstringReservationPreferenceoptional*string #