Class: AWSCDK::VPCLattice::CfnRule::PathMatchTypeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
vpc_lattice/cfn_rule.rb

Overview

Describes a path match type.

Each rule can include only one of the following types of paths.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exact: nil, prefix: nil) ⇒ PathMatchTypeProperty

Returns a new instance of PathMatchTypeProperty.

Parameters:

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

    An exact match of the path.

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

    A prefix match of the path.



974
975
976
977
978
979
# File 'vpc_lattice/cfn_rule.rb', line 974

def initialize(exact: nil, prefix: 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

#exactString? (readonly)

An exact match of the path.



985
986
987
# File 'vpc_lattice/cfn_rule.rb', line 985

def exact
  @exact
end

#prefixString? (readonly)

A prefix match of the path.



990
991
992
# File 'vpc_lattice/cfn_rule.rb', line 990

def prefix
  @prefix
end

Class Method Details

.jsii_propertiesObject



992
993
994
995
996
997
# File 'vpc_lattice/cfn_rule.rb', line 992

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

Instance Method Details

#to_jsiiObject



999
1000
1001
1002
1003
1004
1005
1006
# File 'vpc_lattice/cfn_rule.rb', line 999

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