Class: AWSCDK::CloudFront::VPCOriginOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::VPCOriginOptions
- Defined in:
- cloud_front/vpc_origin_options.rb
Overview
VPC origin endpoint configuration.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#http_port ⇒ Numeric?
readonly
The HTTP port for the CloudFront VPC origin endpoint configuration.
-
#https_port ⇒ Numeric?
readonly
The HTTPS port of the CloudFront VPC origin endpoint configuration.
-
#origin_ssl_protocols ⇒ Array<AWSCDK::CloudFront::OriginSSLPolicy>?
readonly
A list that contains allowed SSL/TLS protocols for this distribution.
-
#protocol_policy ⇒ AWSCDK::CloudFront::OriginProtocolPolicy?
readonly
The origin protocol policy for the CloudFront VPC origin endpoint configuration.
-
#vpc_origin_name ⇒ String?
readonly
The name of the CloudFront VPC origin endpoint configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http_port: nil, https_port: nil, origin_ssl_protocols: nil, protocol_policy: nil, vpc_origin_name: nil) ⇒ VPCOriginOptions
constructor
A new instance of VPCOriginOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(http_port: nil, https_port: nil, origin_ssl_protocols: nil, protocol_policy: nil, vpc_origin_name: nil) ⇒ VPCOriginOptions
Returns a new instance of VPCOriginOptions.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'cloud_front/vpc_origin_options.rb', line 12 def initialize(http_port: nil, https_port: nil, origin_ssl_protocols: nil, protocol_policy: nil, vpc_origin_name: nil) @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? @origin_ssl_protocols = origin_ssl_protocols Jsii::Type.check_type(@origin_ssl_protocols, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250Lk9yaWdpblNzbFBvbGljeSJ9LCJraW5kIjoiYXJyYXkifX0=")), "originSslProtocols") unless @origin_ssl_protocols.nil? @protocol_policy = protocol_policy Jsii::Type.check_type(@protocol_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWRmcm9udC5PcmlnaW5Qcm90b2NvbFBvbGljeSJ9")), "protocolPolicy") unless @protocol_policy.nil? @vpc_origin_name = vpc_origin_name Jsii::Type.check_type(@vpc_origin_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcOriginName") unless @vpc_origin_name.nil? end |
Instance Attribute Details
#http_port ⇒ Numeric? (readonly)
Default: 80
The HTTP port for the CloudFront VPC origin endpoint configuration.
29 30 31 |
# File 'cloud_front/vpc_origin_options.rb', line 29 def http_port @http_port end |
#https_port ⇒ Numeric? (readonly)
Default: 443
The HTTPS port of the CloudFront VPC origin endpoint configuration.
34 35 36 |
# File 'cloud_front/vpc_origin_options.rb', line 34 def https_port @https_port end |
#origin_ssl_protocols ⇒ Array<AWSCDK::CloudFront::OriginSSLPolicy>? (readonly)
Default: - TLSv1.2
A list that contains allowed SSL/TLS protocols for this distribution.
39 40 41 |
# File 'cloud_front/vpc_origin_options.rb', line 39 def origin_ssl_protocols @origin_ssl_protocols end |
#protocol_policy ⇒ AWSCDK::CloudFront::OriginProtocolPolicy? (readonly)
Default: OriginProtocolPolicy.MATCH_VIEWER
The origin protocol policy for the CloudFront VPC origin endpoint configuration.
44 45 46 |
# File 'cloud_front/vpc_origin_options.rb', line 44 def protocol_policy @protocol_policy end |
#vpc_origin_name ⇒ String? (readonly)
Default: - generated from the id
The name of the CloudFront VPC origin endpoint configuration.
49 50 51 |
# File 'cloud_front/vpc_origin_options.rb', line 49 def vpc_origin_name @vpc_origin_name end |
Class Method Details
.jsii_properties ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'cloud_front/vpc_origin_options.rb', line 51 def self.jsii_properties { :http_port => "httpPort", :https_port => "httpsPort", :origin_ssl_protocols => "originSslProtocols", :protocol_policy => "protocolPolicy", :vpc_origin_name => "vpcOriginName", } end |
Instance Method Details
#to_jsii ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'cloud_front/vpc_origin_options.rb', line 61 def to_jsii result = {} result.merge!({ "httpPort" => @http_port, "httpsPort" => @https_port, "originSslProtocols" => @origin_ssl_protocols, "protocolPolicy" => @protocol_policy, "vpcOriginName" => @vpc_origin_name, }) result.compact end |