Skip to content

list_deployment_configuration_jobs async

list_deployment_configuration_jobs(
    catalog: Catalog,
    product_id: ResourceId,
    delivery_option_type: DeliveryOptionType,
    *,
    config_overrides: Optional[AsyncMarketplaceDeploymentClientConfig] = None,
    max_results: Optional[DeploymentConfigurationMaxResults] = None,
    next_token: Optional[DeploymentConfigurationNextToken] = None,
) -> ListDeploymentConfigurationJobsResponse

Lists the deployment configuration jobs that you started for a product and delivery option, ordered from newest to oldest. Results are paginated. Use the nextToken parameter to retrieve additional results.

If you haven't started any jobs for the product and delivery option, the operation returns an empty jobs list.

Parameters:

  • catalog (Catalog) –

    The catalog related to the request. Fixed value: AWSMarketplace

  • product_id (ResourceId) –

    The ID of the AWS Marketplace product, for example prod-1234567890abc.

  • delivery_option_type (DeliveryOptionType) –

    The delivery option type of the deployment configuration.

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

    The maximum number of jobs to return in a single page. Valid values are 1 through 100. The default is 20.

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

    The token for the next page of results. Use the value returned in the previous response.

Raises:

Examples:

List jobs, newest first Returns the caller's jobs ordered by newest createdAt first, with an optional nextToken when more pages exist.

>>> await client.list_deployment_configuration_jobs(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', max_results=20)
List jobs returns an empty list when an authorized seller has no jobs
When the caller is authorized for the product and has not started any jobs, the result is an empty jobs list with no nextToken.
>>> await client.list_deployment_configuration_jobs(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service')
List jobs fails for a caller not authorized for the product
If the caller isn't authorized for the product, the operation returns an AccessDeniedException.
>>> await client.list_deployment_configuration_jobs(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service')
Source code in docs_src/capo_marketplace_deployment/_services/async_marketplace_deployment.py
async def list_deployment_configuration_jobs(
    self,
    catalog: "capo_marketplace_deployment.types.catalog.Catalog",
    product_id: "capo_marketplace_deployment.types.resource_id.ResourceId",
    delivery_option_type: "capo_marketplace_deployment.types.delivery_option_type.DeliveryOptionType",
    *,
    config_overrides: Optional[AsyncMarketplaceDeploymentClientConfig] = None,
    max_results: Optional[
        "capo_marketplace_deployment.types.deployment_configuration_max_results.DeploymentConfigurationMaxResults"
    ] = None,
    next_token: Optional[
        "capo_marketplace_deployment.types.deployment_configuration_next_token.DeploymentConfigurationNextToken"
    ] = None,
) -> "capo_marketplace_deployment.types.list_deployment_configuration_jobs_response.ListDeploymentConfigurationJobsResponse":
    """<p>Lists the deployment configuration jobs that you started for a product and delivery option, ordered from newest to oldest. Results are paginated. Use the <code>nextToken</code> parameter to retrieve additional results.</p> <p>If you haven't started any jobs for the product and delivery option, the operation returns an empty <code>jobs</code> list.</p>

    Args:
        catalog: <p>The catalog related to the request. Fixed value: <code>AWSMarketplace</code> </p>
        product_id: <p>The ID of the AWS Marketplace product, for example <code>prod-1234567890abc</code>.</p>
        delivery_option_type: <p>The delivery option type of the deployment configuration.</p>
        max_results: <p>The maximum number of jobs to return in a single page. Valid values are 1 through 100. The default is 20.</p>
        next_token: <p>The token for the next page of results. Use the value returned in the previous response.</p>

    Raises:
        capo_marketplace_deployment.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_marketplace_deployment.errors.internal_server_exception.InternalServerException: <p>There was an internal service exception.</p>
        capo_marketplace_deployment.errors.throttling_exception.ThrottlingException: <p>Too many requests.</p>
        capo_marketplace_deployment.errors.validation_exception.ValidationException: <p>An error occurred during validation.</p>
        capo_marketplace_deployment.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        List jobs, newest first
        Returns the caller's jobs ordered by newest createdAt first, with an optional nextToken when more pages exist.

        >>> await client.list_deployment_configuration_jobs(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', max_results=20)
        List jobs returns an empty list when an authorized seller has no jobs
        When the caller is authorized for the product and has not started any jobs, the result is an empty jobs list with no nextToken.

        >>> await client.list_deployment_configuration_jobs(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service')
        List jobs fails for a caller not authorized for the product
        If the caller isn't authorized for the product, the operation returns an AccessDeniedException.

        >>> await client.list_deployment_configuration_jobs(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_marketplace_deployment.types.list_deployment_configuration_jobs_request.ListDeploymentConfigurationJobsRequest]",
    ) -> AsyncOperationResponse[
        "capo_marketplace_deployment.types.list_deployment_configuration_jobs_response.ListDeploymentConfigurationJobsResponse"
    ]:
        import capo_marketplace_deployment._operations.awsmp_deployment_parameters_service.list_deployment_configuration_jobs

        (
            output,
            http_response,
        ) = await capo_marketplace_deployment._operations.awsmp_deployment_parameters_service.list_deployment_configuration_jobs.async_list_deployment_configuration_jobs(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListDeploymentConfigurationJobs")
    )
    input_: capo_marketplace_deployment.types.list_deployment_configuration_jobs_request.ListDeploymentConfigurationJobsRequest = {
        "catalog": catalog,
        "product_id": product_id,
        "delivery_option_type": delivery_option_type,
    }
    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