register_app_instance_user_endpoint
async
¶
register_app_instance_user_endpoint(
app_instance_user_arn: SensitiveChimeArn,
type: AppInstanceUserEndpointType,
resource_arn: ChimeArn,
endpoint_attributes: EndpointAttributes,
client_request_token: ClientRequestToken,
*,
config_overrides: Optional[AsyncChimeSDKIdentityClientConfig] = None,
name: Optional[SensitiveString1600] = None,
allow_messages: Optional[AllowMessages] = None,
) -> RegisterAppInstanceUserEndpointResponse
Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a user.
Parameters:
-
app_instance_user_arn(SensitiveChimeArn) –The ARN of the
AppInstanceUser. -
name(Optional[SensitiveString1600], default:None) –The name of the
AppInstanceUserEndpoint. -
type(AppInstanceUserEndpointType) –The type of the
AppInstanceUserEndpoint. Supported types:-
APNS: The mobile notification service for an Apple device. -
APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. -
GCM: The mobile notification service for an Android device.
Populate the
ResourceArnvalue of each type asPinpointAppArn. -
-
resource_arn(ChimeArn) –The ARN of the resource to which the endpoint belongs.
-
endpoint_attributes(EndpointAttributes) –The attributes of an
Endpoint. -
client_request_token(ClientRequestToken) –The unique ID assigned to the request. Use different tokens to register other endpoints.
-
allow_messages(Optional[AllowMessages], default:None) –Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages.
ALLindicates the endpoint receives all messages.NONEindicates the endpoint receives no messages.
Raises:
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
ResourceLimitExceededException–The request exceeds the resource limit.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The client exceeded its request rate limit.
-
UnauthorizedClientException–The client is not currently authorized to make the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime_sdk_identity/_services/async_chime_sdk_identity.py
1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 | |