Class: AWSCDK::AppMesh::CommonGatewayRouteSpecOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/common_gateway_route_spec_options.rb

Overview

Base options for all gateway route specs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(priority: nil) ⇒ CommonGatewayRouteSpecOptions

Returns a new instance of CommonGatewayRouteSpecOptions.

Parameters:

  • priority (Numeric, nil) (defaults to: nil)

    The priority for the gateway route.



8
9
10
11
# File 'app_mesh/common_gateway_route_spec_options.rb', line 8

def initialize(priority: nil)
  @priority = priority
  Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority") unless @priority.nil?
end

Instance Attribute Details

#priorityNumeric? (readonly)

Note:

Default: - no particular priority

The priority for the gateway route.

When a Virtual Gateway has multiple gateway routes, gateway route match is performed in the order of specified value, where 0 is the highest priority, and first matched gateway route is selected.

Returns:

  • (Numeric, nil)


21
22
23
# File 'app_mesh/common_gateway_route_spec_options.rb', line 21

def priority
  @priority
end

Class Method Details

.jsii_propertiesObject



23
24
25
26
27
# File 'app_mesh/common_gateway_route_spec_options.rb', line 23

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

Instance Method Details

#to_jsiiObject



29
30
31
32
33
34
35
# File 'app_mesh/common_gateway_route_spec_options.rb', line 29

def to_jsii
  result = {}
  result.merge!({
    "priority" => @priority,
  })
  result.compact
end