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/code_pipeline.py
| def update_action_type(
self,
action_type: "capo_codepipeline.types.action_type_declaration.ActionTypeDeclaration",
*,
config_overrides: Optional[CodePipelineClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_codepipeline.types.update_action_type_input.UpdateActionTypeInput]",
) -> OperationResponse[None]:
import capo_codepipeline._operations.code_pipeline_20150709.update_action_type
output, http_response = (
capo_codepipeline._operations.code_pipeline_20150709.update_action_type.update_action_type(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|