Module: AWSCDK::CloudFront::IOrigin
- Included in:
- OriginBase, AWSCDK::CloudFrontOrigins::OriginGroup, AWSCDK::CloudFrontOrigins::S3Origin
- Defined in:
- cloud_front/i_origin.rb
Overview
Represents the concept of a CloudFront Origin.
You provide one or more origins when creating a Distribution.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(scope, options) ⇒ AWSCDK::CloudFront::OriginBindConfig
The method called when a given Origin is added (for the first time) to a Distribution.
Class Method Details
.jsii_overridable_methods ⇒ Object
21 22 23 24 25 |
# File 'cloud_front/i_origin.rb', line 21 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(scope, options) ⇒ AWSCDK::CloudFront::OriginBindConfig
The method called when a given Origin is added (for the first time) to a Distribution.
14 15 16 17 18 19 |
# File 'cloud_front/i_origin.rb', line 14 def bind(scope, ) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") = .is_a?(Hash) ? ::AWSCDK::CloudFront::OriginBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWRmcm9udC5PcmlnaW5CaW5kT3B0aW9ucyJ9")), "options") jsii_call_method("bind", [scope, ]) end |