Class: AWSCDK::Timestream::CfnScheduledQuery::NotificationConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
timestream/cfn_scheduled_query.rb

Overview

Notification configuration for a scheduled query.

A notification is sent by Timestream when a scheduled query is created, its state is updated or when it is deleted.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sns_configuration:) ⇒ NotificationConfigurationProperty

Returns a new instance of NotificationConfigurationProperty.

Parameters:



967
968
969
970
# File 'timestream/cfn_scheduled_query.rb', line 967

def initialize(sns_configuration:)
  @sns_configuration = sns_configuration.is_a?(Hash) ? ::AWSCDK::Timestream::CfnScheduledQuery::SNSConfigurationProperty.new(**sns_configuration.transform_keys(&:to_sym)) : sns_configuration
  Jsii::Type.check_type(@sns_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c190aW1lc3RyZWFtLkNmblNjaGVkdWxlZFF1ZXJ5LlNuc0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "snsConfiguration")
end

Class Method Details

.jsii_propertiesObject



978
979
980
981
982
# File 'timestream/cfn_scheduled_query.rb', line 978

def self.jsii_properties
  {
    :sns_configuration => "snsConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



984
985
986
987
988
989
990
# File 'timestream/cfn_scheduled_query.rb', line 984

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