Class: AWSCDK::FraudDetector::CfnEventTypeProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fraud_detector/cfn_event_type_props.rb

Overview

Properties for defining a CfnEventType.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entity_types:, event_variables:, labels:, name:, description: nil, tags: nil) ⇒ CfnEventTypeProps

Returns a new instance of CfnEventTypeProps.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The event type description.



56
57
58
# File 'fraud_detector/cfn_event_type_props.rb', line 56

def description
  @description
end

#nameString (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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