AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

Application

Provides a ApplicationInsights Application resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleGroup = new Aws.ResourceGroups.Group("exampleGroup", new Aws.ResourceGroups.GroupArgs
        {
            ResourceQuery = new Aws.ResourceGroups.Inputs.GroupResourceQueryArgs
            {
                Query = @"	{
		""ResourceTypeFilters"": [
		  ""AWS::EC2::Instance""
		],
		""TagFilters"": [
		  {
			""Key"": ""Stage"",
			""Values"": [
			  ""Test""
			]
		  }
		]
	  }
",
            },
        });
        var exampleApplication = new Aws.ApplicationInsights.Application("exampleApplication", new Aws.ApplicationInsights.ApplicationArgs
        {
            ResourceGroupName = exampleGroup.Name,
        });
    }

}
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/applicationinsights"
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/resourcegroups"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleGroup, err := resourcegroups.NewGroup(ctx, "exampleGroup", &resourcegroups.GroupArgs{
			ResourceQuery: &resourcegroups.GroupResourceQueryArgs{
				Query: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v", "	{\n", "		\"ResourceTypeFilters\": [\n", "		  \"AWS::EC2::Instance\"\n", "		],\n", "		\"TagFilters\": [\n", "		  {\n", "			\"Key\": \"Stage\",\n", "			\"Values\": [\n", "			  \"Test\"\n", "			]\n", "		  }\n", "		]\n", "	  }\n")),
			},
		})
		if err != nil {
			return err
		}
		_, err = applicationinsights.NewApplication(ctx, "exampleApplication", &applicationinsights.ApplicationArgs{
			ResourceGroupName: exampleGroup.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleGroup = new Group("exampleGroup", GroupArgs.builder()        
            .resourceQuery(GroupResourceQueryArgs.builder()
                .query("""
	{
		"ResourceTypeFilters": [
		  "AWS::EC2::Instance"
		],
		"TagFilters": [
		  {
			"Key": "Stage",
			"Values": [
			  "Test"
			]
		  }
		]
	  }
                """)
                .build())
            .build());

        var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()        
            .resourceGroupName(exampleGroup.name())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example_group = aws.resourcegroups.Group("exampleGroup", resource_query=aws.resourcegroups.GroupResourceQueryArgs(
    query="""	{
		"ResourceTypeFilters": [
		  "AWS::EC2::Instance"
		],
		"TagFilters": [
		  {
			"Key": "Stage",
			"Values": [
			  "Test"
			]
		  }
		]
	  }
""",
))
example_application = aws.applicationinsights.Application("exampleApplication", resource_group_name=example_group.name)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleGroup = new aws.resourcegroups.Group("exampleGroup", {resourceQuery: {
    query: `	{
		"ResourceTypeFilters": [
		  "AWS::EC2::Instance"
		],
		"TagFilters": [
		  {
			"Key": "Stage",
			"Values": [
			  "Test"
			]
		  }
		]
	  }
`,
}});
const exampleApplication = new aws.applicationinsights.Application("exampleApplication", {resourceGroupName: exampleGroup.name});
resources:
  exampleApplication:
    type: aws:applicationinsights:Application
    properties:
      resourceGroupName: ${exampleGroup.name}
  exampleGroup:
    type: aws:resourcegroups:Group
    properties:
      resourceQuery:
        query: |
          	{
          		"ResourceTypeFilters": [
          		  "AWS::EC2::Instance"
          		],
          		"TagFilters": [
          		  {
          			"Key": "Stage",
          			"Values": [
          			  "Test"
          			]
          		  }
          		]
          	  }          

Create a Application Resource

new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                auto_config_enabled: Optional[bool] = None,
                auto_create: Optional[bool] = None,
                cwe_monitor_enabled: Optional[bool] = None,
                grouping_type: Optional[str] = None,
                ops_center_enabled: Optional[bool] = None,
                ops_item_sns_topic_arn: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                tags_all: Optional[Mapping[str, str]] = None)
@overload
def Application(resource_name: str,
                args: ApplicationArgs,
                opts: Optional[ResourceOptions] = None)
func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: aws:applicationinsights:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Application Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Application resource accepts the following input properties:

ResourceGroupName string

The name of the resource group.

AutoConfigEnabled bool

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

AutoCreate bool

Configures all of the resources in the resource group by applying the recommended configurations.

CweMonitorEnabled bool

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

GroupingType string

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

OpsCenterEnabled bool

When set to true, creates opsItems for any problems detected on an application.

OpsItemSnsTopicArn string

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

Tags Dictionary<string, string>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

ResourceGroupName string

The name of the resource group.

AutoConfigEnabled bool

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

AutoCreate bool

Configures all of the resources in the resource group by applying the recommended configurations.

CweMonitorEnabled bool

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

GroupingType string

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

OpsCenterEnabled bool

When set to true, creates opsItems for any problems detected on an application.

OpsItemSnsTopicArn string

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

Tags map[string]string

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

resourceGroupName String

The name of the resource group.

autoConfigEnabled Boolean

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

autoCreate Boolean

Configures all of the resources in the resource group by applying the recommended configurations.

cweMonitorEnabled Boolean

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

groupingType String

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

opsCenterEnabled Boolean

When set to true, creates opsItems for any problems detected on an application.

opsItemSnsTopicArn String

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

tags Map<String,String>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

resourceGroupName string

The name of the resource group.

autoConfigEnabled boolean

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

autoCreate boolean

Configures all of the resources in the resource group by applying the recommended configurations.

cweMonitorEnabled boolean

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

groupingType string

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

opsCenterEnabled boolean

When set to true, creates opsItems for any problems detected on an application.

opsItemSnsTopicArn string

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

tags {[key: string]: string}

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

resource_group_name str

The name of the resource group.

auto_config_enabled bool

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

auto_create bool

Configures all of the resources in the resource group by applying the recommended configurations.

cwe_monitor_enabled bool

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

grouping_type str

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

ops_center_enabled bool

When set to true, creates opsItems for any problems detected on an application.

ops_item_sns_topic_arn str

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

tags Mapping[str, str]

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

resourceGroupName String

The name of the resource group.

autoConfigEnabled Boolean

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

autoCreate Boolean

Configures all of the resources in the resource group by applying the recommended configurations.

cweMonitorEnabled Boolean

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

groupingType String

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

opsCenterEnabled Boolean

When set to true, creates opsItems for any problems detected on an application.

opsItemSnsTopicArn String

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

tags Map<String>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Outputs

All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:

Arn string

Amazon Resource Name (ARN) of the Application.

Id string

The provider-assigned unique ID for this managed resource.

Arn string

Amazon Resource Name (ARN) of the Application.

Id string

The provider-assigned unique ID for this managed resource.

arn String

Amazon Resource Name (ARN) of the Application.

id String

The provider-assigned unique ID for this managed resource.

arn string

Amazon Resource Name (ARN) of the Application.

id string

The provider-assigned unique ID for this managed resource.

arn str

Amazon Resource Name (ARN) of the Application.

id str

The provider-assigned unique ID for this managed resource.

arn String

Amazon Resource Name (ARN) of the Application.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing Application Resource

Get an existing Application resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ApplicationState, opts?: CustomResourceOptions): Application
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        auto_config_enabled: Optional[bool] = None,
        auto_create: Optional[bool] = None,
        cwe_monitor_enabled: Optional[bool] = None,
        grouping_type: Optional[str] = None,
        ops_center_enabled: Optional[bool] = None,
        ops_item_sns_topic_arn: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> Application
