Class: AWSCDK::CustomerProfiles::CfnEventTrigger::ObjectAttributeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_event_trigger.rb

Overview

The criteria that a specific object attribute must meet to trigger the destination.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comparison_operator:, values:, field_name: nil, source: nil) ⇒ ObjectAttributeProperty

Returns a new instance of ObjectAttributeProperty.

Parameters:

  • comparison_operator (String)

    The operator used to compare an attribute against a list of values.

  • values (Array<String>)

    The amount of time of the specified unit.

  • field_name (String, nil) (defaults to: nil)

    A field defined within an object type.

  • source (String, nil) (defaults to: nil)

    An attribute contained within a source object.



732
733
734
735
736
737
738
739
740
741
# File 'customer_profiles/cfn_event_trigger.rb', line 732

def initialize(comparison_operator:, values:, field_name: nil, source: nil)
  @comparison_operator = comparison_operator
  Jsii::Type.check_type(@comparison_operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comparisonOperator")
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values")
  @field_name = field_name
  Jsii::Type.check_type(@field_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldName") unless @field_name.nil?
  @source = source
  Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") unless @source.nil?
end

Instance Attribute Details

#comparison_operatorString (readonly)

The operator used to compare an attribute against a list of values.



747
748
749
# File 'customer_profiles/cfn_event_trigger.rb', line 747

def comparison_operator
  @comparison_operator
end

#field_nameString? (readonly)

A field defined within an object type.



757
758
759
# File 'customer_profiles/cfn_event_trigger.rb', line 757

def field_name
  @field_name
end

#sourceString? (readonly)

An attribute contained within a source object.



762
763
764
# File 'customer_profiles/cfn_event_trigger.rb', line 762

def source
  @source
end

#valuesArray<String> (readonly)

The amount of time of the specified unit.



752
753
754
# File 'customer_profiles/cfn_event_trigger.rb', line 752

def values
  @values
end

Class Method Details

.jsii_propertiesObject



764
765
766
767
768
769
770
771
# File 'customer_profiles/cfn_event_trigger.rb', line 764

def self.jsii_properties
  {
    :comparison_operator => "comparisonOperator",
    :values => "values",
    :field_name => "fieldName",
    :source => "source",
  }
end

Instance Method Details

#to_jsiiObject



773
774
775
776
777
778
779
780
781
782
# File 'customer_profiles/cfn_event_trigger.rb', line 773

def to_jsii
  result = {}
  result.merge!({
    "comparisonOperator" => @comparison_operator,
    "values" => @values,
    "fieldName" => @field_name,
    "source" => @source,
  })
  result.compact
end