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
5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 | |