Class: AWSCDK::CloudFront::CfnVPCOrigin::VPCOriginEndpointConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cfn_vpc_origin.rb

Overview

An Amazon CloudFront VPC origin endpoint configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • arn (String)

    The ARN of the CloudFront VPC origin endpoint configuration.

  • name (String)

    The name of the CloudFront VPC origin endpoint configuration.

  • http_port (Numeric, nil) (defaults to: nil)

    The HTTP port for the CloudFront VPC origin endpoint configuration.

  • https_port (Numeric, nil) (defaults to: nil)

    The HTTPS port of the CloudFront VPC origin endpoint configuration.

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

    The origin protocol policy for the CloudFront VPC origin endpoint configuration.

  • origin_ssl_protocols (Array<String>, nil) (defaults to: nil)

    Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.



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

#arnString (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_portNumeric? (readonly)

Note:

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

Note:

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

#nameString (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_policyString? (readonly)

Note:

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_protocolsArray<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_propertiesObject



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_jsiiObject



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