interface SpotPlacementProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnSpotFleetPropsMixin.SpotPlacementProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnSpotFleetPropsMixin_SpotPlacementProperty |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnSpotFleetPropsMixin.SpotPlacementProperty |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnSpotFleetPropsMixin.SpotPlacementProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnSpotFleetPropsMixin » SpotPlacementProperty |
Describes Spot Instance placement.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const spotPlacementProperty: ec2_mixins.CfnSpotFleetPropsMixin.SpotPlacementProperty = {
availabilityZone: 'availabilityZone',
groupName: 'groupName',
tenancy: 'tenancy',
};
Properties
| Name | Type | Description |
|---|---|---|
| availability | string | The Availability Zone. |
| group | string | The name of the placement group. |
| tenancy? | string | The tenancy of the instance (if the instance is running in a VPC). |
availabilityZone?
Type:
string
(optional)
The Availability Zone.
To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
groupName?
Type:
string
(optional)
The name of the placement group.
tenancy?
Type:
string
(optional)
The tenancy of the instance (if the instance is running in a VPC).
An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot Instances.

.NET
Go
Java
Python
TypeScript