1. Packages
  2. AWS Classic
  3. API Docs
  4. applicationinsights
  5. Application

Try AWS Native preview for resources not in the classic version.

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

aws.applicationinsights.Application

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

    Provides a ApplicationInsights Application resource.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleGroup = new Aws.ResourceGroups.Group("exampleGroup", new()
        {
            ResourceQuery = new Aws.ResourceGroups.Inputs.GroupResourceQueryArgs
            {
                Query = JsonSerializer.Serialize(new Dictionary<string, object?>
                {
                    ["ResourceTypeFilters"] = new[]
                    {
                        "AWS::EC2::Instance",
                    },
                    ["TagFilters"] = new[]
                    {
                        new Dictionary<string, object?>
                        {
                            ["Key"] = "Stage",
                            ["Values"] = new[]
                            {
                                "Test",
                            },
                        },
                    },
                }),
            },
        });
    
        var exampleApplication = new Aws.ApplicationInsights.Application("exampleApplication", new()
        {
            ResourceGroupName = exampleGroup.Name,
        });
    
    });
    
    package main
    
    import (
    	"encoding/json"
    
    	"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 {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"ResourceTypeFilters": []string{
    				"AWS::EC2::Instance",
    			},
    			"TagFilters": []map[string]interface{}{
    				map[string]interface{}{
    					"Key": "Stage",
    					"Values": []string{
    						"Test",
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		exampleGroup, err := resourcegroups.NewGroup(ctx, "exampleGroup", &resourcegroups.GroupArgs{
    			ResourceQuery: &resourcegroups.GroupResourceQueryArgs{
    				Query: pulumi.String(json0),
    			},
    		})
    		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 com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.resourcegroups.Group;
    import com.pulumi.aws.resourcegroups.GroupArgs;
    import com.pulumi.aws.resourcegroups.inputs.GroupResourceQueryArgs;
    import com.pulumi.aws.applicationinsights.Application;
    import com.pulumi.aws.applicationinsights.ApplicationArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    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(serializeJson(
                        jsonObject(
                            jsonProperty("ResourceTypeFilters", jsonArray("AWS::EC2::Instance")),
                            jsonProperty("TagFilters", jsonArray(jsonObject(
                                jsonProperty("Key", "Stage"),
                                jsonProperty("Values", jsonArray("Test"))
                            )))
                        )))
                    .build())
                .build());
    
            var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()        
                .resourceGroupName(exampleGroup.name())
                .build());
    
        }
    }
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    example_group = aws.resourcegroups.Group("exampleGroup", resource_query=aws.resourcegroups.GroupResourceQueryArgs(
        query=json.dumps({
            "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: JSON.stringify({
            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:
              fn::toJSON:
                ResourceTypeFilters:
                  - AWS::EC2::Instance
                TagFilters:
                  - Key: Stage
                    Values:
                      - Test
    

    Create 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)
    @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

    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

    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>

    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.

    ResourceGroupName string

    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

    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

    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.

    resourceGroupName String

    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

    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>

    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.

    resourceGroupName string

    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

    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}

    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.

    resource_group_name str

    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

    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]

    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.

    resourceGroupName String

    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

    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>

    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.

    Outputs

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

    Arn string

    ARN of the Application.

    Id string

    The provider-assigned unique ID for this managed resource.

    TagsAll Dictionary<string, string>

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

    Arn string

    ARN of the Application.

    Id string

    The provider-assigned unique ID for this managed resource.

    TagsAll map[string]string

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

    arn String

    ARN of the Application.

    id String

    The provider-assigned unique ID for this managed resource.

    tagsAll Map<String,String>

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

    arn string

    ARN of the Application.

    id string

    The provider-assigned unique ID for this managed resource.

    tagsAll {[key: string]: string}

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

    arn str

    ARN of the Application.

    id str

    The provider-assigned unique ID for this managed resource.

    tags_all Mapping[str, str]

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

    arn String

    ARN of the Application.

    id String

    The provider-assigned unique ID for this managed resource.

    tagsAll Map<String>

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

    Look up 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

    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

    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

    Name of the resource group.

    Tags Dictionary<string, string>

    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>

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

    Arn string

    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

    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

    Name of the resource group.

    Tags map[string]string

    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

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

    arn String

    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

    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

    Name of the resource group.

    tags Map<String,String>

    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>

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

    arn string

    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

    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

    Name of the resource group.

    tags {[key: string]: string}

    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}

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

    arn str

    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

    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

    Name of the resource group.

    tags Mapping[str, str]

    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]

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

    arn String

    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

    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

    Name of the resource group.

    tags Map<String>

    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>

    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
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi