Class: AWSCDK::ApplicationSignals::CfnServiceLevelObjective::SelectionConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
application_signals/cfn_service_level_objective.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, pattern: nil) ⇒ SelectionConfigProperty

Returns a new instance of SelectionConfigProperty.

Parameters:

  • type (String)
  • pattern (String, nil) (defaults to: nil)


1681
1682
1683
1684
1685
1686
# File 'application_signals/cfn_service_level_objective.rb', line 1681

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

Instance Attribute Details

#patternString? (readonly)



1693
1694
1695
# File 'application_signals/cfn_service_level_objective.rb', line 1693

def pattern
  @pattern
end

#typeString (readonly)



1690
1691
1692
# File 'application_signals/cfn_service_level_objective.rb', line 1690

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1695
1696
1697
1698
1699
1700
# File 'application_signals/cfn_service_level_objective.rb', line 1695

def self.jsii_properties
  {
    :type => "type",
    :pattern => "pattern",
  }
end

Instance Method Details

#to_jsiiObject



1702
1703
1704
1705
1706
1707
1708
1709
# File 'application_signals/cfn_service_level_objective.rb', line 1702

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