Instance / Action / reset_attribute
reset_attribute#
- EC2.Instance.reset_attribute(**kwargs)#
Resets an attribute of an instance to its default value. To reset the
kernelorramdisk, the instance must be in a stopped state. To reset thesourceDestCheck, the instance can be either running or stopped.The
sourceDestCheckattribute controls whether source/destination checking is enabled. The default value istrue, which means checking is enabled. This value must befalsefor a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon VPC User Guide.See also: AWS API Documentation
Request Syntax
response = instance.reset_attribute( Attribute='instanceType'|'kernel'|'ramdisk'|'userData'|'disableApiTermination'|'instanceInitiatedShutdownBehavior'|'rootDeviceName'|'blockDeviceMapping'|'productCodes'|'sourceDestCheck'|'groupSet'|'ebsOptimized'|'sriovNetSupport'|'enaSupport'|'enclaveOptions'|'disableApiStop', DryRun=True|False, )
- Parameters:
Attribute (string) –
[REQUIRED]
The attribute to reset.
Warning
You can only reset the following attributes:
kernel|ramdisk|sourceDestCheck.DryRun (boolean) – 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 isUnauthorizedOperation.
- Returns:
None