Lists the specified notification subscriptions.
Parameters:
-
organization_id
(IdType)
–
The ID of the organization.
-
marker
(Optional[PageMarkerType], default:
None
)
–
The marker for the next set of results. (You received this marker from a previous call.)
-
limit
(Optional[LimitType], default:
None
)
–
The maximum number of items to return with this call.
Raises:
Source code in docs_src/capo_workdocs/_services/async_work_docs.py
| async def describe_notification_subscriptions(
self,
organization_id: "capo_workdocs.types.id_type.IdType",
*,
config_overrides: Optional[AsyncWorkDocsClientConfig] = None,
marker: Optional["capo_workdocs.types.page_marker_type.PageMarkerType"] = None,
limit: Optional["capo_workdocs.types.limit_type.LimitType"] = None,
) -> "capo_workdocs.types.describe_notification_subscriptions_response.DescribeNotificationSubscriptionsResponse":
"""<p>Lists the specified notification subscriptions.</p>
Args:
organization_id: <p>The ID of the organization.</p>
marker: <p>The marker for the next set of results. (You received this marker from a previous call.)</p>
limit: <p>The maximum number of items to return with this call.</p>
Raises:
capo_workdocs.errors.entity_not_exists_exception.EntityNotExistsException: <p>The resource does not exist.</p>
capo_workdocs.errors.service_unavailable_exception.ServiceUnavailableException: <p>One or more of the dependencies is unavailable.</p>
capo_workdocs.errors.unauthorized_resource_access_exception.UnauthorizedResourceAccessException: <p>The caller does not have access to perform the action on the resource.</p>
capo_workdocs.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_workdocs.types.describe_notification_subscriptions_request.DescribeNotificationSubscriptionsRequest]",
) -> AsyncOperationResponse[
"capo_workdocs.types.describe_notification_subscriptions_response.DescribeNotificationSubscriptionsResponse"
]:
import capo_workdocs._operations.aws_gorilla_boy_service.describe_notification_subscriptions
(
output,
http_response,
) = await capo_workdocs._operations.aws_gorilla_boy_service.describe_notification_subscriptions.async_describe_notification_subscriptions(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeNotificationSubscriptions")
)
input_: capo_workdocs.types.describe_notification_subscriptions_request.DescribeNotificationSubscriptionsRequest = {
"organization_id": organization_id
}
if marker is not None:
input_["marker"] = marker
if limit is not None:
input_["limit"] = limit
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|