Class CfnSpotFleet.SpotPlacementProperty
Describes Spot Instance placement.
Inheritance
System.Object
CfnSpotFleet.SpotPlacementProperty
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SpotPlacementProperty : Object, CfnSpotFleet.ISpotPlacementProperty
Syntax (vb)
Public Class SpotPlacementProperty
Inherits Object
Implements CfnSpotFleet.ISpotPlacementProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var spotPlacementProperty = new SpotPlacementProperty {
AvailabilityZone = "availabilityZone",
GroupName = "groupName",
Tenancy = "tenancy"
};
Synopsis
Constructors
SpotPlacementProperty() |
Properties
AvailabilityZone | The Availability Zone. |
GroupName | The name of the placement group. |
Tenancy | The tenancy of the instance (if the instance is running in a VPC). |
Constructors
SpotPlacementProperty()
public SpotPlacementProperty()
Properties
AvailabilityZone
The Availability Zone.
public string AvailabilityZone { get; set; }
Property Value
System.String
Remarks
To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
GroupName
The name of the placement group.
public string GroupName { get; set; }
Property Value
System.String
Remarks
Tenancy
The tenancy of the instance (if the instance is running in a VPC).
public string Tenancy { get; set; }
Property Value
System.String
Remarks
An instance with a tenancy of dedicated
runs on single-tenant hardware. The host
tenancy is not supported for Spot Instances.