![]() |
![]()
| ![]() |
![]()
NAMEPaws::EC2::ModifyInstanceAttribute - Arguments for method ModifyInstanceAttribute on Paws::EC2 DESCRIPTIONThis 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. SYNOPSISmy $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> ATTRIBUTESAttribute => StrThe name of the attribute. Valid values are: "instanceType", "kernel", "ramdisk", "userData", "disableApiTermination", "instanceInitiatedShutdownBehavior", "rootDeviceName", "blockDeviceMapping", "productCodes", "sourceDestCheck", "groupSet", "ebsOptimized", "sriovNetSupport", "enaSupport", "enclaveOptions" 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 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM) in the Amazon EC2 User Guide. DisableApiTermination => Paws::EC2::AttributeBooleanValueIf 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 => BoolChecks 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::AttributeBooleanValueSpecifies 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::AttributeBooleanValueSet 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] 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. REQUIRED InstanceId => StrThe ID of the instance. InstanceInitiatedShutdownBehavior => Paws::EC2::AttributeValueSpecifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown). InstanceType => Paws::EC2::AttributeValueChanges 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". Kernel => Paws::EC2::AttributeValueChanges 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). Ramdisk => Paws::EC2::AttributeValueChanges 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). SourceDestCheck => Paws::EC2::AttributeBooleanValueEnable 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. SriovNetSupport => Paws::EC2::AttributeValueSet 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::BlobAttributeValueChanges 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. Value => StrA new value for the attribute. Use only with the "kernel", "ramdisk", "userData", "disableApiTermination", or "instanceInitiatedShutdownBehavior" attribute. SEE ALSOThis class forms part of Paws, documenting arguments for method ModifyInstanceAttribute in Paws::EC2 BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|