Class: AWSCDK::ApplicationInsights::CfnApplication::CustomComponentProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationInsights::CfnApplication::CustomComponentProperty
- Defined in:
- application_insights/cfn_application.rb
Overview
The AWS::ApplicationInsights::Application CustomComponent property type describes a custom component by grouping similar standalone instances to monitor.
Instance Attribute Summary collapse
-
#component_name ⇒ String
readonly
The name of the component.
-
#resource_list ⇒ Array<String>
readonly
The list of resource ARNs that belong to the component.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(component_name:, resource_list:) ⇒ CustomComponentProperty
constructor
A new instance of CustomComponentProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(component_name:, resource_list:) ⇒ CustomComponentProperty
Returns a new instance of CustomComponentProperty.
1012 1013 1014 1015 1016 1017 |
# File 'application_insights/cfn_application.rb', line 1012 def initialize(component_name:, resource_list:) @component_name = component_name Jsii::Type.check_type(@component_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentName") @resource_list = resource_list Jsii::Type.check_type(@resource_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "resourceList") end |
Instance Attribute Details
#component_name ⇒ String (readonly)
The name of the component.
1023 1024 1025 |
# File 'application_insights/cfn_application.rb', line 1023 def component_name @component_name end |
#resource_list ⇒ Array<String> (readonly)
The list of resource ARNs that belong to the component.
1028 1029 1030 |
# File 'application_insights/cfn_application.rb', line 1028 def resource_list @resource_list end |
Class Method Details
.jsii_properties ⇒ Object
1030 1031 1032 1033 1034 1035 |
# File 'application_insights/cfn_application.rb', line 1030 def self.jsii_properties { :component_name => "componentName", :resource_list => "resourceList", } end |
Instance Method Details
#to_jsii ⇒ Object
1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'application_insights/cfn_application.rb', line 1037 def to_jsii result = {} result.merge!({ "componentName" => @component_name, "resourceList" => @resource_list, }) result.compact end |