list_blocked_guest_users
¶
list_blocked_guest_users(
network_id: NetworkId,
*,
config_overrides: Optional[WickrClientConfig] = None,
max_results: Optional[int] = None,
sort_direction: Optional[SortDirection] = None,
sort_fields: Optional[GenericString] = None,
username: Optional[GenericString] = None,
admin: Optional[GenericString] = None,
next_token: Optional[GenericString] = None,
) -> ListBlockedGuestUsersResponse
Retrieves a paginated list of guest users who have been blocked from a Wickr network. You can filter and sort the results.
Parameters:
-
network_id(NetworkId) –The ID of the Wickr network from which to list blocked guest users.
-
max_results(Optional[int], default:None) –The maximum number of blocked guest users to return in a single page. Valid range is 1-100. Default is 10.
-
sort_direction(Optional[SortDirection], default:None) –The direction to sort results. Valid values are 'ASC' (ascending) or 'DESC' (descending). Default is 'DESC'.
-
sort_fields(Optional[GenericString], default:None) –The field to sort blocked guest users by. Accepted values include 'username', 'admin', and 'modified'.
-
username(Optional[GenericString], default:None) –Filter results to only include blocked guest users with usernames matching this value.
-
admin(Optional[GenericString], default:None) –Filter results to only include blocked guest users that were blocked by this administrator.
-
next_token(Optional[GenericString], default:None) –The token for retrieving the next page of results. This is returned from a previous request when there are more results available.
Raises:
-
BadRequestError–The request was invalid or malformed. This error occurs when the request parameters do not meet the API requirements, such as invalid field values, missing required parameters, or improperly formatted data.
-
ForbiddenError–Access to the requested resource is forbidden. This error occurs when the authenticated user does not have the necessary permissions to perform the requested operation, even though they are authenticated.
-
InternalServerError–An unexpected error occurred on the server while processing the request. This indicates a problem with the Wickr service itself rather than with the request. If this error persists, contact Amazon Web Services Support.
-
RateLimitError–The request was throttled because too many requests were sent in a short period of time. Wait a moment and retry the request. Consider implementing exponential backoff in your application.
-
ResourceNotFoundError–The requested resource could not be found. This error occurs when you try to access or modify a network, user, bot, security group, or other resource that doesn't exist or has been deleted.
-
UnauthorizedError–The request was not authenticated or the authentication credentials were invalid. This error occurs when the request lacks valid authentication credentials or the credentials have expired.
-
ValidationError–One or more fields in the request failed validation. This error provides detailed information about which fields were invalid and why, allowing you to correct the request and retry.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Get paginated list of blocked guest users
>>> client.list_blocked_guest_users(network_id='12345678', max_results=10, sort_direction='DESC', sort_fields='modified')
Filter by username
>>> client.list_blocked_guest_users(network_id='12345678', username='[email protected]')
Empty blocklist
Source code in docs_src/capo_wickr/_services/wickr.py
2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 | |