InstanceRequirementsProperty Struct
Specifications that define the characteristics and constraints for compute instances used by the capacity provider.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const instanceRequirementsProperty: lambda.CfnCapacityProvider.InstanceRequirementsProperty = {
allowedInstanceTypes: ['allowedInstanceTypes'],
architectures: ['architectures'],
excludedInstanceTypes: ['excludedInstanceTypes'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_
instance_requirements_property = lambda.CfnCapacityProvider.InstanceRequirementsProperty(
allowed_instance_types=["allowedInstanceTypes"],
architectures=["architectures"],
excluded_instance_types=["excludedInstanceTypes"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
InstanceRequirementsProperty instanceRequirementsProperty = InstanceRequirementsProperty.builder()
.allowedInstanceTypes(List.of("allowedInstanceTypes"))
.architectures(List.of("architectures"))
.excludedInstanceTypes(List.of("excludedInstanceTypes"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var instanceRequirementsProperty = new InstanceRequirementsProperty {
AllowedInstanceTypes = new [] { "allowedInstanceTypes" },
Architectures = new [] { "architectures" },
ExcludedInstanceTypes = new [] { "excludedInstanceTypes" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
instanceRequirementsProperty := &InstanceRequirementsProperty{
AllowedInstanceTypes: []*string{
jsii.String("allowedInstanceTypes"),
},
Architectures: []*string{
jsii.String("architectures"),
},
ExcludedInstanceTypes: []*string{
jsii.String("excludedInstanceTypes"),
},
}
Properties
allowedInstanceTypesoptionalstring[]allowed_instance_typesoptionaltyping.List[str]allowedInstanceTypesoptionalList<String>AllowedInstanceTypesoptionalstring[]AllowedInstanceTypesoptional*[]*string#A list of EC2 instance types that the capacity provider is allowed to use.
If not specified, all compatible instance types are allowed.
architecturesoptionalstring[]architecturesoptionaltyping.List[str]architecturesoptionalList<String>Architecturesoptionalstring[]Architecturesoptional*[]*string#A list of supported CPU architectures for compute instances.
Valid values include x86_64 and arm64 .
excludedInstanceTypesoptionalstring[]excluded_instance_typesoptionaltyping.List[str]excludedInstanceTypesoptionalList<String>ExcludedInstanceTypesoptionalstring[]ExcludedInstanceTypesoptional*[]*string#A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.