getSMSAttributes method

Future<GetSMSAttributesResponse> getSMSAttributes({
  1. List<String>? attributes,
})

Returns the settings for sending SMS messages from your account.

These settings are set with the SetSMSAttributes action.

May throw ThrottledException. May throw InternalErrorException. May throw AuthorizationErrorException. May throw InvalidParameterException.

Parameter attributes : A list of the individual attribute names, such as MonthlySpendLimit, for which you want values.

For all attribute names, see SetSMSAttributes.

If you don't use this parameter, Amazon SNS returns all SMS attributes.

Implementation

Future<GetSMSAttributesResponse> getSMSAttributes({
  List<String>? attributes,
}) async {
  final $request = <String, dynamic>{};
  attributes?.also((arg) => $request['attributes'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'GetSMSAttributes',
    version: '2010-03-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['GetSMSAttributesInput'],
    shapes: shapes,
    resultWrapper: 'GetSMSAttributesResult',
  );
  return GetSMSAttributesResponse.fromXml($result);
}