Skip to content

list_fulfillment_options async

list_fulfillment_options(
    product_id: ProductId,
    *,
    config_overrides: Optional[AsyncMarketplaceDiscoveryClientConfig] = None,
    locale: Optional[Locale] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
) -> ListFulfillmentOptionsOutput

Retrieves the fulfillment options available for a product, including deployment details such as version information, operating systems, usage instructions, and release notes. The operation returns results in pages. Use nextToken to retrieve the next page.

Parameters:

  • locale (Optional[Locale], default: None ) –

    The preferred locale for response content, as a Best Current Practice 47 (BCP 47) language tag or a comma-separated priority list of language tags. See Locale for supported values, constraints, fallback behavior, and the default locale. If you omit this field, the service returns content in the default locale.

  • product_id (ProductId) –

    The unique identifier of the product for which to list fulfillment options.

  • max_results (Optional[int], default: None ) –

    The maximum number of fulfillment options to return in each call. If you omit this field, the default is 25. Use nextToken to retrieve the next page.

  • next_token (Optional[NextToken], default: None ) –

    If the service returns nextToken, more results are available. The value of nextToken is a unique pagination token for each page. Make the call again with the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. An expired pagination token returns a ValidationException.

Raises:

  • AccessDeniedException –

    You don't have sufficient access to perform this action. Verify that you have the required permissions.

  • InternalServerException –

    Unexpected error during processing of the request.

  • ThrottlingException –

    The request was denied due to request throttling. Reduce the frequency of your requests and retry.

  • ValidationException –

    The input fails to satisfy the constraints specified by the service. Check the reason field for the constraint that failed.

  • ResourceNotFoundException –

    The specified resource doesn't exist. Verify that the identifier is correct.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Examples:

List AMI Fulfillment Options

>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleAmiId')
List API Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleApiId')
List CloudFormation Template Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleCftId')
List Container Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleContainerId')
List Helm Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleHelmId')
List EKS Add-On Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleEksId')
List EC2 Image Builder Component Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleImageBuilderId')
List Data Exchange Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleDataExchangeId')
List Professional Services Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleProServId')
List SaaS Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleSaasId')
List SageMaker Algorithm Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleSmAlgoId')
List SageMaker Model Fulfillment Options
>>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleSmModelId')
Source code in docs_src/capo_marketplace_discovery/_services/async_marketplace_discovery.py
async def list_fulfillment_options(
    self,
    product_id: "capo_marketplace_discovery.types.product_id.ProductId",
    *,
    config_overrides: Optional[AsyncMarketplaceDiscoveryClientConfig] = None,
    locale: Optional["capo_marketplace_discovery.types.locale.Locale"] = None,
    max_results: Optional[int] = None,
    next_token: Optional[
        "capo_marketplace_discovery.types.next_token.NextToken"
    ] = None,
) -> "capo_marketplace_discovery.types.list_fulfillment_options_output.ListFulfillmentOptionsOutput":
    """<p>Retrieves the fulfillment options available for a product, including deployment details such as version information, operating systems, usage instructions, and release notes. The operation returns results in pages. Use <code>nextToken</code> to retrieve the next page.</p>

    Args:
        locale: <p>The preferred locale for response content, as a Best Current Practice 47 (BCP 47) language tag or a comma-separated priority list of language tags. See <code>Locale</code> for supported values, constraints, fallback behavior, and the default locale. If you omit this field, the service returns content in the default locale.</p>
        product_id: <p>The unique identifier of the product for which to list fulfillment options.</p>
        max_results: <p>The maximum number of fulfillment options to return in each call. If you omit this field, the default is 25. Use <code>nextToken</code> to retrieve the next page.</p>
        next_token: <p>If the service returns <code>nextToken</code>, more results are available. The value of <code>nextToken</code> is a unique pagination token for each page. Make the call again with the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. An expired pagination token returns a <code>ValidationException</code>.</p>

    Raises:
        capo_marketplace_discovery.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action. Verify that you have the required permissions.</p>
        capo_marketplace_discovery.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of the request.</p>
        capo_marketplace_discovery.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling. Reduce the frequency of your requests and retry.</p>
        capo_marketplace_discovery.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service. Check the <code>reason</code> field for the constraint that failed.</p>
        capo_marketplace_discovery.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource doesn't exist. Verify that the identifier is correct.</p>
        capo_marketplace_discovery.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        List AMI Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleAmiId')
        List API Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleApiId')
        List CloudFormation Template Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleCftId')
        List Container Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleContainerId')
        List Helm Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleHelmId')
        List EKS Add-On Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleEksId')
        List EC2 Image Builder Component Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleImageBuilderId')
        List Data Exchange Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleDataExchangeId')
        List Professional Services Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleProServId')
        List SaaS Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleSaasId')
        List SageMaker Algorithm Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleSmAlgoId')
        List SageMaker Model Fulfillment Options

        >>> await client.list_fulfillment_options(locale='en-US', product_id='prod-sampleSmModelId')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_marketplace_discovery.types.list_fulfillment_options_input.ListFulfillmentOptionsInput]",
    ) -> AsyncOperationResponse[
        "capo_marketplace_discovery.types.list_fulfillment_options_output.ListFulfillmentOptionsOutput"
    ]:
        import capo_marketplace_discovery._operations.aws_marketplace_discovery.list_fulfillment_options

        (
            output,
            http_response,
        ) = await capo_marketplace_discovery._operations.aws_marketplace_discovery.list_fulfillment_options.async_list_fulfillment_options(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListFulfillmentOptions")
    )
    input_: capo_marketplace_discovery.types.list_fulfillment_options_input.ListFulfillmentOptionsInput = {
        "product_id": product_id
    }
    if locale is not None:
        input_["locale"] = locale
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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