Class: AWSCDK::FraudDetector::CfnEventTypeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FraudDetector::CfnEventTypeProps
- Defined in:
- fraud_detector/cfn_event_type_props.rb
Overview
Properties for defining a CfnEventType.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The event type description.
-
#entity_types ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::FraudDetector::CfnEventType::EntityTypeProperty>
readonly
The event type entity types.
-
#event_variables ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::FraudDetector::CfnEventType::EventVariableProperty>
readonly
The event type event variables.
-
#labels ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::FraudDetector::CfnEventType::LabelProperty>
readonly
The event type labels.
-
#name ⇒ String
readonly
The event type name.
-
#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(entity_types:, event_variables:, labels:, name:, description: nil, tags: nil) ⇒ CfnEventTypeProps
constructor
A new instance of CfnEventTypeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(entity_types:, event_variables:, labels:, name:, description: nil, tags: nil) ⇒ CfnEventTypeProps
Returns a new instance of CfnEventTypeProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'fraud_detector/cfn_event_type_props.rb', line 15 def initialize(entity_types:, event_variables:, labels:, name:, description: nil, tags: nil) @entity_types = entity_types Jsii::Type.check_type(@entity_types, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZnJhdWRkZXRlY3Rvci5DZm5FdmVudFR5cGUuRW50aXR5VHlwZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "entityTypes") @event_variables = event_variables Jsii::Type.check_type(@event_variables, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZnJhdWRkZXRlY3Rvci5DZm5FdmVudFR5cGUuRXZlbnRWYXJpYWJsZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "eventVariables") @labels = labels Jsii::Type.check_type(@labels, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZnJhdWRkZXRlY3Rvci5DZm5FdmVudFR5cGUuTGFiZWxQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "labels") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.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
#description ⇒ String? (readonly)
The event type description.
56 57 58 |
# File 'fraud_detector/cfn_event_type_props.rb', line 56 def description @description end |
#entity_types ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::FraudDetector::CfnEventType::EntityTypeProperty> (readonly)
The event type entity types.
34 35 36 |
# File 'fraud_detector/cfn_event_type_props.rb', line 34 def entity_types @entity_types end |
#event_variables ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::FraudDetector::CfnEventType::EventVariableProperty> (readonly)
The event type event variables.
39 40 41 |
# File 'fraud_detector/cfn_event_type_props.rb', line 39 def event_variables @event_variables end |
#labels ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::FraudDetector::CfnEventType::LabelProperty> (readonly)
The event type labels.
44 45 46 |
# File 'fraud_detector/cfn_event_type_props.rb', line 44 def labels @labels end |
#name ⇒ String (readonly)
The event type name.
Pattern : ^[0-9a-z_-]+$
51 52 53 |
# File 'fraud_detector/cfn_event_type_props.rb', line 51 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
63 64 65 |
# File 'fraud_detector/cfn_event_type_props.rb', line 63 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
65 66 67 68 69 70 71 72 73 74 |
# File 'fraud_detector/cfn_event_type_props.rb', line 65 def self.jsii_properties { :entity_types => "entityTypes", :event_variables => "eventVariables", :labels => "labels", :name => "name", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'fraud_detector/cfn_event_type_props.rb', line 76 def to_jsii result = {} result.merge!({ "entityTypes" => @entity_types, "eventVariables" => @event_variables, "labels" => @labels, "name" => @name, "description" => @description, "tags" => @tags, }) result.compact end |