Class: AWSCDK::FraudDetector::CfnEventType::EventVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FraudDetector::CfnEventType::EventVariableProperty
- Defined in:
- fraud_detector/cfn_event_type.rb
Overview
The variables associated with this event type.
Instance Attribute Summary collapse
-
#arn ⇒ String?
readonly
The event variable ARN.
-
#created_time ⇒ String?
readonly
Timestamp for when event variable was created.
-
#data_source ⇒ String?
readonly
The 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 event variable description.
-
#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.
711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 |
# File 'fraud_detector/cfn_event_type.rb', line 711 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.
740 741 742 |
# File 'fraud_detector/cfn_event_type.rb', line 740 def arn @arn end |
#created_time ⇒ String? (readonly)
Timestamp for when event variable was created.
745 746 747 |
# File 'fraud_detector/cfn_event_type.rb', line 745 def created_time @created_time end |
#data_source ⇒ String? (readonly)
The source of the event variable.
Valid values: EVENT | EXTERNAL_MODEL_SCORE
When defining a variable within a event type, 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.
754 755 756 |
# File 'fraud_detector/cfn_event_type.rb', line 754 def data_source @data_source end |
#data_type ⇒ String? (readonly)
The data type of the event variable.
For more information, see Data types .
761 762 763 |
# File 'fraud_detector/cfn_event_type.rb', line 761 def data_type @data_type end |
#default_value ⇒ String? (readonly)
The default value of the event variable.
766 767 768 |
# File 'fraud_detector/cfn_event_type.rb', line 766 def default_value @default_value end |
#description ⇒ String? (readonly)
The event variable description.
771 772 773 |
# File 'fraud_detector/cfn_event_type.rb', line 771 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::EventType 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 event type but not execute any changes to the variables.
780 781 782 |
# File 'fraud_detector/cfn_event_type.rb', line 780 def inline @inline end |
#last_updated_time ⇒ String? (readonly)
Timestamp for when the event variable was last updated.
785 786 787 |
# File 'fraud_detector/cfn_event_type.rb', line 785 def last_updated_time @last_updated_time end |
#name ⇒ String? (readonly)
The name of the event variable.
790 791 792 |
# File 'fraud_detector/cfn_event_type.rb', line 790 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 .
797 798 799 |
# File 'fraud_detector/cfn_event_type.rb', line 797 def @tags end |
#variable_type ⇒ String? (readonly)
The type of event variable.
For more information, see Variable types .
804 805 806 |
# File 'fraud_detector/cfn_event_type.rb', line 804 def variable_type @variable_type end |
Class Method Details
.jsii_properties ⇒ Object
806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 |
# File 'fraud_detector/cfn_event_type.rb', line 806 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
822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 |
# File 'fraud_detector/cfn_event_type.rb', line 822 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 |