Skip to content
v2.278.0

CustomComponentProperty Struct ​

The AWS::ApplicationInsights::Application CustomComponent property type describes a custom component by grouping similar standalone instances to monitor.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const customComponentProperty: applicationinsights.CfnApplication.CustomComponentProperty = {
  componentName: 'componentName',
  resourceList: ['resourceList'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationinsights as applicationinsights

custom_component_property = applicationinsights.CfnApplication.CustomComponentProperty(
    component_name="componentName",
    resource_list=["resourceList"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationinsights.*;

CustomComponentProperty customComponentProperty = CustomComponentProperty.builder()
        .componentName("componentName")
        .resourceList(List.of("resourceList"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationInsights;

var customComponentProperty = new CustomComponentProperty {
    ComponentName = "componentName",
    ResourceList = new [] { "resourceList" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customComponentProperty := &CustomComponentProperty{
	ComponentName: jsii.String("componentName"),
	ResourceList: []*string{
		jsii.String("resourceList"),
	},
}

Properties ​

componentNamestringcomponent_namestrcomponentNameStringComponentNamestringComponentName*string required #
The name of the component.
resourceListstring[]resource_listtyping.List[str]resourceListList<String>ResourceListstring[]ResourceList*[]*string required #
The list of resource ARNs that belong to the component.