Class: AWSCDK::SES::CloudWatchDimension

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ses/cloud_watch_dimension.rb

Overview

A CloudWatch dimension upon which to categorize your emails.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_value:, name:, source:) ⇒ CloudWatchDimension

Returns a new instance of CloudWatchDimension.

Parameters:

  • default_value (String)

    The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email.

  • name (String)

    The name of an Amazon CloudWatch dimension associated with an email sending metric.

  • source (AWSCDK::SES::CloudWatchDimensionSource)

    The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch.



10
11
12
13
14
15
16
17
# File 'ses/cloud_watch_dimension.rb', line 10

def initialize(default_value:, name:, source:)
  @default_value = default_value
  Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultValue")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @source = source
  Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VzLkNsb3VkV2F0Y2hEaW1lbnNpb25Tb3VyY2UifQ==")), "source")
end

Instance Attribute Details

#default_valueString (readonly)

The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email.

Returns:

  • (String)


22
23
24
# File 'ses/cloud_watch_dimension.rb', line 22

def default_value
  @default_value
end

#nameString (readonly)

The name of an Amazon CloudWatch dimension associated with an email sending metric.

Returns:

  • (String)


26
27
28
# File 'ses/cloud_watch_dimension.rb', line 26

def name
  @name
end

#sourceAWSCDK::SES::CloudWatchDimensionSource (readonly)

The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch.



30
31
32
# File 'ses/cloud_watch_dimension.rb', line 30

def source
  @source
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'ses/cloud_watch_dimension.rb', line 32

def self.jsii_properties
  {
    :default_value => "defaultValue",
    :name => "name",
    :source => "source",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'ses/cloud_watch_dimension.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "defaultValue" => @default_value,
    "name" => @name,
    "source" => @source,
  })
  result.compact
end