ApplicationArgs

data class ApplicationArgs(val autoConfigEnabled: Output<Boolean>? = null, val autoCreate: Output<Boolean>? = null, val cweMonitorEnabled: Output<Boolean>? = null, val groupingType: Output<String>? = null, val opsCenterEnabled: Output<Boolean>? = null, val opsItemSnsTopicArn: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ApplicationArgs>

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

Constructors

Link copied to clipboard
constructor(autoConfigEnabled: Output<Boolean>? = null, autoCreate: Output<Boolean>? = null, cweMonitorEnabled: Output<Boolean>? = null, groupingType: Output<String>? = null, opsCenterEnabled: Output<Boolean>? = null, opsItemSnsTopicArn: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val autoConfigEnabled: Output<Boolean>? = null

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

Link copied to clipboard
val autoCreate: Output<Boolean>? = null

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

Link copied to clipboard
val cweMonitorEnabled: Output<Boolean>? = null

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

Link copied to clipboard
val groupingType: Output<String>? = null

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.

Link copied to clipboard
val opsCenterEnabled: Output<Boolean>? = null

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

Link copied to clipboard
val opsItemSnsTopicArn: Output<String>? = null

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

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the resource group. The following arguments are optional:

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): ApplicationArgs