Class: AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRoutePrefixRewriteProperty

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

Overview

An object representing the beginning characters of the route to rewrite.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_prefix: nil, value: nil) ⇒ HttpGatewayRoutePrefixRewriteProperty

Returns a new instance of HttpGatewayRoutePrefixRewriteProperty.

Parameters:

  • default_prefix (String, nil) (defaults to: nil)

    The default prefix used to replace the incoming route prefix when rewritten.

  • value (String, nil) (defaults to: nil)

    The value used to replace the incoming route prefix when rewritten.



1521
1522
1523
1524
1525
1526
# File 'app_mesh/cfn_gateway_route.rb', line 1521

def initialize(default_prefix: nil, value: nil)
  @default_prefix = default_prefix
  Jsii::Type.check_type(@default_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultPrefix") unless @default_prefix.nil?
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#default_prefixString? (readonly)

The default prefix used to replace the incoming route prefix when rewritten.



1532
1533
1534
# File 'app_mesh/cfn_gateway_route.rb', line 1532

def default_prefix
  @default_prefix
end

#valueString? (readonly)

The value used to replace the incoming route prefix when rewritten.



1537
1538
1539
# File 'app_mesh/cfn_gateway_route.rb', line 1537

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1539
1540
1541
1542
1543
1544
# File 'app_mesh/cfn_gateway_route.rb', line 1539

def self.jsii_properties
  {
    :default_prefix => "defaultPrefix",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1546
1547
1548
1549
1550
1551
1552
1553
# File 'app_mesh/cfn_gateway_route.rb', line 1546

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