describe_auto_scaling_instances
async
¶
describe_auto_scaling_instances(
*,
config_overrides: Optional[AsyncAutoScalingClientConfig] = None,
instance_ids: Optional[InstanceIds] = None,
include_managed_resources: Optional[IncludeManagedResources] = None,
max_records: Optional[MaxRecords] = None,
next_token: Optional[XmlString] = None,
) -> AutoScalingInstancesType
Gets information about the Auto Scaling instances in the account and Region.
Parameters:
-
instance_ids(Optional[InstanceIds], default:None) –The IDs of the instances. If you omit this property, all Auto Scaling instances are described. If you specify an ID that does not exist, it is ignored with no error.
Array Members: Maximum number of 50 items.
-
include_managed_resources(Optional[IncludeManagedResources], default:None) –Specifies whether to include managed Auto Scaling instances in the response. When set to
true(default), the response includes managed Auto Scaling instances. -
max_records(Optional[MaxRecords], default:None) –The maximum number of items to return with this call. The default value is
50and the maximum value is50.A response can contain fewer items than the value specified by
MaxRecords, even when more items are available. To retrieve the additional items, use theNextTokenvalue in a subsequent call rather than relying on the number of items in the response. -
next_token(Optional[XmlString], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
Raises:
-
InvalidNextToken–The
NextTokenvalue is not valid. -
ResourceContentionFault–You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe one or more Auto Scaling instances This example describes the specified Auto Scaling instance.
Source code in docs_src/capo_auto_scaling/_services/async_auto_scaling.py
2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 | |