AWSEC2ModifyInstancePlacementRequest
Objective-C
@interface AWSEC2ModifyInstancePlacementRequest
Swift
class AWSEC2ModifyInstancePlacementRequest
-
The affinity setting for the instance. For more information, see Host affinity in the Amazon EC2 User Guide.
Declaration
Objective-C
@property (nonatomic) AWSEC2Affinity affinity;
Swift
var affinity: AWSEC2Affinity { get set }
-
The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable groupId;
Swift
var groupId: String? { get set }
-
The name of the placement group in which to place the instance. For spread placement groups, the instance must have a tenancy of
default
. For cluster and partition placement groups, the instance must have a tenancy ofdefault
ordedicated
.To remove an instance from a placement group, specify an empty string (“”).
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable groupName;
Swift
var groupName: String? { get set }
-
The ID of the Dedicated Host with which to associate the instance.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable hostId;
Swift
var hostId: String? { get set }
-
The ARN of the host resource group in which to place the instance. The instance must have a tenancy of
host
to specify this parameter.Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable hostResourceGroupArn;
Swift
var hostResourceGroupArn: String? { get set }
-
The ID of the instance that you are modifying.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable instanceId;
Swift
var instanceId: String? { get set }
-
The number of the partition in which to place the instance. Valid only if the placement group strategy is set to
partition
.Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable partitionNumber;
Swift
var partitionNumber: NSNumber? { get set }
-
The tenancy for the instance.
For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of
host
. You can’t change the tenancy fromhost
todedicated
ordefault
. Attempting to make one of these unsupported tenancy changes results in anInvalidRequest
error code.Declaration
Objective-C
@property (nonatomic) AWSEC2HostTenancy tenancy;
Swift
var tenancy: AWSEC2HostTenancy { get set }