Class: AWSCDK::VPCLattice::CfnRule::HeaderMatchTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::VPCLattice::CfnRule::HeaderMatchTypeProperty
- Defined in:
- vpc_lattice/cfn_rule.rb
Overview
Describes a header match type.
Instance Attribute Summary collapse
-
#contains ⇒ String?
readonly
A contains type match.
-
#exact ⇒ String?
readonly
An exact type match.
-
#prefix ⇒ String?
readonly
A prefix type match.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(contains: nil, exact: nil, prefix: nil) ⇒ HeaderMatchTypeProperty
constructor
A new instance of HeaderMatchTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(contains: nil, exact: nil, prefix: nil) ⇒ HeaderMatchTypeProperty
Returns a new instance of HeaderMatchTypeProperty.
786 787 788 789 790 791 792 793 |
# File 'vpc_lattice/cfn_rule.rb', line 786 def initialize(contains: nil, exact: nil, prefix: nil) @contains = contains Jsii::Type.check_type(@contains, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contains") unless @contains.nil? @exact = exact Jsii::Type.check_type(@exact, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "exact") unless @exact.nil? @prefix = prefix Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil? end |
Instance Attribute Details
#contains ⇒ String? (readonly)
A contains type match.
799 800 801 |
# File 'vpc_lattice/cfn_rule.rb', line 799 def contains @contains end |
#exact ⇒ String? (readonly)
An exact type match.
804 805 806 |
# File 'vpc_lattice/cfn_rule.rb', line 804 def exact @exact end |
#prefix ⇒ String? (readonly)
A prefix type match.
Matches the value with the prefix.
811 812 813 |
# File 'vpc_lattice/cfn_rule.rb', line 811 def prefix @prefix end |
Class Method Details
.jsii_properties ⇒ Object
813 814 815 816 817 818 819 |
# File 'vpc_lattice/cfn_rule.rb', line 813 def self.jsii_properties { :contains => "contains", :exact => "exact", :prefix => "prefix", } end |
Instance Method Details
#to_jsii ⇒ Object
821 822 823 824 825 826 827 828 829 |
# File 'vpc_lattice/cfn_rule.rb', line 821 def to_jsii result = {} result.merge!({ "contains" => @contains, "exact" => @exact, "prefix" => @prefix, }) result.compact end |