Updates an action type that was created with any supported integration model, where the action type is to be used by customers of the action type provider. Use a JSON file with the action definition and UpdateActionType to provide the full structure.
Parameters:
Raises:
Source code in docs_src/capo_codepipeline/_services/async_code_pipeline.py
| async def update_action_type(
self,
action_type: "capo_codepipeline.types.action_type_declaration.ActionTypeDeclaration",
*,
config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
) -> None:
"""<p>Updates an action type that was created with any supported integration model, where the action type is to be used by customers of the action type provider. Use a JSON file with the action definition and <code>UpdateActionType</code> to provide the full structure.</p>
Args:
action_type: <p>The action type definition for the action type to be updated.</p>
Raises:
capo_codepipeline.errors.action_type_not_found_exception.ActionTypeNotFoundException: <p>The specified action type cannot be found.</p>
capo_codepipeline.errors.request_failed_exception.RequestFailedException: <p>The request failed because of an unknown error, exception, or failure.</p>
capo_codepipeline.errors.validation_exception.ValidationException: <p>The validation was specified in an invalid format.</p>
capo_codepipeline.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_codepipeline.types.update_action_type_input.UpdateActionTypeInput]",
) -> AsyncOperationResponse[None]:
import capo_codepipeline._operations.code_pipeline_20150709.update_action_type
(
output,
http_response,
) = await capo_codepipeline._operations.code_pipeline_20150709.update_action_type.async_update_action_type(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateActionType")
)
input_: capo_codepipeline.types.update_action_type_input.UpdateActionTypeInput = {
"action_type": action_type
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|