Class: AWSCDK::XRay::CfnGroup::InsightsConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::XRay::CfnGroup::InsightsConfigurationProperty
- Defined in:
- x_ray/cfn_group.rb
Overview
The structure containing configurations related to insights.
Instance Attribute Summary collapse
-
#insights_enabled ⇒ Boolean, ...
readonly
Set the InsightsEnabled value to true to enable insights or false to disable insights.
-
#notifications_enabled ⇒ Boolean, ...
readonly
Set the NotificationsEnabled value to true to enable insights notifications.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(insights_enabled: nil, notifications_enabled: nil) ⇒ InsightsConfigurationProperty
constructor
A new instance of InsightsConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(insights_enabled: nil, notifications_enabled: nil) ⇒ InsightsConfigurationProperty
Returns a new instance of InsightsConfigurationProperty.
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_enabled ⇒ Boolean, ... (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_enabled ⇒ Boolean, ... (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_properties ⇒ Object
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_jsii ⇒ Object
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 |