This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the Amazon Web Services Service Terms (Section 1.10).
This returns the URL that you can retrieve your Price List file from. This URL is based on the PriceListArn and FileFormat that you retrieve from the ListPriceLists response.
Parameters:
-
price_list_arn
(PriceListArn)
–
The unique identifier that maps to where your Price List files are located. PriceListArn can be obtained from the ListPriceLists response.
-
file_format
(FileFormat)
–
The format that you want to retrieve your Price List files in. The FileFormat can be obtained from the ListPriceLists response.
Raises:
Source code in docs_src/capo_pricing/_services/async_pricing.py
| async def get_price_list_file_url(
self,
price_list_arn: "capo_pricing.types.price_list_arn.PriceListArn",
file_format: "capo_pricing.types.file_format.FileFormat",
*,
config_overrides: Optional[AsyncPricingClientConfig] = None,
) -> "capo_pricing.types.get_price_list_file_url_response.GetPriceListFileUrlResponse":
"""<p> <i> <b>This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the <a href="https://aws.amazon.com/service-terms/">Amazon Web Services Service Terms</a> (Section 1.10).</b> </i> </p> <p>This returns the URL that you can retrieve your Price List file from. This URL is based on the <code>PriceListArn</code> and <code>FileFormat</code> that you retrieve from the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_ListPriceLists.html">ListPriceLists</a> response. </p>
Args:
price_list_arn: <p>The unique identifier that maps to where your Price List files are located. <code>PriceListArn</code> can be obtained from the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_ListPriceLists.html">ListPriceLists</a> response. </p>
file_format: <p>The format that you want to retrieve your Price List files in. The <code>FileFormat</code> can be obtained from the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_ListPriceLists.html">ListPriceLists</a> response. </p>
Raises:
capo_pricing.errors.access_denied_exception.AccessDeniedException: <p>General authentication failure. The request wasn't signed correctly.</p>
capo_pricing.errors.internal_error_exception.InternalErrorException: <p>An error on the server occurred during the processing of your request. Try again later.</p>
capo_pricing.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters had an invalid value.</p>
capo_pricing.errors.not_found_exception.NotFoundException: <p>The requested resource can't be found.</p>
capo_pricing.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource can't be found.</p>
capo_pricing.errors.throttling_exception.ThrottlingException: <p>You've made too many requests exceeding service quotas. </p>
capo_pricing.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_pricing.types.get_price_list_file_url_request.GetPriceListFileUrlRequest]",
) -> AsyncOperationResponse[
"capo_pricing.types.get_price_list_file_url_response.GetPriceListFileUrlResponse"
]:
import capo_pricing._operations.aws_price_list_service.get_price_list_file_url
(
output,
http_response,
) = await capo_pricing._operations.aws_price_list_service.get_price_list_file_url.async_get_price_list_file_url(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetPriceListFileUrl")
)
input_: capo_pricing.types.get_price_list_file_url_request.GetPriceListFileUrlRequest = {
"price_list_arn": price_list_arn,
"file_format": file_format,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|