@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.421Z") @Stability(value=Stable) public class CfnApplication extends CfnResource implements IInspectable
The AWS::ApplicationInsights::Application resource adds an application that is created from a resource group.
Example:
// 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.*;
CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication")
.resourceGroupName("resourceGroupName")
// the properties below are optional
.autoConfigurationEnabled(false)
.componentMonitoringSettings(List.of(ComponentMonitoringSettingProperty.builder()
.componentConfigurationMode("componentConfigurationMode")
.tier("tier")
// the properties below are optional
.componentArn("componentArn")
.componentName("componentName")
.customComponentConfiguration(ComponentConfigurationProperty.builder()
.configurationDetails(ConfigurationDetailsProperty.builder()
.alarmMetrics(List.of(AlarmMetricProperty.builder()
.alarmMetricName("alarmMetricName")
.build()))
.alarms(List.of(AlarmProperty.builder()
.alarmName("alarmName")
// the properties below are optional
.severity("severity")
.build()))
.haClusterPrometheusExporter(HAClusterPrometheusExporterProperty.builder()
.prometheusPort("prometheusPort")
.build())
.hanaPrometheusExporter(HANAPrometheusExporterProperty.builder()
.agreeToInstallHanadbClient(false)
.hanaPort("hanaPort")
.hanaSecretName("hanaSecretName")
.hanasid("hanasid")
// the properties below are optional
.prometheusPort("prometheusPort")
.build())
.jmxPrometheusExporter(JMXPrometheusExporterProperty.builder()
.hostPort("hostPort")
.jmxurl("jmxurl")
.prometheusPort("prometheusPort")
.build())
.logs(List.of(LogProperty.builder()
.logType("logType")
// the properties below are optional
.encoding("encoding")
.logGroupName("logGroupName")
.logPath("logPath")
.patternSet("patternSet")
.build()))
.windowsEvents(List.of(WindowsEventProperty.builder()
.eventLevels(List.of("eventLevels"))
.eventName("eventName")
.logGroupName("logGroupName")
// the properties below are optional
.patternSet("patternSet")
.build()))
.build())
.subComponentTypeConfigurations(List.of(SubComponentTypeConfigurationProperty.builder()
.subComponentConfigurationDetails(SubComponentConfigurationDetailsProperty.builder()
.alarmMetrics(List.of(AlarmMetricProperty.builder()
.alarmMetricName("alarmMetricName")
.build()))
.logs(List.of(LogProperty.builder()
.logType("logType")
// the properties below are optional
.encoding("encoding")
.logGroupName("logGroupName")
.logPath("logPath")
.patternSet("patternSet")
.build()))
.windowsEvents(List.of(WindowsEventProperty.builder()
.eventLevels(List.of("eventLevels"))
.eventName("eventName")
.logGroupName("logGroupName")
// the properties below are optional
.patternSet("patternSet")
.build()))
.build())
.subComponentType("subComponentType")
.build()))
.build())
.defaultOverwriteComponentConfiguration(ComponentConfigurationProperty.builder()
.configurationDetails(ConfigurationDetailsProperty.builder()
.alarmMetrics(List.of(AlarmMetricProperty.builder()
.alarmMetricName("alarmMetricName")
.build()))
.alarms(List.of(AlarmProperty.builder()
.alarmName("alarmName")
// the properties below are optional
.severity("severity")
.build()))
.haClusterPrometheusExporter(HAClusterPrometheusExporterProperty.builder()
.prometheusPort("prometheusPort")
.build())
.hanaPrometheusExporter(HANAPrometheusExporterProperty.builder()
.agreeToInstallHanadbClient(false)
.hanaPort("hanaPort")
.hanaSecretName("hanaSecretName")
.hanasid("hanasid")
// the properties below are optional
.prometheusPort("prometheusPort")
.build())
.jmxPrometheusExporter(JMXPrometheusExporterProperty.builder()
.hostPort("hostPort")
.jmxurl("jmxurl")
.prometheusPort("prometheusPort")
.build())
.logs(List.of(LogProperty.builder()
.logType("logType")
// the properties below are optional
.encoding("encoding")
.logGroupName("logGroupName")
.logPath("logPath")
.patternSet("patternSet")
.build()))
.windowsEvents(List.of(WindowsEventProperty.builder()
.eventLevels(List.of("eventLevels"))
.eventName("eventName")
.logGroupName("logGroupName")
// the properties below are optional
.patternSet("patternSet")
.build()))
.build())
.subComponentTypeConfigurations(List.of(SubComponentTypeConfigurationProperty.builder()
.subComponentConfigurationDetails(SubComponentConfigurationDetailsProperty.builder()
.alarmMetrics(List.of(AlarmMetricProperty.builder()
.alarmMetricName("alarmMetricName")
.build()))
.logs(List.of(LogProperty.builder()
.logType("logType")
// the properties below are optional
.encoding("encoding")
.logGroupName("logGroupName")
.logPath("logPath")
.patternSet("patternSet")
.build()))
.windowsEvents(List.of(WindowsEventProperty.builder()
.eventLevels(List.of("eventLevels"))
.eventName("eventName")
.logGroupName("logGroupName")
// the properties below are optional
.patternSet("patternSet")
.build()))
.build())
.subComponentType("subComponentType")
.build()))
.build())
.build()))
.customComponents(List.of(CustomComponentProperty.builder()
.componentName("componentName")
.resourceList(List.of("resourceList"))
.build()))
.cweMonitorEnabled(false)
.groupingType("groupingType")
.logPatternSets(List.of(LogPatternSetProperty.builder()
.logPatterns(List.of(LogPatternProperty.builder()
.pattern("pattern")
.patternName("patternName")
.rank(123)
.build()))
.patternSetName("patternSetName")
.build()))
.opsCenterEnabled(false)
.opsItemSnsTopicArn("opsItemSnsTopicArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnApplication.AlarmMetricProperty
The `AWS::ApplicationInsights::Application AlarmMetric` property type defines a metric to monitor for the component.
|
static interface |
CfnApplication.AlarmProperty
The `AWS::ApplicationInsights::Application Alarm` property type defines a CloudWatch alarm to be monitored for the component.
|
static class |
CfnApplication.Builder
A fluent builder for
CfnApplication. |
static interface |
CfnApplication.ComponentConfigurationProperty
The `AWS::ApplicationInsights::Application ComponentConfiguration` property type defines the configuration settings of the component.
|
static interface |
CfnApplication.ComponentMonitoringSettingProperty
The `AWS::ApplicationInsights::Application ComponentMonitoringSetting` property type defines the monitoring setting of the component.
|
static interface |
CfnApplication.ConfigurationDetailsProperty
The `AWS::ApplicationInsights::Application ConfigurationDetails` property type specifies the configuration settings.
|
static interface |
CfnApplication.CustomComponentProperty
The `AWS::ApplicationInsights::Application CustomComponent` property type describes a custom component by grouping similar standalone instances to monitor.
|
static interface |
CfnApplication.HAClusterPrometheusExporterProperty
The `AWS::ApplicationInsights::Application HAClusterPrometheusExporter` property type defines the HA cluster Prometheus Exporter settings.
|
static interface |
CfnApplication.HANAPrometheusExporterProperty
The `AWS::ApplicationInsights::Application HANAPrometheusExporter` property type defines the HANA DB Prometheus Exporter settings.
|
static interface |
CfnApplication.JMXPrometheusExporterProperty
The `AWS::ApplicationInsights::Application JMXPrometheusExporter` property type defines the JMXPrometheus Exporter configuration.
|
static interface |
CfnApplication.LogPatternProperty
The `AWS::ApplicationInsights::Application LogPattern` property type specifies an object that defines the log patterns that belong to a `LogPatternSet` .
|
static interface |
CfnApplication.LogPatternSetProperty
The `AWS::ApplicationInsights::Application LogPatternSet` property type specifies the log pattern set.
|
static interface |
CfnApplication.LogProperty
The `AWS::ApplicationInsights::Application Log` property type specifies a log to monitor for the component.
|
static interface |
CfnApplication.SubComponentConfigurationDetailsProperty
The `AWS::ApplicationInsights::Application SubComponentConfigurationDetails` property type specifies the configuration settings of the sub-components.
|
static interface |
CfnApplication.SubComponentTypeConfigurationProperty
The `AWS::ApplicationInsights::Application SubComponentTypeConfiguration` property type specifies the sub-component configurations for a component.
|
static interface |
CfnApplication.WindowsEventProperty
The `AWS::ApplicationInsights::Application WindowsEvent` property type specifies a Windows Event to monitor for the component.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnApplication(software.constructs.Construct scope,
String id,
CfnApplicationProps props)
Create a new `AWS::ApplicationInsights::Application`.
|
protected |
CfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnApplication(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrApplicationArn()
Returns the Amazon Resource Name (ARN) of the application, such as `arn:aws:applicationinsights:us-east-1:123456789012:application/resource-group/my_resource_group` .
|
Object |
getAutoConfigurationEnabled()
If set to `true` , the application components will be configured with the monitoring configuration recommended by Application Insights.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getComponentMonitoringSettings()
The monitoring settings of the components.
|
Object |
getCustomComponents()
Describes a custom component by grouping similar standalone instances to monitor.
|
Object |
getCweMonitorEnabled()
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as `instance terminated` , `failed deployment` , and others.
|
String |
getGroupingType()
`AWS::ApplicationInsights::Application.GroupingType`.
|
Object |
getLogPatternSets()
The log pattern sets.
|
Object |
getOpsCenterEnabled()
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.
|
String |
getOpsItemSnsTopicArn()
The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.
|
String |
getResourceGroupName()
The name of the resource group used for the application.
|
TagManager |
getTags()
An array of `Tags` .
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAutoConfigurationEnabled(Boolean value)
If set to `true` , the application components will be configured with the monitoring configuration recommended by Application Insights.
|
void |
setAutoConfigurationEnabled(IResolvable value)
If set to `true` , the application components will be configured with the monitoring configuration recommended by Application Insights.
|
void |
setComponentMonitoringSettings(IResolvable value)
The monitoring settings of the components.
|
void |
setComponentMonitoringSettings(List<Object> value)
The monitoring settings of the components.
|
void |
setCustomComponents(IResolvable value)
Describes a custom component by grouping similar standalone instances to monitor.
|
void |
setCustomComponents(List<Object> value)
Describes a custom component by grouping similar standalone instances to monitor.
|
void |
setCweMonitorEnabled(Boolean value)
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as `instance terminated` , `failed deployment` , and others.
|
void |
setCweMonitorEnabled(IResolvable value)
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as `instance terminated` , `failed deployment` , and others.
|
void |
setGroupingType(String value)
`AWS::ApplicationInsights::Application.GroupingType`.
|
void |
setLogPatternSets(IResolvable value)
The log pattern sets.
|
void |
setLogPatternSets(List<Object> value)
The log pattern sets.
|
void |
setOpsCenterEnabled(Boolean value)
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.
|
void |
setOpsCenterEnabled(IResolvable value)
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.
|
void |
setOpsItemSnsTopicArn(String value)
The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.
|
void |
setResourceGroupName(String value)
The name of the resource group used for the application.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnApplication(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnApplication(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnApplicationProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrApplicationArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getResourceGroupName()
@Stability(value=Stable)
public void setResourceGroupName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getAutoConfigurationEnabled()
@Stability(value=Stable)
public void setAutoConfigurationEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setAutoConfigurationEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getComponentMonitoringSettings()
@Stability(value=Stable)
public void setComponentMonitoringSettings(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setComponentMonitoringSettings(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getCustomComponents()
@Stability(value=Stable)
public void setCustomComponents(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setCustomComponents(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getCweMonitorEnabled()
@Stability(value=Stable)
public void setCweMonitorEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setCweMonitorEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getGroupingType()
@Stability(value=Stable)
public void setGroupingType(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getLogPatternSets()
@Stability(value=Stable)
public void setLogPatternSets(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setLogPatternSets(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getOpsCenterEnabled()
@Stability(value=Stable)
public void setOpsCenterEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setOpsCenterEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getOpsItemSnsTopicArn()
@Stability(value=Stable)
public void setOpsItemSnsTopicArn(@Nullable
String value)
Copyright © 2022. All rights reserved.