Class: AWSCDK::CloudFront::CfnDistribution::VPCOriginConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnDistribution::VPCOriginConfigProperty
- Defined in:
- cloud_front/cfn_distribution.rb
Overview
An Amazon CloudFront VPC origin configuration.
Instance Attribute Summary collapse
-
#origin_keepalive_timeout ⇒ Numeric?
readonly
Specifies how long, in seconds, CloudFront persists its connection to the origin.
-
#origin_read_timeout ⇒ Numeric?
readonly
Specifies how long, in seconds, CloudFront waits for a response from the origin.
-
#owner_account_id ⇒ String?
readonly
The account ID of the AWS account that owns the VPC origin.
-
#vpc_origin_id ⇒ String
readonly
The VPC origin ID.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(vpc_origin_id:, origin_keepalive_timeout: nil, origin_read_timeout: nil, owner_account_id: nil) ⇒ VPCOriginConfigProperty
constructor
A new instance of VPCOriginConfigProperty.
- #to_jsii ⇒ Object
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.
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 = 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_timeout ⇒ Numeric? (readonly)
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_timeout ⇒ Numeric? (readonly)
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_id ⇒ String? (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 @owner_account_id end |
#vpc_origin_id ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |