NAME
Paws::EC2::ModifyInstanceAttribute - Arguments for method ModifyInstanceAttribute on Paws::EC2
DESCRIPTION
This class represents the parameters used for calling the method ModifyInstanceAttribute on the Amazon Elastic Compute Cloud service. Use the attributes of this class as arguments to method ModifyInstanceAttribute.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyInstanceAttribute.
As an example:
$service_obj->ModifyInstanceAttribute(Att1 => $value1, Att2 => $value2, ...);
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
ATTRIBUTES
Attribute => Str
The name of the attribute.
Valid values are: "instanceType"
, "kernel"
, "ramdisk"
, "userData"
, "disableApiTermination"
, "instanceInitiatedShutdownBehavior"
, "rootDeviceName"
, "blockDeviceMapping"
, "productCodes"
, "sourceDestCheck"
, "groupSet"
, "ebsOptimized"
, "sriovNetSupport"
, "enaSupport"
BlockDeviceMappings => ArrayRef[Paws::EC2::InstanceBlockDeviceMappingSpecification]
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.
DisableApiTermination => Paws::EC2::AttributeBooleanValue
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 parameter for Spot Instances.
DryRun => Bool
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
EbsOptimized => Paws::EC2::AttributeBooleanValue
Specifies whether the instance is optimized for Amazon 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.
EnaSupport => Paws::EC2::AttributeBooleanValue
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.
Groups => ArrayRef[Str|Undef]
[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.
REQUIRED InstanceId => Str
The ID of the instance.
InstanceInitiatedShutdownBehavior => Paws::EC2::AttributeValue
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
InstanceType => Paws::EC2::AttributeValue
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
.
Kernel => Paws::EC2::AttributeValue
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.
Ramdisk => Paws::EC2::AttributeValue
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.
SourceDestCheck => Paws::EC2::AttributeBooleanValue
Specifies whether source/destination checking is enabled. A value of true
means that checking is enabled, and false
means that checking is disabled. This value must be false
for a NAT instance to perform NAT.
SriovNetSupport => Paws::EC2::AttributeValue
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.
UserData => Paws::EC2::BlobAttributeValue
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.
Value => Str
A new value for the attribute. Use only with the kernel
, ramdisk
, userData
, disableApiTermination
, or instanceInitiatedShutdownBehavior
attribute.
SEE ALSO
This class forms part of Paws, documenting arguments for method ModifyInstanceAttribute in Paws::EC2
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues