Class: AWSCDK::SNS::RequestPolicy

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header_content_type: nil) ⇒ RequestPolicy

Returns a new instance of RequestPolicy.

Parameters:

  • header_content_type (String, nil) (defaults to: nil)

    The content type of the notification being sent to HTTP/S endpoints.



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_typeString? (readonly)

Note:

Default: - text/plain; charset=UTF-8

The content type of the notification being sent to HTTP/S endpoints.

Returns:

  • (String, nil)


17
18
19
# File 'sns/request_policy.rb', line 17

def header_content_type
  @header_content_type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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