Interface AWSAPICallViaCloudTrail.MixedInstancesPolicy
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AWSAPICallViaCloudTrail.MixedInstancesPolicy.Jsii$Proxy
- Enclosing class:
AWSAPICallViaCloudTrail
@Stability(Experimental)
public static interface AWSAPICallViaCloudTrail.MixedInstancesPolicy
extends software.amazon.jsii.JsiiSerializable
(experimental) 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 software.amazon.awscdk.mixins.preview.services.autoscaling.events.*;
Object overrides;
MixedInstancesPolicy mixedInstancesPolicy = MixedInstancesPolicy.builder()
.instancesDistribution(InstancesDistribution.builder()
.onDemandAllocationStrategy(List.of("onDemandAllocationStrategy"))
.onDemandBaseCapacity(List.of("onDemandBaseCapacity"))
.onDemandPercentageAboveBaseCapacity(List.of("onDemandPercentageAboveBaseCapacity"))
.spotAllocationStrategy(List.of("spotAllocationStrategy"))
.spotInstancePools(List.of("spotInstancePools"))
.build())
.launchTemplate(LaunchTemplate1.builder()
.launchTemplateSpecification(LaunchTemplateSpecification.builder()
.launchTemplateName(List.of("launchTemplateName"))
.version(List.of("version"))
.build())
.overrides(List.of(overrides))
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAWSAPICallViaCloudTrail.MixedInstancesPolicystatic final classAn implementation forAWSAPICallViaCloudTrail.MixedInstancesPolicy -
Method Summary
Modifier and TypeMethodDescriptionbuilder()(experimental) instancesDistribution property.(experimental) launchTemplate property.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstancesDistribution
@Stability(Experimental) @Nullable default AWSAPICallViaCloudTrail.InstancesDistribution getInstancesDistribution()(experimental) 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.Matchfor more advanced matching options.Default: - Do not filter on this field
-
getLaunchTemplate
@Stability(Experimental) @Nullable default AWSAPICallViaCloudTrail.LaunchTemplate1 getLaunchTemplate()(experimental) 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.Matchfor more advanced matching options.Default: - Do not filter on this field
-
builder
-