An SaaS partner can use this operation to display the Amazon Web Services account ID that a particular partner event source name is associated with. This operation is not used by Amazon Web Services customers.
Parameters:
-
event_source_name
(EventSourceName)
–
The name of the partner event source to display account information about.
-
next_token
(Optional[NextToken], default:
None
)
–
The token returned by a previous call to this operation. Specifying this retrieves the next set of results.
-
limit
(Optional[LimitMax100], default:
None
)
–
Specifying this limits the number of results returned by this operation. The operation also returns a NextToken which you can use in a subsequent operation to retrieve the next set of results.
Raises:
Source code in docs_src/capo_cloudwatch_events/_services/async_cloud_watch_events.py
| async def list_partner_event_source_accounts(
self,
event_source_name: "capo_cloudwatch_events.types.event_source_name.EventSourceName",
*,
config_overrides: Optional[AsyncCloudWatchEventsClientConfig] = None,
next_token: Optional[
"capo_cloudwatch_events.types.next_token.NextToken"
] = None,
limit: Optional["capo_cloudwatch_events.types.limit_max100.LimitMax100"] = None,
) -> "capo_cloudwatch_events.types.list_partner_event_source_accounts_response.ListPartnerEventSourceAccountsResponse":
"""<p>An SaaS partner can use this operation to display the Amazon Web Services account ID that a particular partner event source name is associated with. This operation is not used by Amazon Web Services customers.</p>
Args:
event_source_name: <p>The name of the partner event source to display account information about.</p>
next_token: <p>The token returned by a previous call to this operation. Specifying this retrieves the next set of results.</p>
limit: <p>Specifying this limits the number of results returned by this operation. The operation also returns a NextToken which you can use in a subsequent operation to retrieve the next set of results.</p>
Raises:
capo_cloudwatch_events.errors.internal_exception.InternalException: <p>This exception occurs due to unexpected causes.</p>
capo_cloudwatch_events.errors.operation_disabled_exception.OperationDisabledException: <p>The operation you are attempting is not available in this region.</p>
capo_cloudwatch_events.errors.resource_not_found_exception.ResourceNotFoundException: <p>An entity that you specified does not exist.</p>
capo_cloudwatch_events.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudwatch_events.types.list_partner_event_source_accounts_request.ListPartnerEventSourceAccountsRequest]",
) -> AsyncOperationResponse[
"capo_cloudwatch_events.types.list_partner_event_source_accounts_response.ListPartnerEventSourceAccountsResponse"
]:
import capo_cloudwatch_events._operations.aws_events.list_partner_event_source_accounts
(
output,
http_response,
) = await capo_cloudwatch_events._operations.aws_events.list_partner_event_source_accounts.async_list_partner_event_source_accounts(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListPartnerEventSourceAccounts")
)
input_: capo_cloudwatch_events.types.list_partner_event_source_accounts_request.ListPartnerEventSourceAccountsRequest = {
"event_source_name": event_source_name
}
if next_token is not None:
input_["next_token"] = next_token
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
|