describe_opted_out_numbers
¶
describe_opted_out_numbers(
opt_out_list_name: OptOutListNameOrArn,
*,
config_overrides: Optional[PinpointSMSVoiceV2ClientConfig] = None,
opted_out_numbers: Optional[OptedOutNumberList] = None,
filters: Optional[OptedOutFilterList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> DescribeOptedOutNumbersResult
Describes the specified opted out destination numbers or all opted out destination numbers in an opt-out list.
If you specify opted out numbers, the output includes information for only the specified opted out numbers. If you specify filters, the output includes information for only those opted out numbers that meet the filter criteria. If you don't specify opted out numbers or filters, the output includes information for all opted out destination numbers in your opt-out list.
If you specify an opted out number that isn't valid, an exception is returned.
Parameters:
-
opt_out_list_name(OptOutListNameOrArn) –The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.
If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).
-
opted_out_numbers(Optional[OptedOutNumberList], default:None) –An array of phone numbers to search for in the OptOutList.
If you specify an opted out number that isn't valid, an exception is returned.
-
filters(Optional[OptedOutFilterList], default:None) –An array of OptedOutFilter objects to filter the results on.
-
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.
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
3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 | |