Cloneable
, ReadLimitInfo
, ToCopyableBuilder<ModifyInstanceAttributeRequest.Builder,ModifyInstanceAttributeRequest>
@Generated("software.amazon.awssdk:codegen") public class ModifyInstanceAttributeRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<ModifyInstanceAttributeRequest.Builder,ModifyInstanceAttributeRequest>
Contains the parameters for ModifyInstanceAttribute.
Modifier and Type | Class | Description |
---|---|---|
static interface |
ModifyInstanceAttributeRequest.Builder |
NOOP
Modifier and Type | Method | Description |
---|---|---|
String |
attribute() |
The name of the attribute.
|
List<InstanceBlockDeviceMappingSpecification> |
blockDeviceMappings() |
Modifies the
DeleteOnTermination attribute for volumes that are currently attached. |
static ModifyInstanceAttributeRequest.Builder |
builder() |
|
Boolean |
disableApiTermination() |
If the value is
true , you can't terminate the instance using the Amazon EC2 console, CLI, or API;
otherwise, you can. |
Boolean |
ebsOptimized() |
Specifies whether the instance is optimized for EBS I/O.
|
Boolean |
enaSupport() |
Set to
true to enable enhanced networking with ENA for the instance. |
boolean |
equals(Object obj) |
|
List<String> |
groups() |
[EC2-VPC] Changes the security groups of the instance.
|
int |
hashCode() |
|
String |
instanceId() |
The ID of the instance.
|
String |
instanceInitiatedShutdownBehavior() |
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
String |
instanceType() |
Changes the instance type to the specified value.
|
String |
kernel() |
Changes the instance's kernel to the specified value.
|
String |
ramdisk() |
Changes the instance's RAM disk to the specified value.
|
static Class<? extends ModifyInstanceAttributeRequest.Builder> |
serializableBuilderClass() |
|
Boolean |
sourceDestCheck() |
Specifies whether source/destination checking is enabled.
|
String |
sriovNetSupport() |
Set to
simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the
instance. |
ModifyInstanceAttributeRequest.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
userData() |
Changes the instance's user data to the specified value.
|
String |
value() |
A new value for the attribute.
|
clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout
public Boolean sourceDestCheck()
Specifies whether source/destination checking is enabled. A value of true
means that checking is
enabled, and false
means checking is disabled. This value must be false
for a NAT
instance to perform NAT.
true
means that
checking is enabled, and false
means checking is disabled. This value must be
false
for a NAT instance to perform NAT.public String attribute()
The name of the attribute.
InstanceAttributeName
public List<InstanceBlockDeviceMappingSpecification> blockDeviceMappings()
Modifies the DeleteOnTermination
attribute for volumes that are currently attached. The volume must
be owned by the caller. If no value is specified for DeleteOnTermination
, the default is
true
and the volume is deleted when the instance is terminated.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
DeleteOnTermination
attribute for volumes that are currently attached. The
volume must be owned by the caller. If no value is specified for DeleteOnTermination
, the
default is true
and the volume is deleted when the instance is terminated.
To add instance store volumes to an Amazon EBS-backed instance, you must add them when you launch the instance. For more information, see Updating the Block Device Mapping when Launching an Instance in the Amazon Elastic Compute Cloud User Guide.
public Boolean disableApiTermination()
If the value is true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API;
otherwise, you can. You cannot use this paramater for Spot Instances.
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or
API; otherwise, you can. You cannot use this paramater for Spot Instances.public Boolean ebsOptimized()
Specifies whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
public Boolean enaSupport()
Set to true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
true
to enable enhanced networking with ENA for the instance.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
public List<String> groups()
[EC2-VPC] Changes the security groups of the instance. You must specify at least one security group, even if it's just the default security group for the VPC. You must specify the security group ID, not the security group name.
public String instanceId()
The ID of the instance.
public String instanceInitiatedShutdownBehavior()
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
public String instanceType()
Changes the instance type to the specified value. For more information, see Instance Types. If the instance
type is not valid, the error returned is InvalidInstanceAttributeValue
.
InvalidInstanceAttributeValue
.public String kernel()
Changes the instance's kernel to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
public String ramdisk()
Changes the instance's RAM disk to the specified value. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB.
public String sriovNetSupport()
Set to simple
to enable enhanced networking with the Intel 82599 Virtual Function interface for the
instance.
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
simple
to enable enhanced networking with the Intel 82599 Virtual Function interface
for the instance.
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
public String userData()
Changes the instance's user data to the specified value. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.
public String value()
A new value for the attribute. Use only with the kernel
, ramdisk
, userData
, disableApiTermination
, or instanceInitiatedShutdownBehavior
attribute.
kernel
, ramdisk
,
userData
, disableApiTermination
, or
instanceInitiatedShutdownBehavior
attribute.public ModifyInstanceAttributeRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ModifyInstanceAttributeRequest.Builder,ModifyInstanceAttributeRequest>
public static ModifyInstanceAttributeRequest.Builder builder()
public static Class<? extends ModifyInstanceAttributeRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.