interface InstanceRequirementsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lambda.CfnCapacityProvider.InstanceRequirementsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#CfnCapacityProvider_InstanceRequirementsProperty |
Java | software.amazon.awscdk.services.lambda.CfnCapacityProvider.InstanceRequirementsProperty |
Python | aws_cdk.aws_lambda.CfnCapacityProvider.InstanceRequirementsProperty |
TypeScript | aws-cdk-lib » aws_lambda » CfnCapacityProvider » InstanceRequirementsProperty |
Specifications for the types of EC2 instances that the capacity provider can use.
Example
// 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'],
};
Properties
| Name | Type | Description |
|---|---|---|
| allowed | string[] | A list of instance types that the capacity provider can use. |
| architectures? | string[] | The instruction set architecture for EC2 instances. |
| excluded | string[] | A list of instance types that the capacity provider should not use. |
allowedInstanceTypes?
Type:
string[]
(optional)
A list of instance types that the capacity provider can use.
Supports wildcards (for example, m5.*).
architectures?
Type:
string[]
(optional)
The instruction set architecture for EC2 instances.
Specify either x86_64 or arm64.
excludedInstanceTypes?
Type:
string[]
(optional)
A list of instance types that the capacity provider should not use.
Takes precedence over AllowedInstanceTypes.

.NET
Go
Java
Python
TypeScript