Class: AWSCDK::SES::CloudWatchDimension
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CloudWatchDimension
- Defined in:
- ses/cloud_watch_dimension.rb
Overview
A CloudWatch dimension upon which to categorize your emails.
Instance Attribute Summary collapse
-
#default_value ⇒ String
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.
-
#name ⇒ String
readonly
The name of an Amazon CloudWatch dimension associated with an email sending metric.
-
#source ⇒ AWSCDK::SES::CloudWatchDimensionSource
readonly
The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(default_value:, name:, source:) ⇒ CloudWatchDimension
constructor
A new instance of CloudWatchDimension.
- #to_jsii ⇒ Object
Constructor Details
#initialize(default_value:, name:, source:) ⇒ CloudWatchDimension
Returns a new instance of CloudWatchDimension.
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_value ⇒ String (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.
22 23 24 |
# File 'ses/cloud_watch_dimension.rb', line 22 def default_value @default_value end |
#name ⇒ String (readonly)
The name of an Amazon CloudWatch dimension associated with an email sending metric.
26 27 28 |
# File 'ses/cloud_watch_dimension.rb', line 26 def name @name end |
#source ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |