lib/aws-sdk-sns/subscription.rb in aws-sdk-sns-1.60.0 vs lib/aws-sdk-sns/subscription.rb in aws-sdk-sns-1.61.0
- old
+ new
@@ -117,11 +117,13 @@
#
# subscription.reload.data
#
# @return [self]
def load
- resp = @client.get_subscription_attributes(subscription_arn: @arn)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.get_subscription_attributes(subscription_arn: @arn)
+ end
@data = resp.data
self
end
alias :reload :load
@@ -147,11 +149,13 @@
# subscription.delete()
# @param [Hash] options ({})
# @return [EmptyStructure]
def delete(options = {})
options = options.merge(subscription_arn: @arn)
- resp = @client.unsubscribe(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.unsubscribe(options)
+ end
resp.data
end
# @example Request syntax with placeholder values
#
@@ -214,10 +218,12 @@
# @option options [String] :attribute_value
# The new value for the attribute in JSON format.
# @return [EmptyStructure]
def set_attributes(options = {})
options = options.merge(subscription_arn: @arn)
- resp = @client.set_subscription_attributes(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.set_subscription_attributes(options)
+ end
resp.data
end
# @deprecated
# @api private