Class: AWSCDK::MediaTailor::CfnPlaybackConfiguration::HttpRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaTailor::CfnPlaybackConfiguration::HttpRequestProperty
- Defined in:
- media_tailor/cfn_playback_configuration.rb
Overview
The configuration for the request to the Ad Decision Server URL.
Instance Attribute Summary collapse
-
#body ⇒ String?
readonly
The body of the request to the Ad Decision Server URL.
-
#compress_request ⇒ String?
readonly
The compression type of the request sent to the Ad Decision Server URL.
-
#headers ⇒ AWSCDK::IResolvable, ...
readonly
The headers in the request sent to the Ad Decision Server URL.
-
#http_method ⇒ String?
readonly
Supported HTTP Methods for the request to the Ad Decision Server URL.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(body: nil, compress_request: nil, headers: nil, http_method: nil) ⇒ HttpRequestProperty
constructor
A new instance of HttpRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(body: nil, compress_request: nil, headers: nil, http_method: nil) ⇒ HttpRequestProperty
Returns a new instance of HttpRequestProperty.
1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1210 def initialize(body: nil, compress_request: nil, headers: nil, http_method: nil) @body = body Jsii::Type.check_type(@body, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "body") unless @body.nil? @compress_request = compress_request Jsii::Type.check_type(@compress_request, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "compressRequest") unless @compress_request.nil? @headers = headers Jsii::Type.check_type(@headers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "headers") unless @headers.nil? @http_method = http_method Jsii::Type.check_type(@http_method, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "httpMethod") unless @http_method.nil? end |
Instance Attribute Details
#body ⇒ String? (readonly)
The body of the request to the Ad Decision Server URL.
The maximum length is 100,000 characters.
1227 1228 1229 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1227 def body @body end |
#compress_request ⇒ String? (readonly)
The compression type of the request sent to the Ad Decision Server URL.
Only the POST HTTP Method permits compression other than NONE.
1234 1235 1236 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1234 def compress_request @compress_request end |
#headers ⇒ AWSCDK::IResolvable, ... (readonly)
The headers in the request sent to the Ad Decision Server URL.
The max length is 10,000 characters.
1241 1242 1243 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1241 def headers @headers end |
#http_method ⇒ String? (readonly)
Supported HTTP Methods for the request to the Ad Decision Server URL.
1246 1247 1248 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1246 def http_method @http_method end |
Class Method Details
.jsii_properties ⇒ Object
1248 1249 1250 1251 1252 1253 1254 1255 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1248 def self.jsii_properties { :body => "body", :compress_request => "compressRequest", :headers => "headers", :http_method => "httpMethod", } end |
Instance Method Details
#to_jsii ⇒ Object
1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 |
# File 'media_tailor/cfn_playback_configuration.rb', line 1257 def to_jsii result = {} result.merge!({ "body" => @body, "compressRequest" => @compress_request, "headers" => @headers, "httpMethod" => @http_method, }) result.compact end |