provision_product
async
¶
provision_product(
provisioned_product_name: ProvisionedProductName,
provision_token: IdempotencyToken,
*,
config_overrides: Optional[AsyncServiceCatalogClientConfig] = None,
accept_language: Optional[AcceptLanguage] = None,
product_id: Optional[Id] = None,
product_name: Optional[ProductViewName] = None,
provisioning_artifact_id: Optional[Id] = None,
provisioning_artifact_name: Optional[ProvisioningArtifactName] = None,
path_id: Optional[Id] = None,
path_name: Optional[PortfolioDisplayName] = None,
provisioning_parameters: Optional[ProvisioningParameters] = None,
provisioning_preferences: Optional[ProvisioningPreferences] = None,
tags: Optional[Tags] = None,
notification_arns: Optional[NotificationArns] = None,
) -> ProvisionProductOutput
Provisions the specified product.
A provisioned product is a resourced instance of a product. For example, provisioning a product that's based on an CloudFormation template launches an CloudFormation stack and its underlying resources. You can check the status of this request using DescribeRecord.
If the request contains a tag key with an empty list of values, there's a tag conflict for that key. Don't include conflicted keys as tags, or this will cause the error "Parameter validation failed: Missing required parameter in Tags[N]:Value".
When provisioning a product that's been added to a portfolio, you must grant your user, group, or role access to the portfolio. For more information, see Granting users access in the Service Catalog User Guide.
Parameters:
-
accept_language(Optional[AcceptLanguage], default:None) –The language code.
-
jp- Japanese -
zh- Chinese
-
-
product_id(Optional[Id], default:None) –The product identifier. You must provide the name or ID, but not both.
-
product_name(Optional[ProductViewName], default:None) –The name of the product. You must provide the name or ID, but not both.
-
provisioning_artifact_id(Optional[Id], default:None) –The identifier of the provisioning artifact. You must provide the name or ID, but not both.
-
provisioning_artifact_name(Optional[ProvisioningArtifactName], default:None) –The name of the provisioning artifact. You must provide the name or ID, but not both.
-
path_id(Optional[Id], default:None) –The path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths. You must provide the name or ID, but not both.
-
path_name(Optional[PortfolioDisplayName], default:None) –The name of the path. You must provide the name or ID, but not both.
-
provisioned_product_name(ProvisionedProductName) –A user-friendly name for the provisioned product. This value must be unique for the Amazon Web Services account and cannot be updated after the product is provisioned.
-
provisioning_parameters(Optional[ProvisioningParameters], default:None) –Parameters specified by the administrator that are required for provisioning the product.
-
provisioning_preferences(Optional[ProvisioningPreferences], default:None) –An object that contains information about the provisioning preferences for a stack set.
-
tags(Optional[Tags], default:None) –One or more tags.
-
notification_arns(Optional[NotificationArns], default:None) –Passed to CloudFormation. The SNS topic ARNs to which to publish stack-related events.
-
provision_token(IdempotencyToken) –An idempotency token that uniquely identifies the provisioning request.
Raises:
-
DuplicateResourceException–The specified resource is a duplicate.
-
InvalidParametersException–One or more parameters provided to the operation are not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_service_catalog/_services/async_service_catalog.py
6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 | |