Class: AWSCDK::IoT::CfnSecurityProfile::MetricValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_security_profile.rb

Overview

The value to be compared with the metric .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cidrs: nil, count: nil, number: nil, numbers: nil, ports: nil, strings: nil) ⇒ MetricValueProperty

Returns a new instance of MetricValueProperty.

Parameters:

  • cidrs (Array<String>, nil) (defaults to: nil)

    If the comparisonOperator calls for a set of CIDRs, use this to specify that set to be compared with the metric .

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

    If the comparisonOperator calls for a numeric value, use this to specify that numeric value to be compared with the metric .

  • number (Numeric, nil) (defaults to: nil)

    The numeric values of a metric.

  • numbers (Array<Numeric>, AWSCDK::IResolvable, nil) (defaults to: nil)

    The numeric value of a metric.

  • ports (Array<Numeric>, AWSCDK::IResolvable, nil) (defaults to: nil)

    If the comparisonOperator calls for a set of ports, use this to specify that set to be compared with the metric .

  • strings (Array<String>, nil) (defaults to: nil)

    The string values of a metric.



1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
# File 'io_t/cfn_security_profile.rb', line 1015

def initialize(cidrs: nil, count: nil, number: nil, numbers: nil, ports: nil, strings: nil)
  @cidrs = cidrs
  Jsii::Type.check_type(@cidrs, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "cidrs") unless @cidrs.nil?
  @count = count
  Jsii::Type.check_type(@count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "count") unless @count.nil?
  @number = number
  Jsii::Type.check_type(@number, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "number") unless @number.nil?
  @numbers = numbers
  Jsii::Type.check_type(@numbers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJwcmltaXRpdmUiOiJudW1iZXIifSwia2luZCI6ImFycmF5In19LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "numbers") unless @numbers.nil?
  @ports = ports
  Jsii::Type.check_type(@ports, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJwcmltaXRpdmUiOiJudW1iZXIifSwia2luZCI6ImFycmF5In19LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "ports") unless @ports.nil?
  @strings = strings
  Jsii::Type.check_type(@strings, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "strings") unless @strings.nil?
end

Instance Attribute Details

#cidrsArray<String>? (readonly)

If the comparisonOperator calls for a set of CIDRs, use this to specify that set to be compared with the metric .



1034
1035
1036
# File 'io_t/cfn_security_profile.rb', line 1034

def cidrs
  @cidrs
end

#countString? (readonly)

If the comparisonOperator calls for a numeric value, use this to specify that numeric value to be compared with the metric .



1039
1040
1041
# File 'io_t/cfn_security_profile.rb', line 1039

def count
  @count
end

#numberNumeric? (readonly)

The numeric values of a metric.



1044
1045
1046
# File 'io_t/cfn_security_profile.rb', line 1044

def number
  @number
end

#numbersArray<Numeric>, ... (readonly)

The numeric value of a metric.



1049
1050
1051
# File 'io_t/cfn_security_profile.rb', line 1049

def numbers
  @numbers
end

#portsArray<Numeric>, ... (readonly)

If the comparisonOperator calls for a set of ports, use this to specify that set to be compared with the metric .



1054
1055
1056
# File 'io_t/cfn_security_profile.rb', line 1054

def ports
  @ports
end

#stringsArray<String>? (readonly)

The string values of a metric.



1059
1060
1061
# File 'io_t/cfn_security_profile.rb', line 1059

def strings
  @strings
end

Class Method Details

.jsii_propertiesObject



1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
# File 'io_t/cfn_security_profile.rb', line 1061

def self.jsii_properties
  {
    :cidrs => "cidrs",
    :count => "count",
    :number => "number",
    :numbers => "numbers",
    :ports => "ports",
    :strings => "strings",
  }
end

Instance Method Details

#to_jsiiObject



1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
# File 'io_t/cfn_security_profile.rb', line 1072

def to_jsii
  result = {}
  result.merge!({
    "cidrs" => @cidrs,
    "count" => @count,
    "number" => @number,
    "numbers" => @numbers,
    "ports" => @ports,
    "strings" => @strings,
  })
  result.compact
end