Application
Provides a ApplicationInsights Application resource.
Example Usage
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
ApplicationInsights Applications can be imported using the resource_group_name
, e.g.,
$ pulumi import aws:applicationinsights/application:Application some some-application
Properties
Indicates whether Application Insights automatically configures unmonitored resources in the resource group.
Configures all of the resources in the resource group by applying the recommended configurations.
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.
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
.
When set to true
, creates opsItems for any problems detected on an application.
SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.
Name of the resource group. The following arguments are optional: