TargetGroupsConfigProperty Struct
Describes the target groups to attach to a Spot Fleet.
Spot Fleet registers the running Spot Instances with these target groups.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const targetGroupsConfigProperty: ec2.CfnSpotFleet.TargetGroupsConfigProperty = {
targetGroups: [{
arn: 'arn',
}],
};
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_ec2 as ec2
target_groups_config_property = ec2.CfnSpotFleet.TargetGroupsConfigProperty(
target_groups=[ec2.CfnSpotFleet.TargetGroupProperty(
arn="arn"
)]
)
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.ec2.*;
TargetGroupsConfigProperty targetGroupsConfigProperty = TargetGroupsConfigProperty.builder()
.targetGroups(List.of(TargetGroupProperty.builder()
.arn("arn")
.build()))
.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.EC2;
var targetGroupsConfigProperty = new TargetGroupsConfigProperty {
TargetGroups = new [] { new TargetGroupProperty {
Arn = "arn"
} }
};
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"
targetGroupsConfigProperty := &TargetGroupsConfigProperty{
TargetGroups: []interface{}{
&TargetGroupProperty{
Arn: jsii.String("arn"),
},
},
}
Properties
targetGroupsIResolvable | IResolvable | CfnSpotFleet.TargetGroupProperty[]target_groupstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TargetGroupProperty]]]targetGroupsIResolvableTargetGroupsIResolvableTargetGroupsinterface{} required #One or more target groups.