Returns the full configuration and state of a subscriber.
Parameters:
-
subscriber_arn
(SubscriberArn)
–
The Amazon Resource Name (ARN) that uniquely identifies a subscriber.
Raises:
-
AccessDeniedException
–
The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
-
InternalException
–
The request failed because of an internal service error. Retry the request.
-
InvalidInputException
–
A request parameter is missing or not valid.
-
ThrottlingException
–
The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
-
ResourceNotFoundException
–
The resource does not exist.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_eventbridgev2/_services/event_bridge_v2.py
| def describe_subscriber(
self,
subscriber_arn: "capo_eventbridgev2.types.subscriber_arn.SubscriberArn",
*,
config_overrides: Optional[EventBridgeV2ClientConfig] = None,
) -> "capo_eventbridgev2.types.describe_subscriber_response.DescribeSubscriberResponse":
"""<p>Returns the full configuration and state of a subscriber.</p>
Args:
subscriber_arn: <p>The Amazon Resource Name (ARN) that uniquely identifies a subscriber.</p>
Raises:
capo_eventbridgev2.errors.access_denied_exception.AccessDeniedException: <p>The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.</p>
capo_eventbridgev2.errors.internal_exception.InternalException: <p>The request failed because of an internal service error. Retry the request.</p>
capo_eventbridgev2.errors.invalid_input_exception.InvalidInputException: <p>A request parameter is missing or not valid.</p>
capo_eventbridgev2.errors.throttling_exception.ThrottlingException: <p>The request was throttled because it exceeds a request rate limit. Retry the request with backoff.</p>
capo_eventbridgev2.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource does not exist.</p>
capo_eventbridgev2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_eventbridgev2.types.describe_subscriber_request.DescribeSubscriberRequest]",
) -> OperationResponse[
"capo_eventbridgev2.types.describe_subscriber_response.DescribeSubscriberResponse"
]:
import capo_eventbridgev2._operations.aws_events_v2.describe_subscriber
output, http_response = (
capo_eventbridgev2._operations.aws_events_v2.describe_subscriber.describe_subscriber(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_eventbridgev2.types.describe_subscriber_response.DescribeSubscriberResponse",
) -> dict[str, Any]:
import capo_eventbridgev2.types.describe_subscriber_response
return (
capo_eventbridgev2.types.describe_subscriber_response.redact_sensitive(
output
)
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DescribeSubscriber", redact_output=_redact_output),
)
input_: capo_eventbridgev2.types.describe_subscriber_request.DescribeSubscriberRequest = {
"subscriber_arn": subscriber_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|