getEndpointAttributes method

Future<GetEndpointAttributesResponse> getEndpointAttributes({
  1. required String endpointArn,
})

Retrieves the endpoint attributes for a device on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. For more information, see Using Amazon SNS Mobile Push Notifications.

May throw InvalidParameterException. May throw InternalErrorException. May throw AuthorizationErrorException. May throw NotFoundException.

Parameter endpointArn : EndpointArn for GetEndpointAttributes input.

Implementation

Future<GetEndpointAttributesResponse> getEndpointAttributes({
  required String endpointArn,
}) async {
  ArgumentError.checkNotNull(endpointArn, 'endpointArn');
  final $request = <String, dynamic>{};
  $request['EndpointArn'] = endpointArn;
  final $result = await _protocol.send(
    $request,
    action: 'GetEndpointAttributes',
    version: '2010-03-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['GetEndpointAttributesInput'],
    shapes: shapes,
    resultWrapper: 'GetEndpointAttributesResult',
  );
  return GetEndpointAttributesResponse.fromXml($result);
}