Class AWSAPICallViaCloudTrail.MixedInstancesPolicy.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscaling.events.AWSAPICallViaCloudTrail.MixedInstancesPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.MixedInstancesPolicy>
- Enclosing interface:
AWSAPICallViaCloudTrail.MixedInstancesPolicy
@Stability(Experimental)
public static final class AWSAPICallViaCloudTrail.MixedInstancesPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<AWSAPICallViaCloudTrail.MixedInstancesPolicy>
A builder for
AWSAPICallViaCloudTrail.MixedInstancesPolicy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instancesDistribution(AWSAPICallViaCloudTrail.InstancesDistribution instancesDistribution) Sets the value ofAWSAPICallViaCloudTrail.MixedInstancesPolicy.getInstancesDistribution()launchTemplate(AWSAPICallViaCloudTrail.LaunchTemplate1 launchTemplate) Sets the value ofAWSAPICallViaCloudTrail.MixedInstancesPolicy.getLaunchTemplate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instancesDistribution
@Stability(Experimental) public AWSAPICallViaCloudTrail.MixedInstancesPolicy.Builder instancesDistribution(AWSAPICallViaCloudTrail.InstancesDistribution instancesDistribution) Sets the value ofAWSAPICallViaCloudTrail.MixedInstancesPolicy.getInstancesDistribution()- Parameters:
instancesDistribution- 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 theaws_events.Matchfor more advanced matching options.- Returns:
this
-
launchTemplate
@Stability(Experimental) public AWSAPICallViaCloudTrail.MixedInstancesPolicy.Builder launchTemplate(AWSAPICallViaCloudTrail.LaunchTemplate1 launchTemplate) Sets the value ofAWSAPICallViaCloudTrail.MixedInstancesPolicy.getLaunchTemplate()- Parameters:
launchTemplate- 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 theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AWSAPICallViaCloudTrail.MixedInstancesPolicy>- Returns:
- a new instance of
AWSAPICallViaCloudTrail.MixedInstancesPolicy - Throws:
NullPointerException- if any required attribute was not provided
-