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:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
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:
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
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 | |