Class CfnApplication
A CloudFormation AWS::ApplicationInsights::Application
.
Inherited Members
Namespace: Amazon.CDK.AWS.ApplicationInsights
Assembly: Amazon.CDK.AWS.ApplicationInsights.dll
Syntax (csharp)
public class CfnApplication : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnApplication
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::ApplicationInsights::Application
resource adds an application that is created from a resource group.
CloudformationResource: AWS::ApplicationInsights::Application
ExampleMetadata: fixture=_generated
Examples
// 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 cfnApplication = new CfnApplication(this, "MyCfnApplication", new CfnApplicationProps {
ResourceGroupName = "resourceGroupName",
// the properties below are optional
AutoConfigurationEnabled = false,
ComponentMonitoringSettings = new [] { new ComponentMonitoringSettingProperty {
ComponentConfigurationMode = "componentConfigurationMode",
Tier = "tier",
// the properties below are optional
ComponentArn = "componentArn",
ComponentName = "componentName",
CustomComponentConfiguration = new ComponentConfigurationProperty {
ConfigurationDetails = new ConfigurationDetailsProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
Alarms = new [] { new AlarmProperty {
AlarmName = "alarmName",
// the properties below are optional
Severity = "severity"
} },
HaClusterPrometheusExporter = new HAClusterPrometheusExporterProperty {
PrometheusPort = "prometheusPort"
},
HanaPrometheusExporter = new HANAPrometheusExporterProperty {
AgreeToInstallHanadbClient = false,
HanaPort = "hanaPort",
HanaSecretName = "hanaSecretName",
Hanasid = "hanasid",
// the properties below are optional
PrometheusPort = "prometheusPort"
},
JmxPrometheusExporter = new JMXPrometheusExporterProperty {
HostPort = "hostPort",
Jmxurl = "jmxurl",
PrometheusPort = "prometheusPort"
},
Logs = new [] { new LogProperty {
LogType = "logType",
// the properties below are optional
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
PatternSet = "patternSet"
} },
WindowsEvents = new [] { new WindowsEventProperty {
EventLevels = new [] { "eventLevels" },
EventName = "eventName",
LogGroupName = "logGroupName",
// the properties below are optional
PatternSet = "patternSet"
} }
},
SubComponentTypeConfigurations = new [] { new SubComponentTypeConfigurationProperty {
SubComponentConfigurationDetails = new SubComponentConfigurationDetailsProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
Logs = new [] { new LogProperty {
LogType = "logType",
// the properties below are optional
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
PatternSet = "patternSet"
} },
WindowsEvents = new [] { new WindowsEventProperty {
EventLevels = new [] { "eventLevels" },
EventName = "eventName",
LogGroupName = "logGroupName",
// the properties below are optional
PatternSet = "patternSet"
} }
},
SubComponentType = "subComponentType"
} }
},
DefaultOverwriteComponentConfiguration = new ComponentConfigurationProperty {
ConfigurationDetails = new ConfigurationDetailsProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
Alarms = new [] { new AlarmProperty {
AlarmName = "alarmName",
// the properties below are optional
Severity = "severity"
} },
HaClusterPrometheusExporter = new HAClusterPrometheusExporterProperty {
PrometheusPort = "prometheusPort"
},
HanaPrometheusExporter = new HANAPrometheusExporterProperty {
AgreeToInstallHanadbClient = false,
HanaPort = "hanaPort",
HanaSecretName = "hanaSecretName",
Hanasid = "hanasid",
// the properties below are optional
PrometheusPort = "prometheusPort"
},
JmxPrometheusExporter = new JMXPrometheusExporterProperty {
HostPort = "hostPort",
Jmxurl = "jmxurl",
PrometheusPort = "prometheusPort"
},
Logs = new [] { new LogProperty {
LogType = "logType",
// the properties below are optional
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
PatternSet = "patternSet"
} },
WindowsEvents = new [] { new WindowsEventProperty {
EventLevels = new [] { "eventLevels" },
EventName = "eventName",
LogGroupName = "logGroupName",
// the properties below are optional
PatternSet = "patternSet"
} }
},
SubComponentTypeConfigurations = new [] { new SubComponentTypeConfigurationProperty {
SubComponentConfigurationDetails = new SubComponentConfigurationDetailsProperty {
AlarmMetrics = new [] { new AlarmMetricProperty {
AlarmMetricName = "alarmMetricName"
} },
Logs = new [] { new LogProperty {
LogType = "logType",
// the properties below are optional
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
PatternSet = "patternSet"
} },
WindowsEvents = new [] { new WindowsEventProperty {
EventLevels = new [] { "eventLevels" },
EventName = "eventName",
LogGroupName = "logGroupName",
// the properties below are optional
PatternSet = "patternSet"
} }
},
SubComponentType = "subComponentType"
} }
}
} },
CustomComponents = new [] { new CustomComponentProperty {
ComponentName = "componentName",
ResourceList = new [] { "resourceList" }
} },
CweMonitorEnabled = false,
GroupingType = "groupingType",
LogPatternSets = new [] { new LogPatternSetProperty {
LogPatterns = new [] { new LogPatternProperty {
Pattern = "pattern",
PatternName = "patternName",
Rank = 123
} },
PatternSetName = "patternSetName"
} },
OpsCenterEnabled = false,
OpsItemSnsTopicArn = "opsItemSnsTopicArn",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnApplication(Construct, String, ICfnApplicationProps) | Create a new |
CfnApplication(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnApplication(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrApplicationArn | Returns the Amazon Resource Name (ARN) of the application, such as |
AutoConfigurationEnabled | If set to |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ComponentMonitoringSettings | The monitoring settings of the components. |
CustomComponents | Describes a custom component by grouping similar standalone instances to monitor. |
CweMonitorEnabled | Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as |
GroupingType | Application Insights can create applications based on a resource group or on an account. |
LogPatternSets | The log pattern sets. |
OpsCenterEnabled | Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application. |
OpsItemSnsTopicArn | The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates. |
ResourceGroupName | The name of the resource group used for the application. |
Tags | An array of |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnApplication(Construct, String, ICfnApplicationProps)
Create a new AWS::ApplicationInsights::Application
.
public CfnApplication(Construct scope, string id, ICfnApplicationProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnApplicationProps
- resource properties.
CfnApplication(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnApplication(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnApplication(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnApplication(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrApplicationArn
Returns the Amazon Resource Name (ARN) of the application, such as arn:aws:applicationinsights:us-east-1:123456789012:application/resource-group/my_resource_group
.
public virtual string AttrApplicationArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: ApplicationARN
AutoConfigurationEnabled
If set to true
, the application components will be configured with the monitoring configuration recommended by Application Insights.
public virtual object AutoConfigurationEnabled { get; set; }
Property Value
System.Object
Remarks
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
ComponentMonitoringSettings
The monitoring settings of the components.
public virtual object ComponentMonitoringSettings { get; set; }
Property Value
System.Object
Remarks
CustomComponents
Describes a custom component by grouping similar standalone instances to monitor.
public virtual object CustomComponents { get; set; }
Property Value
System.Object
Remarks
CweMonitorEnabled
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated
, failed deployment
, and others.
public virtual object CweMonitorEnabled { get; set; }
Property Value
System.Object
Remarks
GroupingType
Application Insights can create applications based on a resource group or on an account.
public virtual string GroupingType { get; set; }
Property Value
System.String
Remarks
To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED
.
LogPatternSets
The log pattern sets.
public virtual object LogPatternSets { get; set; }
Property Value
System.Object
Remarks
OpsCenterEnabled
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.
public virtual object OpsCenterEnabled { get; set; }
Property Value
System.Object
Remarks
OpsItemSnsTopicArn
The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.
public virtual string OpsItemSnsTopicArn { get; set; }
Property Value
System.String
Remarks
ResourceGroupName
The name of the resource group used for the application.
public virtual string ResourceGroupName { get; set; }
Property Value
System.String
Remarks
Tags
An array of Tags
.
public virtual TagManager Tags { get; }
Property Value
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>