Skip to content

get_provisioned_product_outputs async

get_provisioned_product_outputs(
    *,
    config_overrides: Optional[AsyncServiceCatalogClientConfig] = None,
    accept_language: Optional[AcceptLanguage] = None,
    provisioned_product_id: Optional[Id] = None,
    provisioned_product_name: Optional[ProvisionedProductName] = None,
    output_keys: Optional[OutputKeys] = None,
    page_size: Optional[PageSize] = None,
    page_token: Optional[PageToken] = None,
) -> GetProvisionedProductOutputsOutput

This API takes either a ProvisonedProductId or a ProvisionedProductName, along with a list of one or more output keys, and responds with the key/value pairs of those outputs.

Parameters:

  • accept_language (Optional[AcceptLanguage], default: None ) –

    The language code.

    • jp - Japanese

    • zh - Chinese

  • provisioned_product_id (Optional[Id], default: None ) –

    The identifier of the provisioned product that you want the outputs from.

  • provisioned_product_name (Optional[ProvisionedProductName], default: None ) –

    The name of the provisioned product that you want the outputs from.

  • output_keys (Optional[OutputKeys], default: None ) –

    The list of keys that the API should return with their values. If none are provided, the API will return all outputs of the provisioned product.

  • page_size (Optional[PageSize], default: None ) –

    The maximum number of items to return with this call.

  • page_token (Optional[PageToken], default: None ) –

    The page token for the next set of results. To retrieve the first set of results, use null.

Raises:

Source code in docs_src/capo_service_catalog/_services/async_service_catalog.py
async def get_provisioned_product_outputs(
    self,
    *,
    config_overrides: Optional[AsyncServiceCatalogClientConfig] = None,
    accept_language: Optional[
        "capo_service_catalog.types.accept_language.AcceptLanguage"
    ] = None,
    provisioned_product_id: Optional["capo_service_catalog.types.id.Id"] = None,
    provisioned_product_name: Optional[
        "capo_service_catalog.types.provisioned_product_name.ProvisionedProductName"
    ] = None,
    output_keys: Optional[
        "capo_service_catalog.types.output_keys.OutputKeys"
    ] = None,
    page_size: Optional["capo_service_catalog.types.page_size.PageSize"] = None,
    page_token: Optional["capo_service_catalog.types.page_token.PageToken"] = None,
) -> "capo_service_catalog.types.get_provisioned_product_outputs_output.GetProvisionedProductOutputsOutput":
    """<p>This API takes either a <code>ProvisonedProductId</code> or a <code>ProvisionedProductName</code>, along with a list of one or more output keys, and responds with the key/value pairs of those outputs.</p>

    Args:
        accept_language: <p>The language code.</p> <ul> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - Chinese</p> </li> </ul>
        provisioned_product_id: <p>The identifier of the provisioned product that you want the outputs from.</p>
        provisioned_product_name: <p>The name of the provisioned product that you want the outputs from.</p>
        output_keys: <p>The list of keys that the API should return with their values. If none are provided, the API will return all outputs of the provisioned product.</p>
        page_size: <p>The maximum number of items to return with this call.</p>
        page_token: <p>The page token for the next set of results. To retrieve the first set of results, use null.</p>

    Raises:
        capo_service_catalog.errors.invalid_parameters_exception.InvalidParametersException: <p>One or more parameters provided to the operation are not valid.</p>
        capo_service_catalog.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_service_catalog.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_service_catalog.types.get_provisioned_product_outputs_input.GetProvisionedProductOutputsInput]",
    ) -> AsyncOperationResponse[
        "capo_service_catalog.types.get_provisioned_product_outputs_output.GetProvisionedProductOutputsOutput"
    ]:
        import capo_service_catalog._operations.aws242_service_catalog_service.get_provisioned_product_outputs

        (
            output,
            http_response,
        ) = await capo_service_catalog._operations.aws242_service_catalog_service.get_provisioned_product_outputs.async_get_provisioned_product_outputs(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetProvisionedProductOutputs")
    )
    input_: capo_service_catalog.types.get_provisioned_product_outputs_input.GetProvisionedProductOutputsInput = {}
    if accept_language is not None:
        input_["accept_language"] = accept_language
    if provisioned_product_id is not None:
        input_["provisioned_product_id"] = provisioned_product_id
    if provisioned_product_name is not None:
        input_["provisioned_product_name"] = provisioned_product_name
    if output_keys is not None:
        input_["output_keys"] = output_keys
    if page_size is not None:
        input_["page_size"] = page_size
    if page_token is not None:
        input_["page_token"] = page_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output