Provisions or modifies a product based on the resource changes for the specified plan.
Parameters:
-
accept_language
(Optional[AcceptLanguage], default:
None
)
–
The language code.
-
jp - Japanese
-
zh - Chinese
-
plan_id
(Id)
–
-
idempotency_token
(IdempotencyToken)
–
A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
Raises:
Source code in docs_src/capo_service_catalog/_services/service_catalog.py
| def execute_provisioned_product_plan(
self,
plan_id: "capo_service_catalog.types.id.Id",
idempotency_token: "capo_service_catalog.types.idempotency_token.IdempotencyToken",
*,
config_overrides: Optional[ServiceCatalogClientConfig] = None,
accept_language: Optional[
"capo_service_catalog.types.accept_language.AcceptLanguage"
] = None,
) -> "capo_service_catalog.types.execute_provisioned_product_plan_output.ExecuteProvisionedProductPlanOutput":
"""<p>Provisions or modifies a product based on the resource changes for the specified plan.</p>
Args:
accept_language: <p>The language code.</p> <ul> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - Chinese</p> </li> </ul>
plan_id: <p>The plan identifier.</p>
idempotency_token: <p>A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.</p>
Raises:
capo_service_catalog.errors.invalid_parameters_exception.InvalidParametersException: <p>One or more parameters provided to the operation are not valid.</p>
capo_service_catalog.errors.invalid_state_exception.InvalidStateException: <p>An attempt was made to modify a resource that is in a state that is not valid. Check your resources to ensure that they are in valid states before retrying the operation.</p>
capo_service_catalog.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_service_catalog.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_service_catalog.types.execute_provisioned_product_plan_input.ExecuteProvisionedProductPlanInput]",
) -> OperationResponse[
"capo_service_catalog.types.execute_provisioned_product_plan_output.ExecuteProvisionedProductPlanOutput"
]:
import capo_service_catalog._operations.aws242_service_catalog_service.execute_provisioned_product_plan
output, http_response = (
capo_service_catalog._operations.aws242_service_catalog_service.execute_provisioned_product_plan.execute_provisioned_product_plan(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ExecuteProvisionedProductPlan")
)
input_: capo_service_catalog.types.execute_provisioned_product_plan_input.ExecuteProvisionedProductPlanInput = {
"plan_id": plan_id,
"idempotency_token": idempotency_token,
}
if accept_language is not None:
input_["accept_language"] = accept_language
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|