interface MixedInstancesPolicy
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AutoScaling.Events.AWSAPICallViaCloudTrail.MixedInstancesPolicy |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsautoscaling/events#AWSAPICallViaCloudTrail_MixedInstancesPolicy |
Java | software.amazon.awscdk.mixins.preview.services.autoscaling.events.AWSAPICallViaCloudTrail.MixedInstancesPolicy |
Python | aws_cdk.mixins_preview.aws_autoscaling.events.AWSAPICallViaCloudTrail.MixedInstancesPolicy |
TypeScript | @aws-cdk/mixins-preview ยป aws_autoscaling ยป events ยป AWSAPICallViaCloudTrail ยป MixedInstancesPolicy |
Type definition for MixedInstancesPolicy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as autoscaling_events } from '@aws-cdk/mixins-preview/aws-autoscaling';
declare const overrides: any;
const mixedInstancesPolicy: autoscaling_events.AWSAPICallViaCloudTrail.MixedInstancesPolicy = {
instancesDistribution: {
onDemandAllocationStrategy: ['onDemandAllocationStrategy'],
onDemandBaseCapacity: ['onDemandBaseCapacity'],
onDemandPercentageAboveBaseCapacity: ['onDemandPercentageAboveBaseCapacity'],
spotAllocationStrategy: ['spotAllocationStrategy'],
spotInstancePools: ['spotInstancePools'],
},
launchTemplate: {
launchTemplateSpecification: {
launchTemplateName: ['launchTemplateName'],
version: ['version'],
},
overrides: [overrides],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| instances | Instances | instancesDistribution property. |
| launch | Launch | launchTemplate property. |
instancesDistribution?
Type:
Instances
(optional, default: Do not filter on this field)
instancesDistribution property.
Specify an array of string values to match this event if the actual value of instancesDistribution is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
launchTemplate?
Type:
Launch
(optional, default: Do not filter on this field)
launchTemplate property.
Specify an array of string values to match this event if the actual value of launchTemplate is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

.NET
Go
Java
Python
TypeScript