Class: AWSCDK::CloudFront::CfnVPCOrigin::VPCOriginEndpointConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnVPCOrigin::VPCOriginEndpointConfigProperty
- Defined in:
- cloud_front/cfn_vpc_origin.rb
Overview
An Amazon CloudFront VPC origin endpoint configuration.
Instance Attribute Summary collapse
-
#arn ⇒ String
readonly
The ARN of the CloudFront VPC origin endpoint configuration.
-
#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.
-
#name ⇒ String
readonly
The name of the CloudFront VPC origin endpoint configuration.
-
#origin_protocol_policy ⇒ String?
readonly
The origin protocol policy for the CloudFront VPC origin endpoint configuration.
-
#origin_ssl_protocols ⇒ Array<String>?
readonly
Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn:, name:, http_port: nil, https_port: nil, origin_protocol_policy: nil, origin_ssl_protocols: nil) ⇒ VPCOriginEndpointConfigProperty
constructor
A new instance of VPCOriginEndpointConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn:, name:, http_port: nil, https_port: nil, origin_protocol_policy: nil, origin_ssl_protocols: nil) ⇒ VPCOriginEndpointConfigProperty
Returns a new instance of VPCOriginEndpointConfigProperty.
576 577 578 579 580 581 582 583 584 585 586 587 588 589 |
# File 'cloud_front/cfn_vpc_origin.rb', line 576 def initialize(arn:, name:, http_port: nil, https_port: nil, origin_protocol_policy: nil, origin_ssl_protocols: nil) @arn = arn Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @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_protocol_policy = origin_protocol_policy Jsii::Type.check_type(@origin_protocol_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "originProtocolPolicy") unless @origin_protocol_policy.nil? @origin_ssl_protocols = origin_ssl_protocols Jsii::Type.check_type(@origin_ssl_protocols, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "originSslProtocols") unless @origin_ssl_protocols.nil? end |
Instance Attribute Details
#arn ⇒ String (readonly)
The ARN of the CloudFront VPC origin endpoint configuration.
595 596 597 |
# File 'cloud_front/cfn_vpc_origin.rb', line 595 def arn @arn end |
#http_port ⇒ Numeric? (readonly)
Default: - 80
The HTTP port for the CloudFront VPC origin endpoint configuration.
The default value is 80 .
608 609 610 |
# File 'cloud_front/cfn_vpc_origin.rb', line 608 def http_port @http_port end |
#https_port ⇒ Numeric? (readonly)
Default: - 443
The HTTPS port of the CloudFront VPC origin endpoint configuration.
The default value is 443 .
616 617 618 |
# File 'cloud_front/cfn_vpc_origin.rb', line 616 def https_port @https_port end |
#name ⇒ String (readonly)
The name of the CloudFront VPC origin endpoint configuration.
600 601 602 |
# File 'cloud_front/cfn_vpc_origin.rb', line 600 def name @name end |
#origin_protocol_policy ⇒ String? (readonly)
Default: - "match-viewer"
The origin protocol policy for the CloudFront VPC origin endpoint configuration.
622 623 624 |
# File 'cloud_front/cfn_vpc_origin.rb', line 622 def origin_protocol_policy @origin_protocol_policy end |
#origin_ssl_protocols ⇒ Array<String>? (readonly)
Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.
Valid values include SSLv3 , TLSv1 , TLSv1.1 , and TLSv1.2 .
For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .
631 632 633 |
# File 'cloud_front/cfn_vpc_origin.rb', line 631 def origin_ssl_protocols @origin_ssl_protocols end |
Class Method Details
.jsii_properties ⇒ Object
633 634 635 636 637 638 639 640 641 642 |
# File 'cloud_front/cfn_vpc_origin.rb', line 633 def self.jsii_properties { :arn => "arn", :name => "name", :http_port => "httpPort", :https_port => "httpsPort", :origin_protocol_policy => "originProtocolPolicy", :origin_ssl_protocols => "originSslProtocols", } end |
Instance Method Details
#to_jsii ⇒ Object
644 645 646 647 648 649 650 651 652 653 654 655 |
# File 'cloud_front/cfn_vpc_origin.rb', line 644 def to_jsii result = {} result.merge!({ "arn" => @arn, "name" => @name, "httpPort" => @http_port, "httpsPort" => @https_port, "originProtocolPolicy" => @origin_protocol_policy, "originSslProtocols" => @origin_ssl_protocols, }) result.compact end |