| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.EC2.ModifyInstanceAttribute
Description
Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.
To modify some attributes, the instance must be stopped. For more information, see Modifying Attributes of a Stopped Instance in the AmazonElastic Compute Cloud User Guide.
- data ModifyInstanceAttribute
- modifyInstanceAttribute :: Text -> ModifyInstanceAttribute
- mia1Attribute :: Lens' ModifyInstanceAttribute (Maybe InstanceAttributeName)
- mia1BlockDeviceMappings :: Lens' ModifyInstanceAttribute [InstanceBlockDeviceMappingSpecification]
- mia1DisableApiTermination :: Lens' ModifyInstanceAttribute (Maybe AttributeBooleanValue)
- mia1DryRun :: Lens' ModifyInstanceAttribute (Maybe Bool)
- mia1EbsOptimized :: Lens' ModifyInstanceAttribute (Maybe AttributeBooleanValue)
- mia1Groups :: Lens' ModifyInstanceAttribute [Text]
- mia1InstanceId :: Lens' ModifyInstanceAttribute Text
- mia1InstanceInitiatedShutdownBehavior :: Lens' ModifyInstanceAttribute (Maybe AttributeValue)
- mia1InstanceType :: Lens' ModifyInstanceAttribute (Maybe AttributeValue)
- mia1Kernel :: Lens' ModifyInstanceAttribute (Maybe AttributeValue)
- mia1Ramdisk :: Lens' ModifyInstanceAttribute (Maybe AttributeValue)
- mia1SourceDestCheck :: Lens' ModifyInstanceAttribute (Maybe AttributeBooleanValue)
- mia1SriovNetSupport :: Lens' ModifyInstanceAttribute (Maybe AttributeValue)
- mia1UserData :: Lens' ModifyInstanceAttribute (Maybe BlobAttributeValue)
- mia1Value :: Lens' ModifyInstanceAttribute (Maybe Text)
- data ModifyInstanceAttributeResponse
- modifyInstanceAttributeResponse :: ModifyInstanceAttributeResponse
Request
data ModifyInstanceAttribute Source
Instances
Request constructor
modifyInstanceAttribute Source
Arguments
| :: Text | |
| -> ModifyInstanceAttribute |
ModifyInstanceAttribute constructor.
The fields accessible through corresponding lenses are:
mia1Attribute::MaybeInstanceAttributeNamemia1BlockDeviceMappings::[InstanceBlockDeviceMappingSpecification]mia1DisableApiTermination::MaybeAttributeBooleanValuemia1DryRun::MaybeBoolmia1EbsOptimized::MaybeAttributeBooleanValuemia1Groups::[Text]mia1InstanceId::Textmia1InstanceInitiatedShutdownBehavior::MaybeAttributeValuemia1InstanceType::MaybeAttributeValuemia1Kernel::MaybeAttributeValuemia1Ramdisk::MaybeAttributeValuemia1SourceDestCheck::MaybeAttributeBooleanValuemia1SriovNetSupport::MaybeAttributeValuemia1UserData::MaybeBlobAttributeValuemia1Value::MaybeText
Request lenses
mia1Attribute :: Lens' ModifyInstanceAttribute (Maybe InstanceAttributeName) Source
The name of the attribute.
mia1BlockDeviceMappings :: Lens' ModifyInstanceAttribute [InstanceBlockDeviceMappingSpecification] Source
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 theBlock Device Mapping when Launching an Instance in the Amazon Elastic ComputeCloud User Guide.
mia1DisableApiTermination :: Lens' ModifyInstanceAttribute (Maybe AttributeBooleanValue) Source
If the value is true, you can't terminate the instance using the Amazon EC2
console, CLI, or API; otherwise, you can.
mia1EbsOptimized :: Lens' ModifyInstanceAttribute (Maybe AttributeBooleanValue) Source
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.
mia1Groups :: Lens' ModifyInstanceAttribute [Text] Source
- 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.
For example, if you want the instance to be in sg-1a1a1a1a and sg-9b9b9b9b, specify 'GroupId.1=sg-1a1a1a1a' and 'GroupId.2=sg-9b9b9b9b'.
mia1InstanceId :: Lens' ModifyInstanceAttribute Text Source
The ID of the instance.
mia1InstanceInitiatedShutdownBehavior :: Lens' ModifyInstanceAttribute (Maybe AttributeValue) Source
Specifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
mia1InstanceType :: Lens' ModifyInstanceAttribute (Maybe AttributeValue) Source
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.
mia1Kernel :: Lens' ModifyInstanceAttribute (Maybe AttributeValue) Source
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.
mia1Ramdisk :: Lens' ModifyInstanceAttribute (Maybe AttributeValue) Source
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.
mia1SourceDestCheck :: Lens' ModifyInstanceAttribute (Maybe AttributeBooleanValue) Source
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.
mia1SriovNetSupport :: Lens' ModifyInstanceAttribute (Maybe AttributeValue) Source
Set to simple to enable enhanced networking for the instance.
There is no way to disable enhanced networking at this time.
This option is supported only for HVM instances. Specifying this option with a PV instance can make it unreachable.
mia1UserData :: Lens' ModifyInstanceAttribute (Maybe BlobAttributeValue) Source
Changes the instance's user data to the specified value.
mia1Value :: Lens' ModifyInstanceAttribute (Maybe Text) Source
A new value for the attribute. Use only with the kernel, ramdisk, userData, disableApiTermination, or intanceInitiateShutdownBehavior attribute.