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
6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 | |