describe_instance_attribute
async
¶
describe_instance_attribute(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
instance_id: Optional[InstanceId] = None,
attribute: Optional[InstanceAttributeName] = None,
) -> InstanceAttribute
Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Available attributes include SQL license exemption configuration for instances registered with the SQL LE service.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
instance_id(Optional[InstanceId], default:None) –The ID of the instance.
-
attribute(Optional[InstanceAttributeName], default:None) –The instance attribute.
Note that the
enaSupportattribute is not supported.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe the block device mapping for an instance
This example describes the blockDeviceMapping attribute of the specified instance.
>>> await client.describe_instance_attribute(instance_id='i-1234567890abcdef0', attribute='blockDeviceMapping')
To describe the instance type
This example describes the instance type of the specified instance.
>>> await client.describe_instance_attribute(instance_id='i-1234567890abcdef0', attribute='instanceType')
Source code in docs_src/capo_ec2/_services/async_ec2.py
26635 26636 26637 26638 26639 26640 26641 26642 26643 26644 26645 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 26657 26658 26659 26660 26661 26662 26663 26664 26665 26666 26667 26668 26669 26670 26671 26672 26673 26674 26675 26676 26677 26678 26679 26680 26681 26682 26683 26684 26685 26686 26687 26688 26689 26690 26691 26692 26693 26694 26695 26696 26697 26698 26699 26700 | |