Class CfnSpotFleetPropsMixin.SpotPlacementProperty
Describes Spot Instance placement.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnSpotFleetPropsMixin.SpotPlacementProperty : CfnSpotFleetPropsMixin.ISpotPlacementProperty
Syntax (vb)
Public Class CfnSpotFleetPropsMixin.SpotPlacementProperty Implements CfnSpotFleetPropsMixin.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.Mixins.Preview.AWS.EC2.Mixins;
var spotPlacementProperty = new SpotPlacementProperty {
AvailabilityZone = "availabilityZone",
GroupName = "groupName",
Tenancy = "tenancy"
};
Synopsis
Constructors
| SpotPlacementProperty() | Describes Spot Instance placement. |
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()
Describes Spot Instance placement.
public SpotPlacementProperty()
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.Mixins.Preview.AWS.EC2.Mixins;
var spotPlacementProperty = new SpotPlacementProperty {
AvailabilityZone = "availabilityZone",
GroupName = "groupName",
Tenancy = "tenancy"
};
Properties
AvailabilityZone
The Availability Zone.
public string? AvailabilityZone { get; set; }
Property Value
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
Remarks
Tenancy
The tenancy of the instance (if the instance is running in a VPC).
public string? Tenancy { get; set; }
Property Value
Remarks
An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot Instances.