func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
public static Application get(String name, Output<String> id, ApplicationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string

Amazon Resource Name (ARN) of the Application.

AutoConfigEnabled bool

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

AutoCreate bool

Configures all of the resources in the resource group by applying the recommended configurations.

CweMonitorEnabled bool

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

GroupingType string

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

OpsCenterEnabled bool

When set to true, creates opsItems for any problems detected on an application.

OpsItemSnsTopicArn string

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

ResourceGroupName string

The name of the resource group.

Tags Dictionary<string, string>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Arn string

Amazon Resource Name (ARN) of the Application.

AutoConfigEnabled bool

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

AutoCreate bool

Configures all of the resources in the resource group by applying the recommended configurations.

CweMonitorEnabled bool

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

GroupingType string

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

OpsCenterEnabled bool

When set to true, creates opsItems for any problems detected on an application.

OpsItemSnsTopicArn string

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

ResourceGroupName string

The name of the resource group.

Tags map[string]string

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

Amazon Resource Name (ARN) of the Application.

autoConfigEnabled Boolean

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

autoCreate Boolean

Configures all of the resources in the resource group by applying the recommended configurations.

cweMonitorEnabled Boolean

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

groupingType String

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

opsCenterEnabled Boolean

When set to true, creates opsItems for any problems detected on an application.

opsItemSnsTopicArn String

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

resourceGroupName String

The name of the resource group.

tags Map<String,String>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn string

Amazon Resource Name (ARN) of the Application.

autoConfigEnabled boolean

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

autoCreate boolean

Configures all of the resources in the resource group by applying the recommended configurations.

cweMonitorEnabled boolean

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

groupingType string

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

opsCenterEnabled boolean

When set to true, creates opsItems for any problems detected on an application.

opsItemSnsTopicArn string

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

resourceGroupName string

The name of the resource group.

tags {[key: string]: string}

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn str

Amazon Resource Name (ARN) of the Application.

auto_config_enabled bool

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

auto_create bool

Configures all of the resources in the resource group by applying the recommended configurations.

cwe_monitor_enabled bool

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

grouping_type str

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

ops_center_enabled bool

When set to true, creates opsItems for any problems detected on an application.

ops_item_sns_topic_arn str

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

resource_group_name str

The name of the resource group.

tags Mapping[str, str]

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

Amazon Resource Name (ARN) of the Application.

autoConfigEnabled Boolean

Indicates whether Application Insights automatically configures unmonitored resources in the resource group.

autoCreate Boolean

Configures all of the resources in the resource group by applying the recommended configurations.

cweMonitorEnabled Boolean

Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.

groupingType String

Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED.

opsCenterEnabled Boolean

When set to true, creates opsItems for any problems detected on an application.

opsItemSnsTopicArn String

The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.

resourceGroupName String

The name of the resource group.

tags Map<String>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Import

ApplicationInsights Applications can be imported using the resource_group_name, e.g.,

 $ pulumi import aws:applicationinsights/application:Application some some-application

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.