Class: AWSCDK::IoT::CfnSecurityProfile::MetricValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnSecurityProfile::MetricValueProperty
- Defined in:
- io_t/cfn_security_profile.rb
Overview
The value to be compared with the metric .
Instance Attribute Summary collapse
-
#cidrs ⇒ Array<String>?
readonly
If the
comparisonOperatorcalls for a set of CIDRs, use this to specify that set to be compared with themetric. -
#count ⇒ String?
readonly
If the
comparisonOperatorcalls for a numeric value, use this to specify that numeric value to be compared with themetric. -
#number ⇒ Numeric?
readonly
The numeric values of a metric.
-
#numbers ⇒ Array<Numeric>, ...
readonly
The numeric value of a metric.
-
#ports ⇒ Array<Numeric>, ...
readonly
If the
comparisonOperatorcalls for a set of ports, use this to specify that set to be compared with themetric. -
#strings ⇒ Array<String>?
readonly
The string values of a metric.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cidrs: nil, count: nil, number: nil, numbers: nil, ports: nil, strings: nil) ⇒ MetricValueProperty
constructor
A new instance of MetricValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cidrs: nil, count: nil, number: nil, numbers: nil, ports: nil, strings: nil) ⇒ MetricValueProperty
Returns a new instance of MetricValueProperty.
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
#cidrs ⇒ Array<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 |
#count ⇒ String? (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 |
#number ⇒ Numeric? (readonly)
The numeric values of a metric.
1044 1045 1046 |
# File 'io_t/cfn_security_profile.rb', line 1044 def number @number end |
#numbers ⇒ Array<Numeric>, ... (readonly)
The numeric value of a metric.
1049 1050 1051 |
# File 'io_t/cfn_security_profile.rb', line 1049 def numbers @numbers end |
#ports ⇒ Array<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 |
#strings ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |