Class CfnApplication
The AWS::ApplicationInsights::Application
resource adds an application that is created from a resource group.
Inherited Members
Namespace: Amazon.CDK.AWS.ApplicationInsights
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnApplication : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnApplication
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
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
AttachMissingPermission = false,
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(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 |
CfnApplication(Construct, String, ICfnApplicationProps) |
Properties
AttachMissingPermission | If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing. |
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 | Tag Manager which manages the tags for this resource. |
TagsRaw | An array of |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
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
CfnApplication(Construct, String, ICfnApplicationProps)
public CfnApplication(Construct scope, string id, ICfnApplicationProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnApplicationProps
Resource properties.
Properties
AttachMissingPermission
If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
public virtual object AttachMissingPermission { get; set; }
Property Value
System.Object
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
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
CustomComponents
Describes a custom component by grouping similar standalone instances to monitor.
public virtual object CustomComponents { get; set; }
Property Value
System.Object
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
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
LogPatternSets
The log pattern sets.
public virtual object LogPatternSets { get; set; }
Property Value
System.Object
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
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
ResourceGroupName
The name of the resource group used for the application.
public virtual string ResourceGroupName { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
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>