getSubscriptionAttributes method
Future<GetSubscriptionAttributesResponse>
getSubscriptionAttributes({
- required String subscriptionArn,
Returns all of the properties of a subscription.
May throw InvalidParameterException. May throw InternalErrorException. May throw NotFoundException. May throw AuthorizationErrorException.
Parameter subscriptionArn
:
The ARN of the subscription whose properties you want to get.
Implementation
Future<GetSubscriptionAttributesResponse> getSubscriptionAttributes({
required String subscriptionArn,
}) async {
ArgumentError.checkNotNull(subscriptionArn, 'subscriptionArn');
final $request = <String, dynamic>{};
$request['SubscriptionArn'] = subscriptionArn;
final $result = await _protocol.send(
$request,
action: 'GetSubscriptionAttributes',
version: '2010-03-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['GetSubscriptionAttributesInput'],
shapes: shapes,
resultWrapper: 'GetSubscriptionAttributesResult',
);
return GetSubscriptionAttributesResponse.fromXml($result);
}