AWSEC2ModifyInstancePlacementRequest

Objective-C

@interface AWSEC2ModifyInstancePlacementRequest

Swift

class AWSEC2ModifyInstancePlacementRequest
  • The affinity setting for the instance.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2Affinity affinity;

    Swift

    var affinity: AWSEC2Affinity { 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 of default or dedicated.

    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.

    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 }
  • Reserved for future use.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable partitionNumber;

    Swift

    var partitionNumber: NSNumber? { get set }
  • The tenancy for the instance.

    For T3 instances, you can’t change the tenancy from dedicated to host, or from host to dedicated. Attempting to make one of these unsupported tenancy changes results in the InvalidTenancy error code.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2HostTenancy tenancy;

    Swift

    var tenancy: AWSEC2HostTenancy { get set }