Class: AWSCDK::XRay::CfnGroup::InsightsConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
x_ray/cfn_group.rb

Overview

The structure containing configurations related to insights.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(insights_enabled: nil, notifications_enabled: nil) ⇒ InsightsConfigurationProperty

Returns a new instance of InsightsConfigurationProperty.

Parameters:

  • insights_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Set the InsightsEnabled value to true to enable insights or false to disable insights.

  • notifications_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Set the NotificationsEnabled value to true to enable insights notifications.



560
561
562
563
564
565
# File 'x_ray/cfn_group.rb', line 560

def initialize(insights_enabled: nil, notifications_enabled: nil)
  @insights_enabled = insights_enabled
  Jsii::Type.check_type(@insights_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "insightsEnabled") unless @insights_enabled.nil?
  @notifications_enabled = notifications_enabled
  Jsii::Type.check_type(@notifications_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "notificationsEnabled") unless @notifications_enabled.nil?
end

Instance Attribute Details

#insights_enabledBoolean, ... (readonly)

Set the InsightsEnabled value to true to enable insights or false to disable insights.



571
572
573
# File 'x_ray/cfn_group.rb', line 571

def insights_enabled
  @insights_enabled
end

#notifications_enabledBoolean, ... (readonly)

Set the NotificationsEnabled value to true to enable insights notifications.

Notifications can only be enabled on a group with InsightsEnabled set to true.



578
579
580
# File 'x_ray/cfn_group.rb', line 578

def notifications_enabled
  @notifications_enabled
end

Class Method Details

.jsii_propertiesObject



580
581
582
583
584
585
# File 'x_ray/cfn_group.rb', line 580

def self.jsii_properties
  {
    :insights_enabled => "insightsEnabled",
    :notifications_enabled => "notificationsEnabled",
  }
end

Instance Method Details

#to_jsiiObject



587
588
589
590
591
592
593
594
# File 'x_ray/cfn_group.rb', line 587

def to_jsii
  result = {}
  result.merge!({
    "insightsEnabled" => @insights_enabled,
    "notificationsEnabled" => @notifications_enabled,
  })
  result.compact
end