You can do it in the following way:
"HY3BZPP2B6K8MSJF" : {
"sku" : "HY3BZPP2B6K8MSJF",
"productFamily" : "Storage",
"attributes" : {
"servicecode" : "AmazonEC2",
"location" : "US East (N. Virginia)",
"locationType" : "AWS Region",
"storageMedia" : "SSD-backed",
"volumeType" : "General Purpose",
"maxVolumeSize" : "16 TiB",
"maxIopsvolume" : "10000",
"maxIopsBurstPerformance" : "3000 for volumes <= 1 TiB",
"maxThroughputvolume" : "160 MB/sec",
"usagetype" : "EBS:VolumeUsage.gp2",
"operation" : "",
"servicename" : "Amazon Elastic Compute Cloud"
}
},
From there check 'sku' code and you will see something like this:
"HY3BZPP2B6K8MSJF" : {
"HY3BZPP2B6K8MSJF.JRTCKXETXF" : {
"offerTermCode" : "JRTCKXETXF",
"sku" : "HY3BZPP2B6K8MSJF",
"effectiveDate" : "2018-06-01T00:00:00Z",
"priceDimensions" : {
"HY3BZPP2B6K8MSJF.JRTCKXETXF.6YS6EN2CT7" : {
"rateCode" : "HY3BZPP2B6K8MSJF.JRTCKXETXF.6YS6EN2CT7",
"description" : "$0.10 per GB-month of General Purpose SSD (gp2) provisioned storage - US East (Northern Virginia)",
"beginRange" : "0",
"endRange" : "Inf",
"unit" : "GB-Mo",
"pricePerUnit" : {
"USD" : "0.1000000000"
},
"appliesTo" : [ ]
}
},
"termAttributes" : { }
}
},
For more details, you can read here.
Interested in learning AWS? Check out: aws certification training.