Class: AWSCDK::FraudDetector::CfnDetector::RuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FraudDetector::CfnDetector::RuleProperty
- Defined in:
- fraud_detector/cfn_detector.rb
Overview
A rule.
Instance Attribute Summary collapse
-
#arn ⇒ String?
readonly
The rule ARN.
-
#created_time ⇒ String?
readonly
Timestamp for when the rule was created.
-
#description ⇒ String?
readonly
The rule description.
-
#detector_id ⇒ String?
readonly
The detector for which the rule is associated.
-
#expression ⇒ String?
readonly
The rule expression.
-
#language ⇒ String?
readonly
The rule language.
-
#last_updated_time ⇒ String?
readonly
Timestamp for when the rule was last updated.
-
#outcomes ⇒ AWSCDK::IResolvable, ...
readonly
The rule outcome.
-
#rule_id ⇒ String?
readonly
The rule ID.
-
#rule_version ⇒ String?
readonly
The rule version.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn: nil, created_time: nil, description: nil, detector_id: nil, expression: nil, language: nil, last_updated_time: nil, outcomes: nil, rule_id: nil, rule_version: nil, tags: nil) ⇒ RuleProperty
constructor
A new instance of RuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn: nil, created_time: nil, description: nil, detector_id: nil, expression: nil, language: nil, last_updated_time: nil, outcomes: nil, rule_id: nil, rule_version: nil, tags: nil) ⇒ RuleProperty
Returns a new instance of RuleProperty.
1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 |
# File 'fraud_detector/cfn_detector.rb', line 1275 def initialize(arn: nil, created_time: nil, description: nil, detector_id: nil, expression: nil, language: nil, last_updated_time: nil, outcomes: nil, rule_id: nil, rule_version: nil, tags: nil) @arn = arn Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil? @created_time = created_time Jsii::Type.check_type(@created_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "createdTime") unless @created_time.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @detector_id = detector_id Jsii::Type.check_type(@detector_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "detectorId") unless @detector_id.nil? @expression = expression Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression") unless @expression.nil? @language = language Jsii::Type.check_type(@language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "language") unless @language.nil? @last_updated_time = last_updated_time Jsii::Type.check_type(@last_updated_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastUpdatedTime") unless @last_updated_time.nil? @outcomes = outcomes Jsii::Type.check_type(@outcomes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZnJhdWRkZXRlY3Rvci5DZm5EZXRlY3Rvci5PdXRjb21lUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "outcomes") unless @outcomes.nil? @rule_id = rule_id Jsii::Type.check_type(@rule_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleId") unless @rule_id.nil? @rule_version = rule_version Jsii::Type.check_type(@rule_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleVersion") unless @rule_version.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#arn ⇒ String? (readonly)
The rule ARN.
1304 1305 1306 |
# File 'fraud_detector/cfn_detector.rb', line 1304 def arn @arn end |
#created_time ⇒ String? (readonly)
Timestamp for when the rule was created.
1309 1310 1311 |
# File 'fraud_detector/cfn_detector.rb', line 1309 def created_time @created_time end |
#description ⇒ String? (readonly)
The rule description.
1314 1315 1316 |
# File 'fraud_detector/cfn_detector.rb', line 1314 def description @description end |
#detector_id ⇒ String? (readonly)
The detector for which the rule is associated.
1319 1320 1321 |
# File 'fraud_detector/cfn_detector.rb', line 1319 def detector_id @detector_id end |
#expression ⇒ String? (readonly)
The rule expression.
A rule expression captures the business logic. For more information, see Rule language reference .
1326 1327 1328 |
# File 'fraud_detector/cfn_detector.rb', line 1326 def expression @expression end |
#language ⇒ String? (readonly)
The rule language.
Valid Value: DETECTORPL
1333 1334 1335 |
# File 'fraud_detector/cfn_detector.rb', line 1333 def language @language end |
#last_updated_time ⇒ String? (readonly)
Timestamp for when the rule was last updated.
1338 1339 1340 |
# File 'fraud_detector/cfn_detector.rb', line 1338 def last_updated_time @last_updated_time end |
#outcomes ⇒ AWSCDK::IResolvable, ... (readonly)
The rule outcome.
1343 1344 1345 |
# File 'fraud_detector/cfn_detector.rb', line 1343 def outcomes @outcomes end |
#rule_id ⇒ String? (readonly)
The rule ID.
1348 1349 1350 |
# File 'fraud_detector/cfn_detector.rb', line 1348 def rule_id @rule_id end |
#rule_version ⇒ String? (readonly)
The rule version.
1353 1354 1355 |
# File 'fraud_detector/cfn_detector.rb', line 1353 def rule_version @rule_version end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
1360 1361 1362 |
# File 'fraud_detector/cfn_detector.rb', line 1360 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 |
# File 'fraud_detector/cfn_detector.rb', line 1362 def self.jsii_properties { :arn => "arn", :created_time => "createdTime", :description => "description", :detector_id => "detectorId", :expression => "expression", :language => "language", :last_updated_time => "lastUpdatedTime", :outcomes => "outcomes", :rule_id => "ruleId", :rule_version => "ruleVersion", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 |
# File 'fraud_detector/cfn_detector.rb', line 1378 def to_jsii result = {} result.merge!({ "arn" => @arn, "createdTime" => @created_time, "description" => @description, "detectorId" => @detector_id, "expression" => @expression, "language" => @language, "lastUpdatedTime" => @last_updated_time, "outcomes" => @outcomes, "ruleId" => @rule_id, "ruleVersion" => @rule_version, "tags" => @tags, }) result.compact end |