provision_product
¶
provision_product(
provisioned_product_name: ProvisionedProductName,
provision_token: IdempotencyToken,
*,
config_overrides: Optional[ServiceCatalogClientConfig] = 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/service_catalog.py
5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 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 | |