describeServices
inline suspend fun PricingClient.describeServices(crossinline block: DescribeServicesRequest.Builder.() -> Unit): DescribeServicesResponse
Returns the metadata for one service or a list of the metadata for all services. Use this without a service code to get the service codes for all services. Use it with a service code, such as AmazonEC2
, to get information specific to that service, such as the attribute names available for that service. For example, some of the attribute names available for EC2 are volumeType
, maxIopsVolume
, operation
, locationType
, and instanceCapacity10xlarge
.
Samples
fun main() {
//sampleStart
// Retrieves the service for the given Service Code.
val resp = pricingClient.describeServices {
serviceCode = "AmazonEC2"
formatVersion = "aws_v1"
maxResults = 1
}
//sampleEnd
}