Module: AWS::SNS::HasDeliveryPolicy
- Included in:
- Subscription, Topic
- Defined in:
- lib/aws/sns/has_delivery_policy.rb
Overview
A module shared between Topic and Subscription. Provides methods for getting and setting the delivery policy and for getting the effective delivery policy.
Instance Method Summary collapse
-
#delivery_policy ⇒ nil, Hash
Returns the delivery policy.
- #delivery_policy=(policy) ⇒ Object
-
#delivery_policy_json ⇒ nil, String
Returns the delivery policy JSON string.
-
#effective_delivery_policy ⇒ Hash
Returns the effective delivery policy.
-
#effective_delivery_policy_json ⇒ String
Returns the effective delivery policy JSON string.
Instance Method Details
#delivery_policy ⇒ nil, Hash
Returns the delivery policy.
23 24 25 |
# File 'lib/aws/sns/has_delivery_policy.rb', line 23 def delivery_policy parse_delivery_policy(delivery_policy_json) end |
#delivery_policy=(policy) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/aws/sns/has_delivery_policy.rb', line 34 def delivery_policy= policy policy_json = case policy when nil then '' when String then policy else policy.to_json end update_delivery_policy(policy_json) end |
#delivery_policy_json ⇒ nil, String
Returns the delivery policy JSON string.
47 48 49 |
# File 'lib/aws/sns/has_delivery_policy.rb', line 47 def delivery_policy_json raise NotImplementedError end |
#effective_delivery_policy ⇒ Hash
Returns the effective delivery policy.
28 29 30 |
# File 'lib/aws/sns/has_delivery_policy.rb', line 28 def effective_delivery_policy parse_delivery_policy(effective_delivery_policy_json) end |
#effective_delivery_policy_json ⇒ String
Returns the effective delivery policy JSON string.
52 53 54 |
# File 'lib/aws/sns/has_delivery_policy.rb', line 52 def effective_delivery_policy_json raise NotImplementedError end |