list_deployment_configuration_jobs
¶
list_deployment_configuration_jobs(
catalog: Catalog,
product_id: ResourceId,
delivery_option_type: DeliveryOptionType,
*,
config_overrides: Optional[MarketplaceDeploymentClientConfig] = 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:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–There was an internal service exception.
-
ThrottlingException–Too many requests.
-
ValidationException–An error occurred during validation.
-
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.
>>> 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.
>>> 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.
>>> 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/marketplace_deployment.py
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 | |