Class: AWSCDK::CloudFront::CfnDistribution::LegacyCustomOriginProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnDistribution::LegacyCustomOriginProperty
- Defined in:
- cloud_front/cfn_distribution.rb
Overview
A custom origin.
A custom origin is any origin that is not an Amazon S3 bucket, with one exception. An Amazon S3 bucket that is configured with static website hosting is a custom origin.
This property is legacy. We recommend that you use Origin instead.
Instance Attribute Summary collapse
-
#dns_name ⇒ String
readonly
The domain name assigned to your CloudFront distribution.
-
#http_port ⇒ Numeric?
readonly
The HTTP port that CloudFront uses to connect to the origin.
-
#https_port ⇒ Numeric?
readonly
The HTTPS port that CloudFront uses to connect to the origin.
-
#origin_protocol_policy ⇒ String
readonly
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
-
#origin_ssl_protocols ⇒ Array<String>
readonly
The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dns_name:, origin_protocol_policy:, origin_ssl_protocols:, http_port: nil, https_port: nil) ⇒ LegacyCustomOriginProperty
constructor
A new instance of LegacyCustomOriginProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dns_name:, origin_protocol_policy:, origin_ssl_protocols:, http_port: nil, https_port: nil) ⇒ LegacyCustomOriginProperty
Returns a new instance of LegacyCustomOriginProperty.
2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 |
# File 'cloud_front/cfn_distribution.rb', line 2311 def initialize(dns_name:, origin_protocol_policy:, origin_ssl_protocols:, http_port: nil, https_port: nil) @dns_name = dns_name Jsii::Type.check_type(@dns_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnsName") @origin_protocol_policy = origin_protocol_policy Jsii::Type.check_type(@origin_protocol_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "originProtocolPolicy") @origin_ssl_protocols = origin_ssl_protocols Jsii::Type.check_type(@origin_ssl_protocols, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "originSslProtocols") @http_port = http_port Jsii::Type.check_type(@http_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "httpPort") unless @http_port.nil? @https_port = https_port Jsii::Type.check_type(@https_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "httpsPort") unless @https_port.nil? end |
Instance Attribute Details
#dns_name ⇒ String (readonly)
The domain name assigned to your CloudFront distribution.
2328 2329 2330 |
# File 'cloud_front/cfn_distribution.rb', line 2328 def dns_name @dns_name end |
#http_port ⇒ Numeric? (readonly)
Default: - 80
The HTTP port that CloudFront uses to connect to the origin.
Specify the HTTP port that the origin listens on.
2348 2349 2350 |
# File 'cloud_front/cfn_distribution.rb', line 2348 def http_port @http_port end |
#https_port ⇒ Numeric? (readonly)
Default: - 443
The HTTPS port that CloudFront uses to connect to the origin.
Specify the HTTPS port that the origin listens on.
2356 2357 2358 |
# File 'cloud_front/cfn_distribution.rb', line 2356 def https_port @https_port end |
#origin_protocol_policy ⇒ String (readonly)
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
2333 2334 2335 |
# File 'cloud_front/cfn_distribution.rb', line 2333 def origin_protocol_policy @origin_protocol_policy end |
#origin_ssl_protocols ⇒ Array<String> (readonly)
The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.
For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .
2340 2341 2342 |
# File 'cloud_front/cfn_distribution.rb', line 2340 def origin_ssl_protocols @origin_ssl_protocols end |
Class Method Details
.jsii_properties ⇒ Object
2358 2359 2360 2361 2362 2363 2364 2365 2366 |
# File 'cloud_front/cfn_distribution.rb', line 2358 def self.jsii_properties { :dns_name => "dnsName", :origin_protocol_policy => "originProtocolPolicy", :origin_ssl_protocols => "originSslProtocols", :http_port => "httpPort", :https_port => "httpsPort", } end |
Instance Method Details
#to_jsii ⇒ Object
2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 |
# File 'cloud_front/cfn_distribution.rb', line 2368 def to_jsii result = {} result.merge!({ "dnsName" => @dns_name, "originProtocolPolicy" => @origin_protocol_policy, "originSslProtocols" => @origin_ssl_protocols, "httpPort" => @http_port, "httpsPort" => @https_port, }) result.compact end |