paws.compute (version 0.1.0)

ec2_describe_instance_attribute: Describes the specified attribute of the specified instance

Description

Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType \| kernel \| ramdisk \| userData \| disableApiTermination \| instanceInitiatedShutdownBehavior \| rootDeviceName \| blockDeviceMapping \| productCodes \| sourceDestCheck \| groupSet \| ebsOptimized \| sriovNetSupport

Usage

ec2_describe_instance_attribute(Attribute, DryRun, InstanceId)

Arguments

Attribute

[required] The instance attribute.

Note: The enaSupport attribute is not supported at this time.

DryRun

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 is UnauthorizedOperation.

InstanceId

[required] The ID of the instance.

Request syntax

svc$describe_instance_attribute(
  Attribute = "instanceType"|"kernel"|"ramdisk"|"userData"|"disableApiTermination"|"instanceInitiatedShutdownBehavior"|"rootDeviceName"|"blockDeviceMapping"|"productCodes"|"sourceDestCheck"|"groupSet"|"ebsOptimized"|"sriovNetSupport"|"enaSupport",
  DryRun = TRUE|FALSE,
  InstanceId = "string"
)

Examples

Run this code
# NOT RUN {
# This example describes the instance type of the specified instance.
# 
# }
# NOT RUN {
svc$describe_instance_attribute(
  Attribute = "instanceType",
  InstanceId = "i-1234567890abcdef0"
)
# }
# NOT RUN {
# This example describes the ``disableApiTermination`` attribute of the
# specified instance.
# 
# }
# NOT RUN {
svc$describe_instance_attribute(
  Attribute = "disableApiTermination",
  InstanceId = "i-1234567890abcdef0"
)
# }
# NOT RUN {
# This example describes the ``blockDeviceMapping`` attribute of the
# specified instance.
# 
# }
# NOT RUN {
svc$describe_instance_attribute(
  Attribute = "blockDeviceMapping",
  InstanceId = "i-1234567890abcdef0"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab