Class: AWSCDK::ApplicationInsights::CfnApplication::CustomComponentProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component_name:, resource_list:) ⇒ CustomComponentProperty

Returns a new instance of CustomComponentProperty.

Parameters:

  • component_name (String)

    The name of the component.

  • resource_list (Array<String>)

    The list of resource ARNs that belong to the component.



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_nameString (readonly)

The name of the component.



1023
1024
1025
# File 'application_insights/cfn_application.rb', line 1023

def component_name
  @component_name
end

#resource_listArray<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_propertiesObject



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_jsiiObject



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