Class: AWSCDK::Events::CfnEndpoint::SecondaryProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(route:) ⇒ SecondaryProperty

Returns a new instance of SecondaryProperty.

Parameters:

  • route (String)

    Defines the secondary Region.



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

#routeString (readonly)

Defines the secondary Region.



822
823
824
# File 'events/cfn_endpoint.rb', line 822

def route
  @route
end

Class Method Details

.jsii_propertiesObject



824
825
826
827
828
# File 'events/cfn_endpoint.rb', line 824

def self.jsii_properties
  {
    :route => "route",
  }
end

Instance Method Details

#to_jsiiObject



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