< Back
Get-AWSPriceListProductInformation
Post
NAME Get-AWSPriceListProductInformation
SYNOPSIS
This cmdlet evaluates the data in the AWS Price List API json and returns information about products that match
the search criteria.
SYNTAX
Get-AWSPriceListProductInformation -Path <String> -Filter <Hashtable> [<CommonParameters>]
DESCRIPTION
The cmdlet parses the json in a specified file on disk retrieved from the price list API or downloads it directly
from the provided Url. It matches products
against the specified attributes. This is useful to find say all of the different SKUs and Operation codes for
db.m4.large instances in US East (N. Virginia).
PARAMETERS
-Path <String>
The path to the downloaded price list API file.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Filter <Hashtable>
The attributes used to match specific skus in the price list API. The filter will look like: @{"location" =
"US East (N. Virginia)"; "instanceType" = "db.m4.large"; "databaseEngine" = "PostgreSQL"}. The key values will
be matched against the product attribute key values.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Management.Automation.PSCustomObject
NOTES
AUTHOR: Michael Haken
LAST UPDATE: 1/16/2019
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-AWSProductInformation -Product AmazonRDS -Filter @{"location" = "US East (N. Virginia)"; "instanceType"
= "db.m4.large"; "databaseEngine" = "PostgreSQL"}
Gets matching RDS skus for the attributes specified
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-AWSPriceListProductInformation -Url
https://pricing.us-east-1.amazonaws.com ... index.json -Filter @{"location" = "US
East (N. Virginia)"; "instanceType" = "db.m4.large"; "databaseEngine" = "PostgreSQL"}
Gets matching RDS skus for the attributes specified
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-AWSPriceListProductInformation -Product AmazonEC2 -Filter @{"location" = "US East (N. Virginia)";
"instanceType" = "m4.large"}
Gets matching EC2 skus for the attributes specified
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-AWSPriceListProductInformation -Path index.json -Filter @{"location" = "US East (N. Virginia)";
"instanceType" = "m4.large"}
Gets matching EC2 skus for the attributes specified
RELATED LINKS
SYNOPSIS
This cmdlet evaluates the data in the AWS Price List API json and returns information about products that match
the search criteria.
SYNTAX
Get-AWSPriceListProductInformation -Path <String> -Filter <Hashtable> [<CommonParameters>]
DESCRIPTION
The cmdlet parses the json in a specified file on disk retrieved from the price list API or downloads it directly
from the provided Url. It matches products
against the specified attributes. This is useful to find say all of the different SKUs and Operation codes for
db.m4.large instances in US East (N. Virginia).
PARAMETERS
-Path <String>
The path to the downloaded price list API file.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Filter <Hashtable>
The attributes used to match specific skus in the price list API. The filter will look like: @{"location" =
"US East (N. Virginia)"; "instanceType" = "db.m4.large"; "databaseEngine" = "PostgreSQL"}. The key values will
be matched against the product attribute key values.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Management.Automation.PSCustomObject
NOTES
AUTHOR: Michael Haken
LAST UPDATE: 1/16/2019
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-AWSProductInformation -Product AmazonRDS -Filter @{"location" = "US East (N. Virginia)"; "instanceType"
= "db.m4.large"; "databaseEngine" = "PostgreSQL"}
Gets matching RDS skus for the attributes specified
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-AWSPriceListProductInformation -Url
https://pricing.us-east-1.amazonaws.com ... index.json -Filter @{"location" = "US
East (N. Virginia)"; "instanceType" = "db.m4.large"; "databaseEngine" = "PostgreSQL"}
Gets matching RDS skus for the attributes specified
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-AWSPriceListProductInformation -Product AmazonEC2 -Filter @{"location" = "US East (N. Virginia)";
"instanceType" = "m4.large"}
Gets matching EC2 skus for the attributes specified
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-AWSPriceListProductInformation -Path index.json -Filter @{"location" = "US East (N. Virginia)";
"instanceType" = "m4.large"}
Gets matching EC2 skus for the attributes specified
RELATED LINKS