Paws::EC2::ModifyInstanceAttribute - Arguments for method ModifyInstanceAttribute on Paws::EC2
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.
my $ec2 = Paws->service('EC2'); # To modify the instance type # This example modifies the instance type of the specified stopped instance. $ec2->ModifyInstanceAttribute( 'InstanceId' => 'i-1234567890abcdef0', 'InstanceType' => { 'Value' => 'm5.large' } ); # To enable enhanced networking # This example enables enhanced networking for the specified stopped instance. $ec2->ModifyInstanceAttribute( 'EnaSupport' => { 'Value' => 1 }, 'InstanceId' => 'i-1234567890abcdef0' );
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. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/ec2/ModifyInstanceAttribute
The name of the attribute.
Valid values are: "instanceType", "kernel", "ramdisk", "userData", "disableApiTermination", "instanceInitiatedShutdownBehavior", "rootDeviceName", "blockDeviceMapping", "productCodes", "sourceDestCheck", "groupSet", "ebsOptimized", "sriovNetSupport", "enaSupport", "enclaveOptions"
"instanceType"
"kernel"
"ramdisk"
"userData"
"disableApiTermination"
"instanceInitiatedShutdownBehavior"
"rootDeviceName"
"blockDeviceMapping"
"productCodes"
"sourceDestCheck"
"groupSet"
"ebsOptimized"
"sriovNetSupport"
"enaSupport"
"enclaveOptions"
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.
DeleteOnTermination
true
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 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM) in the Amazon EC2 User Guide.
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.
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.
DryRunOperation
UnauthorizedOperation
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.
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.
[EC2-VPC] Replaces the security groups of the instance with the specified security groups. 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.
The ID of the instance.
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Changes the instance type to the specified value. For more information, see Instance types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the Amazon EC2 User Guide. If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.
InvalidInstanceAttributeValue
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 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
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 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives. If the value is true, source/destination checks are enabled; otherwise, they are disabled. The default value is true. You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls.
Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the instance.
simple
There is no way to disable enhanced networking with the Intel 82599 Virtual Function interface at this time.
Changes the instance's user data to the specified value. If you are using an Amazon Web Services 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.
A new value for the attribute. Use only with the kernel, ramdisk, userData, disableApiTermination, or instanceInitiatedShutdownBehavior attribute.
kernel
ramdisk
userData
disableApiTermination
instanceInitiatedShutdownBehavior
This class forms part of Paws, documenting arguments for method ModifyInstanceAttribute in Paws::EC2
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
To install Paws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws
CPAN shell
perl -MCPAN -e shell install Paws
For more information on module installation, please visit the detailed CPAN module installation guide.