Class: AWSCDK::Lightsail::CfnDistribution::InputOriginProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lightsail::CfnDistribution::InputOriginProperty
- Defined in:
- lightsail/cfn_distribution.rb
Overview
InputOrigin is a property of the AWS::Lightsail::Distribution resource. It describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.
An origin can be a instance, bucket, or load balancer. A distribution pulls content from an origin, caches it, and serves it to viewers through a worldwide network of edge servers.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The name of the origin resource.
-
#protocol_policy ⇒ String?
readonly
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
-
#region_name ⇒ String?
readonly
The AWS Region name of the origin resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, protocol_policy: nil, region_name: nil) ⇒ InputOriginProperty
constructor
A new instance of InputOriginProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, protocol_policy: nil, region_name: nil) ⇒ InputOriginProperty
Returns a new instance of InputOriginProperty.
1011 1012 1013 1014 1015 1016 1017 1018 |
# File 'lightsail/cfn_distribution.rb', line 1011 def initialize(name: nil, protocol_policy: nil, region_name: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @protocol_policy = protocol_policy Jsii::Type.check_type(@protocol_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocolPolicy") unless @protocol_policy.nil? @region_name = region_name Jsii::Type.check_type(@region_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regionName") unless @region_name.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The name of the origin resource.
1024 1025 1026 |
# File 'lightsail/cfn_distribution.rb', line 1024 def name @name end |
#protocol_policy ⇒ String? (readonly)
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
1029 1030 1031 |
# File 'lightsail/cfn_distribution.rb', line 1029 def protocol_policy @protocol_policy end |
#region_name ⇒ String? (readonly)
The AWS Region name of the origin resource.
1034 1035 1036 |
# File 'lightsail/cfn_distribution.rb', line 1034 def region_name @region_name end |
Class Method Details
.jsii_properties ⇒ Object
1036 1037 1038 1039 1040 1041 1042 |
# File 'lightsail/cfn_distribution.rb', line 1036 def self.jsii_properties { :name => "name", :protocol_policy => "protocolPolicy", :region_name => "regionName", } end |
Instance Method Details
#to_jsii ⇒ Object
1044 1045 1046 1047 1048 1049 1050 1051 1052 |
# File 'lightsail/cfn_distribution.rb', line 1044 def to_jsii result = {} result.merge!({ "name" => @name, "protocolPolicy" => @protocol_policy, "regionName" => @region_name, }) result.compact end |