describe_event_topics
async
¶
describe_event_topics(
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
directory_id: Optional[DirectoryId] = None,
topic_names: Optional[TopicNames] = None,
) -> DescribeEventTopicsResult
Obtains information about which Amazon SNS topics receive status messages from the specified directory.
If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.
Parameters:
-
directory_id(Optional[DirectoryId], default:None) –The Directory ID for which to get the list of associated Amazon SNS topics. If this member is null, associations for all Directory IDs are returned.
-
topic_names(Optional[TopicNames], default:None) –A list of Amazon SNS topic names for which to obtain the information. If this member is null, all associations for the specified Directory ID are returned.
An empty list results in an
InvalidParameterExceptionbeing thrown.
Raises:
-
ClientException–A client exception has occurred.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe event topics The following example obtains information about which SNS topics receive status messages from the specified directory.
>>> await client.describe_event_topics(directory_id='d-92654abfed', topic_names=['snstopicexample'])
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 | |