describe_pools
¶
describe_pools(
*,
config_overrides: Optional[PinpointSMSVoiceV2ClientConfig] = None,
pool_ids: Optional[PoolIdList] = None,
filters: Optional[PoolFilterList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
owner: Optional[Owner] = None,
) -> DescribePoolsResult
Retrieves the specified pools or all pools associated with your Amazon Web Services account.
If you specify pool IDs, the output includes information for only the specified pools. If you specify filters, the output includes information for only those pools that meet the filter criteria. If you don't specify pool IDs or filters, the output includes information for all pools.
If you specify a pool ID that isn't valid, an error is returned.
A pool is a collection of phone numbers and SenderIds. A pool can include one or more phone numbers and SenderIds that are associated with your Amazon Web Services account.
Parameters:
-
pool_ids(Optional[PoolIdList], default:None) –The unique identifier of pools to find. This is an array of strings that can be either the PoolId or PoolArn.
If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).
-
filters(Optional[PoolFilterList], default:None) –An array of PoolFilter objects to filter the results.
-
next_token(Optional[NextToken], default:None) –The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return per each request.
-
owner(Optional[Owner], default:None) –Use
SELFto filter the list of Pools to ones your account owns or useSHAREDto filter on Pools shared with your account. TheOwnerandPoolIdsparameters can't be used at the same time.
Raises:
-
AccessDeniedException–The request was denied because you don't have sufficient permissions to access the resource.
-
InternalServerException–The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.
-
ResourceNotFoundException–A requested resource couldn't be found.
-
ThrottlingException–An error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–A validation exception for a field.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_pinpoint_sms_voice_v2/_services/pinpoint_sms_voice_v2.py
3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 | |