getSMSAttributes method
Returns the settings for sending SMS messages from your Amazon Web Services account.
These settings are set with the SetSMSAttributes action.
May throw AuthorizationErrorException.
May throw InternalErrorException.
May throw InvalidParameterException.
May throw ThrottledException.
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, String>{
if (attributes != null)
if (attributes.isEmpty)
'attributes': ''
else
for (var i1 = 0; i1 < attributes.length; i1++)
'attributes.member.${i1 + 1}': attributes[i1],
};
final $result = await _protocol.send(
$request,
action: 'GetSMSAttributes',
version: '2010-03-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
resultWrapper: 'GetSMSAttributesResult',
);
return GetSMSAttributesResponse.fromXml($result);
}