describe_instance_attribute
¶
describe_instance_attribute(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
>>> 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.
Source code in docs_src/capo_ec2/_services/ec2.py
26273 26274 26275 26276 26277 26278 26279 26280 26281 26282 26283 26284 26285 26286 26287 26288 26289 26290 26291 26292 26293 26294 26295 26296 26297 26298 26299 26300 26301 26302 26303 26304 26305 26306 26307 26308 26309 26310 26311 26312 26313 26314 26315 26316 26317 26318 26319 26320 26321 26322 26323 26324 26325 26326 26327 26328 26329 26330 26331 26332 26333 26334 26335 | |