Skip to content

start_deployment_configuration_job

start_deployment_configuration_job(
    catalog: Catalog,
    product_id: ResourceId,
    delivery_option_type: DeliveryOptionType,
    configuration: DeploymentConfigurationDetail,
    *,
    config_overrides: Optional[MarketplaceDeploymentClientConfig] = None,
    tags: Optional[TagsMap] = None,
    client_token: Optional[ClientToken] = None,
) -> StartDeploymentConfigurationJobResponse

Starts a job that publishes a deployment configuration for a product and delivery option. The job runs asynchronously. Use GetDeploymentConfigurationJob to track its status. When the job reaches the SUCCEEDED status, its configuration becomes the active deployment configuration for the product and delivery option.

The populated member of configuration must match the deliveryOptionType in the request path.

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.

  • configuration (DeploymentConfigurationDetail) –

    The deployment configuration to publish.

  • tags (Optional[TagsMap], default: None ) –

    A map of key-value pairs, where each pair represents a tag to apply to the deployment configuration. Only the request that creates the deployment configuration can apply tags. If the deployment configuration already exists, a request that includes one or more tags fails with a ValidationException. To change tags on an existing deployment configuration, use TagResource and UntagResource.

  • client_token (Optional[ClientToken], default: None ) –

    A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same token and the same input, the service returns the original job instead of starting a new one. If you reuse a token with different input, the request fails with a ConflictException.

    This field is not required if you're calling using an AWS SDK. Otherwise, a clientToken must be provided with the request.

Raises:

Examples:

Start a Data-as-a-Service deployment configuration job Starts a job that publishes a Data-as-a-Service deployment configuration. The job starts in the IN_PROGRESS status. Call GetDeploymentConfigurationJob to check when it reaches SUCCEEDED or FAILED.

>>> client.start_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', configuration={'dataAsAService': {'fulfillmentUrl': 'https://example.com/daas/register'}}, client_token='some-unique-uuid-between-32-and-64-characters')
Start fails when the product or catalog doesn't exist
If the product or catalog doesn't exist, the operation returns a ResourceNotFoundException.
>>> client.start_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-does-not-exist', delivery_option_type='data-as-a-service', configuration={'dataAsAService': {'fulfillmentUrl': 'https://example.com/daas/register'}})
Start fails when the caller is not the product seller
If the caller isn't the seller of the product, the operation returns an AccessDeniedException.
>>> client.start_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', configuration={'dataAsAService': {'fulfillmentUrl': 'https://example.com/daas/register'}})
Source code in docs_src/capo_marketplace_deployment/_services/marketplace_deployment.py
def start_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",
    configuration: "capo_marketplace_deployment.types.deployment_configuration_detail.DeploymentConfigurationDetail",
    *,
    config_overrides: Optional[MarketplaceDeploymentClientConfig] = None,
    tags: Optional["capo_marketplace_deployment.types.tags_map.TagsMap"] = None,
    client_token: Optional[
        "capo_marketplace_deployment.types.client_token.ClientToken"
    ] = None,
) -> "capo_marketplace_deployment.types.start_deployment_configuration_job_response.StartDeploymentConfigurationJobResponse":
    """<p>Starts a job that publishes a deployment configuration for a product and delivery option. The job runs asynchronously. Use <code>GetDeploymentConfigurationJob</code> to track its status. When the job reaches the <code>SUCCEEDED</code> status, its configuration becomes the active deployment configuration for the product and delivery option.</p> <p>The populated member of <code>configuration</code> must match the <code>deliveryOptionType</code> in the request path.</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>
        configuration: <p>The deployment configuration to publish.</p>
        tags: <p>A map of key-value pairs, where each pair represents a tag to apply to the deployment configuration. Only the request that creates the deployment configuration can apply tags. If the deployment configuration already exists, a request that includes one or more tags fails with a <code>ValidationException</code>. To change tags on an existing deployment configuration, use <code>TagResource</code> and <code>UntagResource</code>.</p>
        client_token: <p>A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same token and the same input, the service returns the original job instead of starting a new one. If you reuse a token with different input, the request fails with a <code>ConflictException</code>.</p> <note> <p>This field is not required if you're calling using an AWS SDK. Otherwise, a <code>clientToken</code> must be provided with the request.</p> </note>

    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.conflict_exception.ConflictException: <p>The request configuration has conflicts. For details, see the accompanying error message.</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:
        Start a Data-as-a-Service deployment configuration job
        Starts a job that publishes a Data-as-a-Service deployment configuration. The job starts in the IN_PROGRESS status. Call GetDeploymentConfigurationJob to check when it reaches SUCCEEDED or FAILED.

        >>> client.start_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', configuration={'dataAsAService': {'fulfillmentUrl': 'https://example.com/daas/register'}}, client_token='some-unique-uuid-between-32-and-64-characters')
        Start fails when the product or catalog doesn't exist
        If the product or catalog doesn't exist, the operation returns a ResourceNotFoundException.

        >>> client.start_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-does-not-exist', delivery_option_type='data-as-a-service', configuration={'dataAsAService': {'fulfillmentUrl': 'https://example.com/daas/register'}})
        Start fails when the caller is not the product seller
        If the caller isn't the seller of the product, the operation returns an AccessDeniedException.

        >>> client.start_deployment_configuration_job(catalog='AWSMarketplace', product_id='product-1234', delivery_option_type='data-as-a-service', configuration={'dataAsAService': {'fulfillmentUrl': 'https://example.com/daas/register'}})
    """

    def _handler(
        req: "OperationRequest[capo_marketplace_deployment.types.start_deployment_configuration_job_request.StartDeploymentConfigurationJobRequest]",
    ) -> OperationResponse[
        "capo_marketplace_deployment.types.start_deployment_configuration_job_response.StartDeploymentConfigurationJobResponse"
    ]:
        import capo_marketplace_deployment._operations.awsmp_deployment_parameters_service.start_deployment_configuration_job

        output, http_response = (
            capo_marketplace_deployment._operations.awsmp_deployment_parameters_service.start_deployment_configuration_job.start_deployment_configuration_job(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StartDeploymentConfigurationJob")
    )
    input_: capo_marketplace_deployment.types.start_deployment_configuration_job_request.StartDeploymentConfigurationJobRequest = {
        "catalog": catalog,
        "product_id": product_id,
        "delivery_option_type": delivery_option_type,
        "configuration": configuration,
    }
    if tags is not None:
        input_["tags"] = tags
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output