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
3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 | |