interface InstanceRequirementsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins.CfnCapacityProviderPropsMixin.InstanceRequirementsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslambda/mixins#CfnCapacityProviderPropsMixin_InstanceRequirementsProperty |
Java | software.amazon.awscdk.mixins.preview.services.lambda.mixins.CfnCapacityProviderPropsMixin.InstanceRequirementsProperty |
Python | aws_cdk.mixins_preview.aws_lambda.mixins.CfnCapacityProviderPropsMixin.InstanceRequirementsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lambda » mixins » CfnCapacityProviderPropsMixin » InstanceRequirementsProperty |
Specifications that define the characteristics and constraints for compute instances used by the capacity provider.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as lambda_mixins } from '@aws-cdk/mixins-preview/aws-lambda';
const instanceRequirementsProperty: lambda_mixins.CfnCapacityProviderPropsMixin.InstanceRequirementsProperty = {
allowedInstanceTypes: ['allowedInstanceTypes'],
architectures: ['architectures'],
excludedInstanceTypes: ['excludedInstanceTypes'],
};
Properties
| Name | Type | Description |
|---|---|---|
| allowed | string[] | A list of EC2 instance types that the capacity provider is allowed to use. |
| architectures? | string[] | A list of supported CPU architectures for compute instances. |
| excluded | string[] | A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements. |
allowedInstanceTypes?
Type:
string[]
(optional)
A list of EC2 instance types that the capacity provider is allowed to use.
If not specified, all compatible instance types are allowed.
architectures?
Type:
string[]
(optional)
A list of supported CPU architectures for compute instances.
Valid values include x86_64 and arm64 .
excludedInstanceTypes?
Type:
string[]
(optional)
A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.

.NET
Go
Java
Python
TypeScript