Class: AWSCDK::AppMesh::HeaderMatch
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::AppMesh::HeaderMatch
- Defined in:
- app_mesh/header_match.rb
Overview
Used to generate header matching methods.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.value_does_not_end_with(header_name, suffix) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must not end with the specified characters.
-
.value_does_not_match_regex(header_name, regex) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must not include the specified characters.
-
.value_does_not_start_with(header_name, prefix) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must not start with the specified characters.
-
.value_ends_with(header_name, suffix) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must end with the specified characters.
-
.value_is(header_name, header_value) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must match the specified value exactly.
-
.value_is_not(header_name, header_value) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must not match the specified value exactly.
-
.value_matches_regex(header_name, regex) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must include the specified characters.
-
.value_starts_with(header_name, prefix) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must start with the specified characters.
-
.values_is_in_range(header_name, start, _end) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must be in a range of values.
-
.values_is_not_in_range(header_name, start, _end) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must not be in a range of values.
Instance Method Summary collapse
-
#bind(scope) ⇒ AWSCDK::AppMesh::HeaderMatchConfig
Returns the header match configuration.
-
#initialize ⇒ HeaderMatch
constructor
A new instance of HeaderMatch.
Constructor Details
#initialize ⇒ HeaderMatch
Returns a new instance of HeaderMatch.
8 9 10 |
# File 'app_mesh/header_match.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 |
# File 'app_mesh/header_match.rb', line 12 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
.value_does_not_end_with(header_name, suffix) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must not end with the specified characters.
23 24 25 26 27 |
# File 'app_mesh/header_match.rb', line 23 def self.value_does_not_end_with(header_name, suffix) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Type.check_type(suffix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "suffix") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HeaderMatch", "valueDoesNotEndWith", [header_name, suffix]) end |
.value_does_not_match_regex(header_name, regex) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must not include the specified characters.
34 35 36 37 38 |
# File 'app_mesh/header_match.rb', line 34 def self.value_does_not_match_regex(header_name, regex) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Type.check_type(regex, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regex") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HeaderMatch", "valueDoesNotMatchRegex", [header_name, regex]) end |
.value_does_not_start_with(header_name, prefix) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must not start with the specified characters.
45 46 47 48 49 |
# File 'app_mesh/header_match.rb', line 45 def self.value_does_not_start_with(header_name, prefix) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Type.check_type(prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HeaderMatch", "valueDoesNotStartWith", [header_name, prefix]) end |
.value_ends_with(header_name, suffix) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must end with the specified characters.
56 57 58 59 60 |
# File 'app_mesh/header_match.rb', line 56 def self.value_ends_with(header_name, suffix) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Type.check_type(suffix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "suffix") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HeaderMatch", "valueEndsWith", [header_name, suffix]) end |
.value_is(header_name, header_value) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must match the specified value exactly.
67 68 69 70 71 |
# File 'app_mesh/header_match.rb', line 67 def self.value_is(header_name, header_value) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Type.check_type(header_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerValue") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HeaderMatch", "valueIs", [header_name, header_value]) end |
.value_is_not(header_name, header_value) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must not match the specified value exactly.
78 79 80 81 82 |
# File 'app_mesh/header_match.rb', line 78 def self.value_is_not(header_name, header_value) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Type.check_type(header_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerValue") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HeaderMatch", "valueIsNot", [header_name, header_value]) end |
.value_matches_regex(header_name, regex) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must include the specified characters.
89 90 91 92 93 |
# File 'app_mesh/header_match.rb', line 89 def self.value_matches_regex(header_name, regex) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Type.check_type(regex, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regex") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HeaderMatch", "valueMatchesRegex", [header_name, regex]) end |
.value_starts_with(header_name, prefix) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must start with the specified characters.
126 127 128 129 130 |
# File 'app_mesh/header_match.rb', line 126 def self.value_starts_with(header_name, prefix) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Type.check_type(prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HeaderMatch", "valueStartsWith", [header_name, prefix]) end |
.values_is_in_range(header_name, start, _end) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must be in a range of values.
101 102 103 104 105 106 |
# File 'app_mesh/header_match.rb', line 101 def self.values_is_in_range(header_name, start, _end) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Type.check_type(start, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "start") Jsii::Type.check_type(_end, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "end") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HeaderMatch", "valuesIsInRange", [header_name, start, _end]) end |
.values_is_not_in_range(header_name, start, _end) ⇒ AWSCDK::AppMesh::HeaderMatch
The value of the header with the given name in the request must not be in a range of values.
114 115 116 117 118 119 |
# File 'app_mesh/header_match.rb', line 114 def self.values_is_not_in_range(header_name, start, _end) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Type.check_type(start, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "start") Jsii::Type.check_type(_end, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "end") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HeaderMatch", "valuesIsNotInRange", [header_name, start, _end]) end |
Instance Method Details
#bind(scope) ⇒ AWSCDK::AppMesh::HeaderMatchConfig
Returns the header match configuration.
136 137 138 139 |
# File 'app_mesh/header_match.rb', line 136 def bind(scope) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") jsii_call_method("bind", [scope]) end |