Gets a listing of all the webhooks in this Amazon Web Services Region for this account. The output lists all webhooks and includes the webhook URL and ARN and the configuration for each webhook.
If a secret token was provided, it will be redacted in the response.
Parameters:
-
next_token
(Optional[NextToken], default:
None
)
–
The token that was returned from the previous ListWebhooks call, which can be used to return the next set of webhooks in the list.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value.
Raises:
-
InvalidNextTokenException
–
The next token was specified in an invalid format. Make sure that the next token you provide is the token returned by a previous call.
-
ValidationException
–
The validation was specified in an invalid format.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_codepipeline/_services/code_pipeline.py
| def list_webhooks(
self,
*,
config_overrides: Optional[CodePipelineClientConfig] = None,
next_token: Optional["capo_codepipeline.types.next_token.NextToken"] = None,
max_results: Optional["capo_codepipeline.types.max_results.MaxResults"] = None,
) -> "capo_codepipeline.types.list_webhooks_output.ListWebhooksOutput":
"""<p>Gets a listing of all the webhooks in this Amazon Web Services Region for this account. The output lists all webhooks and includes the webhook URL and ARN and the configuration for each webhook.</p> <note> <p>If a secret token was provided, it will be redacted in the response.</p> </note>
Args:
next_token: <p>The token that was returned from the previous ListWebhooks call, which can be used to return the next set of webhooks in the list.</p>
max_results: <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value.</p>
Raises:
capo_codepipeline.errors.invalid_next_token_exception.InvalidNextTokenException: <p>The next token was specified in an invalid format. Make sure that the next token you provide is the token returned by a previous call.</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.list_webhooks_input.ListWebhooksInput]",
) -> OperationResponse[
"capo_codepipeline.types.list_webhooks_output.ListWebhooksOutput"
]:
import capo_codepipeline._operations.code_pipeline_20150709.list_webhooks
output, http_response = (
capo_codepipeline._operations.code_pipeline_20150709.list_webhooks.list_webhooks(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListWebhooks")
)
input_: capo_codepipeline.types.list_webhooks_input.ListWebhooksInput = {}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|