Class: AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRuleProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRuleProps
- Defined in:
- observability_admin/cfn_organization_telemetry_rule_props.rb
Overview
Properties for defining a CfnOrganizationTelemetryRule.
Instance Attribute Summary collapse
-
#rule ⇒ AWSCDK::IResolvable, AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::TelemetryRuleProperty
readonly
The name of the organization telemetry rule.
-
#rule_name ⇒ String
readonly
The name of the organization centralization rule.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Lists all tags attached to the specified resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rule:, rule_name:, tags: nil) ⇒ CfnOrganizationTelemetryRuleProps
constructor
A new instance of CfnOrganizationTelemetryRuleProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(rule:, rule_name:, tags: nil) ⇒ CfnOrganizationTelemetryRuleProps
Returns a new instance of CfnOrganizationTelemetryRuleProps.
12 13 14 15 16 17 18 19 |
# File 'observability_admin/cfn_organization_telemetry_rule_props.rb', line 12 def initialize(rule:, rule_name:, tags: nil) @rule = rule.is_a?(Hash) ? ::AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::TelemetryRuleProperty.new(**rule.transform_keys(&:to_sym)) : rule Jsii::Type.check_type(@rule, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vYnNlcnZhYmlsaXR5YWRtaW4uQ2ZuT3JnYW5pemF0aW9uVGVsZW1ldHJ5UnVsZS5UZWxlbWV0cnlSdWxlUHJvcGVydHkifV19fQ==")), "rule") @rule_name = rule_name Jsii::Type.check_type(@rule_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleName") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#rule ⇒ AWSCDK::IResolvable, AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::TelemetryRuleProperty (readonly)
The name of the organization telemetry rule.
25 26 27 |
# File 'observability_admin/cfn_organization_telemetry_rule_props.rb', line 25 def rule @rule end |
#rule_name ⇒ String (readonly)
The name of the organization centralization rule.
30 31 32 |
# File 'observability_admin/cfn_organization_telemetry_rule_props.rb', line 30 def rule_name @rule_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Lists all tags attached to the specified resource.
Supports telemetry rule resources and telemetry pipeline resources.
37 38 39 |
# File 'observability_admin/cfn_organization_telemetry_rule_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'observability_admin/cfn_organization_telemetry_rule_props.rb', line 39 def self.jsii_properties { :rule => "rule", :rule_name => "ruleName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'observability_admin/cfn_organization_telemetry_rule_props.rb', line 47 def to_jsii result = {} result.merge!({ "rule" => @rule, "ruleName" => @rule_name, "tags" => @tags, }) result.compact end |