describe_regions
async
¶
describe_regions(
directory_id: DirectoryId,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
region_name: Optional[RegionName] = None,
next_token: Optional[NextToken] = None,
) -> DescribeRegionsResult
Provides information about the Regions that are configured for multi-Region replication.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory.
-
region_name(Optional[RegionName], default:None) –The name of the Region. For example,
us-east-1. -
next_token(Optional[NextToken], default:None) –The
DescribeRegionsResult.NextTokenvalue from a previous call to DescribeRegions. Pass null if this is the first call.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ClientException–A client exception has occurred.
-
DirectoryDoesNotExistException–The specified directory does not exist in the system.
-
InvalidNextTokenException–The
NextTokenvalue is not valid. -
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
UnsupportedOperationException–The operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 | |