Class: AWSCDK::CloudFront::CfnDistribution::VPCOriginConfigProperty

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

Overview

An Amazon CloudFront VPC origin configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vpc_origin_id:, origin_keepalive_timeout: nil, origin_read_timeout: nil, owner_account_id: nil) ⇒ VPCOriginConfigProperty

Returns a new instance of VPCOriginConfigProperty.

Parameters:

  • vpc_origin_id (String)

    The VPC origin ID.

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

    Specifies how long, in seconds, CloudFront persists its connection to the origin.

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

    Specifies how long, in seconds, CloudFront waits for a response from the origin.

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

    The account ID of the AWS account that owns the VPC origin.



3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
# File 'cloud_front/cfn_distribution.rb', line 3535

def initialize(vpc_origin_id:, origin_keepalive_timeout: nil, origin_read_timeout: nil, owner_account_id: nil)
  @vpc_origin_id = vpc_origin_id
  Jsii::Type.check_type(@vpc_origin_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcOriginId")
  @origin_keepalive_timeout = origin_keepalive_timeout
  Jsii::Type.check_type(@origin_keepalive_timeout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "originKeepaliveTimeout") unless @origin_keepalive_timeout.nil?
  @origin_read_timeout = origin_read_timeout
  Jsii::Type.check_type(@origin_read_timeout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "originReadTimeout") unless @origin_read_timeout.nil?
  @owner_account_id = 
  Jsii::Type.check_type(@owner_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ownerAccountId") unless @owner_account_id.nil?
end

Instance Attribute Details

#origin_keepalive_timeoutNumeric? (readonly)

Note:

Default: - 5

Specifies how long, in seconds, CloudFront persists its connection to the origin.

The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 5 seconds.

For more information, see Keep-alive timeout (custom origins only) in the Amazon CloudFront Developer Guide .



3560
3561
3562
# File 'cloud_front/cfn_distribution.rb', line 3560

def origin_keepalive_timeout
  @origin_keepalive_timeout
end

#origin_read_timeoutNumeric? (readonly)

Note:

Default: - 30

Specifies how long, in seconds, CloudFront waits for a response from the origin.

This is also known as the origin response timeout . The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.

For more information, see Response timeout in the Amazon CloudFront Developer Guide .



3570
3571
3572
# File 'cloud_front/cfn_distribution.rb', line 3570

def origin_read_timeout
  @origin_read_timeout
end

#owner_account_idString? (readonly)

The account ID of the AWS account that owns the VPC origin.



3575
3576
3577
# File 'cloud_front/cfn_distribution.rb', line 3575

def 
  @owner_account_id
end

#vpc_origin_idString (readonly)

The VPC origin ID.



3550
3551
3552
# File 'cloud_front/cfn_distribution.rb', line 3550

def vpc_origin_id
  @vpc_origin_id
end

Class Method Details

.jsii_propertiesObject



3577
3578
3579
3580
3581
3582
3583
3584
# File 'cloud_front/cfn_distribution.rb', line 3577

def self.jsii_properties
  {
    :vpc_origin_id => "vpcOriginId",
    :origin_keepalive_timeout => "originKeepaliveTimeout",
    :origin_read_timeout => "originReadTimeout",
    :owner_account_id => "ownerAccountId",
  }
end

Instance Method Details

#to_jsiiObject



3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
# File 'cloud_front/cfn_distribution.rb', line 3586

def to_jsii
  result = {}
  result.merge!({
    "vpcOriginId" => @vpc_origin_id,
    "originKeepaliveTimeout" => @origin_keepalive_timeout,
    "originReadTimeout" => @origin_read_timeout,
    "ownerAccountId" => @owner_account_id,
  })
  result.compact
end