Class: AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::ValueRangeProperty

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

Overview

A structure letting customers specify a relative time window over which over which data is included in the Calculated Attribute.

Use positive numbers to indicate that the endpoint is in the past, and negative numbers to indicate it is in the future. ValueRange overrides Value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_end:, start:) ⇒ ValueRangeProperty

Returns a new instance of ValueRangeProperty.

Parameters:

  • _end (Numeric)

    The ending point for this overridden range.

  • start (Numeric)

    The starting point for this overridden range.



939
940
941
942
943
944
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 939

def initialize(_end:, start:)
  @_end = _end
  Jsii::Type.check_type(@_end, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "end")
  @start = start
  Jsii::Type.check_type(@start, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "start")
end

Instance Attribute Details

#_endNumeric (readonly)

The ending point for this overridden range.

Positive numbers indicate how many days in the past data should be included, and negative numbers indicate how many days in the future.



952
953
954
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 952

def _end
  @_end
end

#startNumeric (readonly)

The starting point for this overridden range.

Positive numbers indicate how many days in the past data should be included, and negative numbers indicate how many days in the future.



959
960
961
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 959

def start
  @start
end

Class Method Details

.jsii_propertiesObject



961
962
963
964
965
966
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 961

def self.jsii_properties
  {
    :_end => "end",
    :start => "start",
  }
end

Instance Method Details

#to_jsiiObject



968
969
970
971
972
973
974
975
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 968

def to_jsii
  result = {}
  result.merge!({
    "end" => @_end,
    "start" => @start,
  })
  result.compact
end