Class: AWSCDK::SNS::RequestPolicy
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SNS::RequestPolicy
- Defined in:
- sns/request_policy.rb
Overview
Options for customising aspects of the content sent in AWS SNS HTTP/S requests.
Instance Attribute Summary collapse
-
#header_content_type ⇒ String?
readonly
The content type of the notification being sent to HTTP/S endpoints.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(header_content_type: nil) ⇒ RequestPolicy
constructor
A new instance of RequestPolicy.
- #to_jsii ⇒ Object
Constructor Details
#initialize(header_content_type: nil) ⇒ RequestPolicy
Returns a new instance of RequestPolicy.
8 9 10 11 |
# File 'sns/request_policy.rb', line 8 def initialize(header_content_type: nil) @header_content_type = header_content_type Jsii::Type.check_type(@header_content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerContentType") unless @header_content_type.nil? end |
Instance Attribute Details
#header_content_type ⇒ String? (readonly)
Note:
Default: - text/plain; charset=UTF-8
The content type of the notification being sent to HTTP/S endpoints.
17 18 19 |
# File 'sns/request_policy.rb', line 17 def header_content_type @header_content_type end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'sns/request_policy.rb', line 19 def self.jsii_properties { :header_content_type => "headerContentType", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'sns/request_policy.rb', line 25 def to_jsii result = {} result.merge!({ "headerContentType" => @header_content_type, }) result.compact end |