Class CfnCapacityProviderPropsMixin.InstanceRequirementsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnCapacityProviderPropsMixin.InstanceRequirementsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.InstanceRequirementsProperty>
- Enclosing interface:
CfnCapacityProviderPropsMixin.InstanceRequirementsProperty
@Stability(Stable)
public static final class CfnCapacityProviderPropsMixin.InstanceRequirementsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.InstanceRequirementsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedInstanceTypes(List<String> allowedInstanceTypes) architectures(List<String> architectures) build()Builds the configured instance.excludedInstanceTypes(List<String> excludedInstanceTypes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedInstanceTypes
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceRequirementsProperty.Builder allowedInstanceTypes(List<String> allowedInstanceTypes) Sets the value ofCfnCapacityProviderPropsMixin.InstanceRequirementsProperty.getAllowedInstanceTypes()- Parameters:
allowedInstanceTypes- A list of EC2 instance types that the capacity provider is allowed to use. If not specified, all compatible instance types are allowed.- Returns:
this
-
architectures
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceRequirementsProperty.Builder architectures(List<String> architectures) - Parameters:
architectures- A list of supported CPU architectures for compute instances. Valid values includex86_64andarm64.- Returns:
this
-
excludedInstanceTypes
@Stability(Stable) public CfnCapacityProviderPropsMixin.InstanceRequirementsProperty.Builder excludedInstanceTypes(List<String> excludedInstanceTypes) Sets the value ofCfnCapacityProviderPropsMixin.InstanceRequirementsProperty.getExcludedInstanceTypes()- Parameters:
excludedInstanceTypes- A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.InstanceRequirementsProperty>- Returns:
- a new instance of
CfnCapacityProviderPropsMixin.InstanceRequirementsProperty - Throws:
NullPointerException- if any required attribute was not provided
-