Skip to content

get_deployment_configuration_job async

get_deployment_configuration_job(
    catalog: Catalog,
    product_id: ResourceId,
    delivery_option_type: DeliveryOptionType,
    job_id: DeploymentConfigurationJobId,
    *,
    config_overrides: Optional[AsyncMarketplaceDeploymentClientConfig] = None,
) -> GetDeploymentConfigurationJobResponse

Returns the details of a deployment configuration job. Only the seller that started the job can call this operation.

If the job doesn't belong to the product and delivery option in the request path, the operation returns a ResourceNotFoundException.

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.

  • job_id (DeploymentConfigurationJobId) –

    The unique identifier of the deployment configuration job.

Raises:

Examples:

Get a succeeded job A succeeded job includes endedAt and the ARN of the deployment configuration that it published.

>>> await client.get_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', job_id='1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d')
Get a failed job
A failed job includes errorCode, message, and endedAt.
>>> await client.get_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', job_id='9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c')
Get job fails when the job isn't found
If the job doesn't exist, or doesn't belong to the product and delivery option in the request path, the operation returns a ResourceNotFoundException.
>>> await client.get_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', job_id='abcd1234abcd1234abcd1234abcd1234')
Get job fails for a caller that didn't start the job
If the job exists but the caller isn't the seller that started it, the operation returns an AccessDeniedException.
>>> await client.get_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', job_id='1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d')
Get job fails for a caller not authorized for the product
When the job does not exist and the caller is not authorized for the product, the result is AccessDeniedException.
>>> await client.get_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', job_id='abcd1234abcd1234abcd1234abcd1234')
Source code in docs_src/capo_marketplace_deployment/_services/async_marketplace_deployment.py
async def get_deployment_configuration_job(
    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",
    job_id: "capo_marketplace_deployment.types.deployment_configuration_job_id.DeploymentConfigurationJobId",
    *,
    config_overrides: Optional[AsyncMarketplaceDeploymentClientConfig] = None,
) -> "capo_marketplace_deployment.types.get_deployment_configuration_job_response.GetDeploymentConfigurationJobResponse":
    """<p>Returns the details of a deployment configuration job. Only the seller that started the job can call this operation.</p> <p>If the job doesn't belong to the product and delivery option in the request path, the operation returns a <code>ResourceNotFoundException</code>.</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>
        job_id: <p>The unique identifier of the deployment configuration job.</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.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource wasn't found.</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:
        Get a succeeded job
        A succeeded job includes endedAt and the ARN of the deployment configuration that it published.

        >>> await client.get_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', job_id='1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d')
        Get a failed job
        A failed job includes errorCode, message, and endedAt.

        >>> await client.get_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', job_id='9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c')
        Get job fails when the job isn't found
        If the job doesn't exist, or doesn't belong to the product and delivery option in the request path, the operation returns a ResourceNotFoundException.

        >>> await client.get_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', job_id='abcd1234abcd1234abcd1234abcd1234')
        Get job fails for a caller that didn't start the job
        If the job exists but the caller isn't the seller that started it, the operation returns an AccessDeniedException.

        >>> await client.get_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', job_id='1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d')
        Get job fails for a caller not authorized for the product
        When the job does not exist and the caller is not authorized for the product, the result is AccessDeniedException.

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

    async def _handler(
        req: "AsyncOperationRequest[capo_marketplace_deployment.types.get_deployment_configuration_job_request.GetDeploymentConfigurationJobRequest]",
    ) -> AsyncOperationResponse[
        "capo_marketplace_deployment.types.get_deployment_configuration_job_response.GetDeploymentConfigurationJobResponse"
    ]:
        import capo_marketplace_deployment._operations.awsmp_deployment_parameters_service.get_deployment_configuration_job

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetDeploymentConfigurationJob")
    )
    input_: capo_marketplace_deployment.types.get_deployment_configuration_job_request.GetDeploymentConfigurationJobRequest = {
        "catalog": catalog,
        "product_id": product_id,
        "delivery_option_type": delivery_option_type,
        "job_id": job_id,
    }

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