register_app_instance_user_endpoint
¶
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[ChimeSDKIdentityClientConfig] = 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/chime_sdk_identity.py
1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 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 | |