Class: AWSCDK::Pinpoint::CfnCampaign::AttributeDimensionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint/cfn_campaign.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute_type: nil, values: nil) ⇒ AttributeDimensionProperty

Returns a new instance of AttributeDimensionProperty.

Parameters:

  • attribute_type (String, nil) (defaults to: nil)
  • values (Array<String>, nil) (defaults to: nil)


752
753
754
755
756
757
# File 'pinpoint/cfn_campaign.rb', line 752

def initialize(attribute_type: nil, values: nil)
  @attribute_type = attribute_type
  Jsii::Type.check_type(@attribute_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attributeType") unless @attribute_type.nil?
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") unless @values.nil?
end

Instance Attribute Details

#attribute_typeString? (readonly)



761
762
763
# File 'pinpoint/cfn_campaign.rb', line 761

def attribute_type
  @attribute_type
end

#valuesArray<String>? (readonly)



764
765
766
# File 'pinpoint/cfn_campaign.rb', line 764

def values
  @values
end

Class Method Details

.jsii_propertiesObject



766
767
768
769
770
771
# File 'pinpoint/cfn_campaign.rb', line 766

def self.jsii_properties
  {
    :attribute_type => "attributeType",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



773
774
775
776
777
778
779
780
# File 'pinpoint/cfn_campaign.rb', line 773

def to_jsii
  result = {}
  result.merge!({
    "attributeType" => @attribute_type,
    "values" => @values,
  })
  result.compact
end