Class: AWSCDK::FraudDetector::CfnDetector::EventVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FraudDetector::CfnDetector::EventVariableProperty
- Defined in:
- fraud_detector/cfn_detector.rb
Overview
The event type variable for the detector.
Instance Attribute Summary collapse
-
#arn ⇒ String?
readonly
The event variable ARN.
-
#created_time ⇒ String?
readonly
Timestamp for when the event variable was created.
-
#data_source ⇒ String?
readonly
The data source of the event variable.
-
#data_type ⇒ String?
readonly
The data type of the event variable.
-
#default_value ⇒ String?
readonly
The default value of the event variable.
-
#description ⇒ String?
readonly
The description of the event variable.
-
#inline ⇒ Boolean, ...
readonly
Indicates whether the resource is defined within this CloudFormation template and impacts the create, update, and delete behavior of the stack.
-
#last_updated_time ⇒ String?
readonly
Timestamp for when the event variable was last updated.
-
#name ⇒ String?
readonly
The name of the event variable.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
-
#variable_type ⇒ String?
readonly
The type of event variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn: nil, created_time: nil, data_source: nil, data_type: nil, default_value: nil, description: nil, inline: nil, last_updated_time: nil, name: nil, tags: nil, variable_type: nil) ⇒ EventVariableProperty
constructor
A new instance of EventVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn: nil, created_time: nil, data_source: nil, data_type: nil, default_value: nil, description: nil, inline: nil, last_updated_time: nil, name: nil, tags: nil, variable_type: nil) ⇒ EventVariableProperty
Returns a new instance of EventVariableProperty.
895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 |
# File 'fraud_detector/cfn_detector.rb', line 895 def initialize(arn: nil, created_time: nil, data_source: nil, data_type: nil, default_value: nil, description: nil, inline: nil, last_updated_time: nil, name: nil, tags: nil, variable_type: 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? @data_source = data_source Jsii::Type.check_type(@data_source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataSource") unless @data_source.nil? @data_type = data_type Jsii::Type.check_type(@data_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataType") unless @data_type.nil? @default_value = default_value Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultValue") unless @default_value.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @inline = inline Jsii::Type.check_type(@inline, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "inline") unless @inline.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? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.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? @variable_type = variable_type Jsii::Type.check_type(@variable_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variableType") unless @variable_type.nil? end |
Instance Attribute Details
#arn ⇒ String? (readonly)
The event variable ARN.
924 925 926 |
# File 'fraud_detector/cfn_detector.rb', line 924 def arn @arn end |
#created_time ⇒ String? (readonly)
Timestamp for when the event variable was created.
929 930 931 |
# File 'fraud_detector/cfn_detector.rb', line 929 def created_time @created_time end |
#data_source ⇒ String? (readonly)
The data source of the event variable.
Valid values: EVENT | EXTERNAL_MODEL_SCORE
When defining a variable within a detector, you can only use the EVENT value for DataSource when the Inline property is set to true. If the Inline property is set false, you can use either EVENT or MODEL_SCORE for DataSource.
938 939 940 |
# File 'fraud_detector/cfn_detector.rb', line 938 def data_source @data_source end |
#data_type ⇒ String? (readonly)
The data type of the event variable.
Valid values: STRING | INTEGER | BOOLEAN | FLOAT
945 946 947 |
# File 'fraud_detector/cfn_detector.rb', line 945 def data_type @data_type end |
#default_value ⇒ String? (readonly)
The default value of the event variable.
This is required if you are providing the details of your variables instead of the ARN.
952 953 954 |
# File 'fraud_detector/cfn_detector.rb', line 952 def default_value @default_value end |
#description ⇒ String? (readonly)
The description of the event variable.
957 958 959 |
# File 'fraud_detector/cfn_detector.rb', line 957 def description @description end |
#inline ⇒ Boolean, ... (readonly)
Indicates whether the resource is defined within this CloudFormation template and impacts the create, update, and delete behavior of the stack.
If the value is true , CloudFormation will create/update/delete the resource when creating/updating/deleting the stack. If the value is false , CloudFormation will validate that the object exists and then use it within the resource without making changes to the object.
For example, when creating AWS::FraudDetector::Detector you must define at least two variables. You can set Inline=true for these variables and CloudFormation will create/update/delete the variables as part of stack operations. However, if you set Inline=false , CloudFormation will associate the variables to your detector but not execute any changes to the variables.
966 967 968 |
# File 'fraud_detector/cfn_detector.rb', line 966 def inline @inline end |
#last_updated_time ⇒ String? (readonly)
Timestamp for when the event variable was last updated.
971 972 973 |
# File 'fraud_detector/cfn_detector.rb', line 971 def last_updated_time @last_updated_time end |
#name ⇒ String? (readonly)
The name of the event variable.
976 977 978 |
# File 'fraud_detector/cfn_detector.rb', line 976 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 .
983 984 985 |
# File 'fraud_detector/cfn_detector.rb', line 983 def @tags end |
#variable_type ⇒ String? (readonly)
The type of event variable.
For more information, see Variable types .
990 991 992 |
# File 'fraud_detector/cfn_detector.rb', line 990 def variable_type @variable_type end |
Class Method Details
.jsii_properties ⇒ Object
992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 |
# File 'fraud_detector/cfn_detector.rb', line 992 def self.jsii_properties { :arn => "arn", :created_time => "createdTime", :data_source => "dataSource", :data_type => "dataType", :default_value => "defaultValue", :description => "description", :inline => "inline", :last_updated_time => "lastUpdatedTime", :name => "name", :tags => "tags", :variable_type => "variableType", } end |
Instance Method Details
#to_jsii ⇒ Object
1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 |
# File 'fraud_detector/cfn_detector.rb', line 1008 def to_jsii result = {} result.merge!({ "arn" => @arn, "createdTime" => @created_time, "dataSource" => @data_source, "dataType" => @data_type, "defaultValue" => @default_value, "description" => @description, "inline" => @inline, "lastUpdatedTime" => @last_updated_time, "name" => @name, "tags" => @tags, "variableType" => @variable_type, }) result.compact end |