Class: AWSCDK::Events::CfnEndpoint::SecondaryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Events::CfnEndpoint::SecondaryProperty
- Defined in:
- events/cfn_endpoint.rb
Overview
The secondary Region that processes events when failover is triggered or replication is enabled.
Instance Attribute Summary collapse
-
#route ⇒ String
readonly
Defines the secondary Region.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(route:) ⇒ SecondaryProperty
constructor
A new instance of SecondaryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(route:) ⇒ SecondaryProperty
Returns a new instance of SecondaryProperty.
813 814 815 816 |
# File 'events/cfn_endpoint.rb', line 813 def initialize(route:) @route = route Jsii::Type.check_type(@route, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "route") end |
Instance Attribute Details
#route ⇒ String (readonly)
Defines the secondary Region.
822 823 824 |
# File 'events/cfn_endpoint.rb', line 822 def route @route end |
Class Method Details
.jsii_properties ⇒ Object
824 825 826 827 828 |
# File 'events/cfn_endpoint.rb', line 824 def self.jsii_properties { :route => "route", } end |
Instance Method Details
#to_jsii ⇒ Object
830 831 832 833 834 835 836 |
# File 'events/cfn_endpoint.rb', line 830 def to_jsii result = {} result.merge!({ "route" => @route, }) result.compact end |