describeTags
inline suspend fun AutoScalingClient.describeTags(crossinline block: DescribeTagsRequest.Builder.() -> Unit): DescribeTagsResponse
Describes the specified tags.
You can use filters to limit the results. For example, you can query for the tags for a specific Auto Scaling group. You can specify multiple values for a filter. A tag must match at least one of the specified values for it to be included in the results.
You can also specify multiple filters. The result includes information for a particular tag only if it matches all the filters. If there's no match, no special message is returned.
For more information, see Tag Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide.
Samples
import aws.sdk.kotlin.services.autoscaling.model.Filter
fun main() {
//sampleStart
// This example describes the tags for the specified Auto Scaling group.
val resp = autoScalingClient.describeTags {
filters = listOf<Filter>(
Filter {
values = listOf<String>(
"my-auto-scaling-group"
)
name = "auto-scaling-group"
}
)
}
//sampleEnd
}