Class: AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRoutePrefixRewriteProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRoutePrefixRewriteProperty
- Defined in:
- app_mesh/cfn_gateway_route.rb
Overview
An object representing the beginning characters of the route to rewrite.
Instance Attribute Summary collapse
-
#default_prefix ⇒ String?
readonly
The default prefix used to replace the incoming route prefix when rewritten.
-
#value ⇒ String?
readonly
The value used to replace the incoming route prefix when rewritten.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(default_prefix: nil, value: nil) ⇒ HttpGatewayRoutePrefixRewriteProperty
constructor
A new instance of HttpGatewayRoutePrefixRewriteProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(default_prefix: nil, value: nil) ⇒ HttpGatewayRoutePrefixRewriteProperty
Returns a new instance of HttpGatewayRoutePrefixRewriteProperty.
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_prefix ⇒ String? (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 |
#value ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |