Class: AWSCDK::FraudDetector::CfnDetector::EventTypeProperty

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

Overview

The event type details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn: nil, created_time: nil, description: nil, entity_types: nil, event_variables: nil, inline: nil, labels: nil, last_updated_time: nil, name: nil, tags: nil) ⇒ EventTypeProperty

Returns a new instance of EventTypeProperty.

Parameters:



765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
# File 'fraud_detector/cfn_detector.rb', line 765

def initialize(arn: nil, created_time: nil, description: nil, entity_types: nil, event_variables: nil, inline: nil, labels: nil, last_updated_time: nil, name: 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?
  @entity_types = entity_types
  Jsii::Type.check_type(@entity_types, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZnJhdWRkZXRlY3Rvci5DZm5EZXRlY3Rvci5FbnRpdHlUeXBlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "entityTypes") unless @entity_types.nil?
  @event_variables = event_variables
  Jsii::Type.check_type(@event_variables, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZnJhdWRkZXRlY3Rvci5DZm5EZXRlY3Rvci5FdmVudFZhcmlhYmxlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "eventVariables") unless @event_variables.nil?
  @inline = inline
  Jsii::Type.check_type(@inline, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "inline") unless @inline.nil?
  @labels = labels
  Jsii::Type.check_type(@labels, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZnJhdWRkZXRlY3Rvci5DZm5EZXRlY3Rvci5MYWJlbFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "labels") unless @labels.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 = 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

#arnString? (readonly)

The entity type ARN.



792
793
794
# File 'fraud_detector/cfn_detector.rb', line 792

def arn
  @arn
end

#created_timeString? (readonly)

Timestamp of when the event type was created.



797
798
799
# File 'fraud_detector/cfn_detector.rb', line 797

def created_time
  @created_time
end

#descriptionString? (readonly)

The event type description.



802
803
804
# File 'fraud_detector/cfn_detector.rb', line 802

def description
  @description
end

#entity_typesAWSCDK::IResolvable, ... (readonly)

The event type entity types.



807
808
809
# File 'fraud_detector/cfn_detector.rb', line 807

def entity_types
  @entity_types
end

#event_variablesAWSCDK::IResolvable, ... (readonly)

The event type event variables.



812
813
814
# File 'fraud_detector/cfn_detector.rb', line 812

def event_variables
  @event_variables
end

#inlineBoolean, ... (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.



821
822
823
# File 'fraud_detector/cfn_detector.rb', line 821

def inline
  @inline
end

#labelsAWSCDK::IResolvable, ... (readonly)

The event type labels.



826
827
828
# File 'fraud_detector/cfn_detector.rb', line 826

def labels
  @labels
end

#last_updated_timeString? (readonly)

Timestamp of when the event type was last updated.



831
832
833
# File 'fraud_detector/cfn_detector.rb', line 831

def last_updated_time
  @last_updated_time
end

#nameString? (readonly)

The event type name.



836
837
838
# File 'fraud_detector/cfn_detector.rb', line 836

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

An array of key-value pairs to apply to this resource.

For more information, see Tag .



843
844
845
# File 'fraud_detector/cfn_detector.rb', line 843

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



845
846
847
848
849
850
851
852
853
854
855
856
857
858
# File 'fraud_detector/cfn_detector.rb', line 845

def self.jsii_properties
  {
    :arn => "arn",
    :created_time => "createdTime",
    :description => "description",
    :entity_types => "entityTypes",
    :event_variables => "eventVariables",
    :inline => "inline",
    :labels => "labels",
    :last_updated_time => "lastUpdatedTime",
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
# File 'fraud_detector/cfn_detector.rb', line 860

def to_jsii
  result = {}
  result.merge!({
    "arn" => @arn,
    "createdTime" => @created_time,
    "description" => @description,
    "entityTypes" => @entity_types,
    "eventVariables" => @event_variables,
    "inline" => @inline,
    "labels" => @labels,
    "lastUpdatedTime" => @last_updated_time,
    "name" => @name,
    "tags" => @tags,
  })
  result.compact
end