Interface CfnSpotFleet.ISpotPlacementProperty
Describes Spot Instance placement.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ISpotPlacementProperty
Syntax (vb)
Public Interface 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
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). |
Properties
AvailabilityZone
The Availability Zone.
virtual string AvailabilityZone { get; }
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.
virtual string GroupName { get; }
Property Value
System.String
Remarks
Tenancy
The tenancy of the instance (if the instance is running in a VPC).
virtual string Tenancy { get; }
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.