Class CfnCapacityProvider.InstanceRequirementsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnCapacityProvider.InstanceRequirementsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProvider.InstanceRequirementsProperty>
- Enclosing interface:
CfnCapacityProvider.InstanceRequirementsProperty
@Stability(Stable)
public static final class CfnCapacityProvider.InstanceRequirementsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProvider.InstanceRequirementsProperty>
A builder for
CfnCapacityProvider.InstanceRequirementsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedInstanceTypes(List<String> allowedInstanceTypes) architectures(List<String> architectures) Sets the value ofCfnCapacityProvider.InstanceRequirementsProperty.getArchitectures()build()Builds the configured instance.excludedInstanceTypes(List<String> excludedInstanceTypes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedInstanceTypes
@Stability(Stable) public CfnCapacityProvider.InstanceRequirementsProperty.Builder allowedInstanceTypes(List<String> allowedInstanceTypes) - Parameters:
allowedInstanceTypes- A list of instance types that the capacity provider can use. Supports wildcards (for example, m5.*).- Returns:
this
-
architectures
@Stability(Stable) public CfnCapacityProvider.InstanceRequirementsProperty.Builder architectures(List<String> architectures) Sets the value ofCfnCapacityProvider.InstanceRequirementsProperty.getArchitectures()- Parameters:
architectures- The instruction set architecture for EC2 instances. Specify either x86_64 or arm64.- Returns:
this
-
excludedInstanceTypes
@Stability(Stable) public CfnCapacityProvider.InstanceRequirementsProperty.Builder excludedInstanceTypes(List<String> excludedInstanceTypes) - Parameters:
excludedInstanceTypes- A list of instance types that the capacity provider should not use. Takes precedence over AllowedInstanceTypes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProvider.InstanceRequirementsProperty>- Returns:
- a new instance of
CfnCapacityProvider.InstanceRequirementsProperty - Throws:
NullPointerException- if any required attribute was not provided
-