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, useTagResourceandUntagResource. -
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
clientTokenmust be provided with the request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
InternalServerException–There was an internal service exception.
-
ResourceNotFoundException–The specified resource wasn't found.
-
ThrottlingException–Too many requests.
-
ValidationException–An error occurred during validation.
-
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'}})
Source code in docs_src/capo_marketplace_deployment/_services/marketplace_deployment.py
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 | |