aws-cdk-lib.aws_ec2.CfnSpotFleet.SpotPlacementProperty

interface SpotPlacementProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnSpotFleet.SpotPlacementProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnSpotFleet_SpotPlacementProperty
Javasoftware.amazon.awscdk.services.ec2.CfnSpotFleet.SpotPlacementProperty
Pythonaws_cdk.aws_ec2.CfnSpotFleet.SpotPlacementProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnSpotFleet » 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 { aws_ec2 as ec2 } from 'aws-cdk-lib';
const spotPlacementProperty: ec2.CfnSpotFleet.SpotPlacementProperty = {
  availabilityZone: 'availabilityZone',
  groupName: 'groupName',
  tenancy: 'tenancy',
};

Properties

NameTypeDescription
availabilityZone?stringThe Availability Zone.
groupName?stringThe name of the placement group.
tenancy?stringThe 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.