com.pulumi.aws.applicationinsights.Application Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.applicationinsights;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.applicationinsights.ApplicationArgs;
import com.pulumi.aws.applicationinsights.inputs.ApplicationState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Provides a ApplicationInsights Application resource.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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()
* .name("example")
* .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 example = new Application("example", ApplicationArgs.builder()
* .resourceGroupName(exampleGroup.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import ApplicationInsights Applications using the `resource_group_name`. For example:
*
* ```sh
* $ pulumi import aws:applicationinsights/application:Application some some-application
* ```
*
*/
@ResourceType(type="aws:applicationinsights/application:Application")
public class Application extends com.pulumi.resources.CustomResource {
/**
* ARN of the Application.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return ARN of the Application.
*
*/
public Output arn() {
return this.arn;
}
/**
* Indicates whether Application Insights automatically configures unmonitored resources in the resource group.
*
*/
@Export(name="autoConfigEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> autoConfigEnabled;
/**
* @return Indicates whether Application Insights automatically configures unmonitored resources in the resource group.
*
*/
public Output> autoConfigEnabled() {
return Codegen.optional(this.autoConfigEnabled);
}
/**
* Configures all of the resources in the resource group by applying the recommended configurations.
*
*/
@Export(name="autoCreate", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> autoCreate;
/**
* @return Configures all of the resources in the resource group by applying the recommended configurations.
*
*/
public Output> autoCreate() {
return Codegen.optional(this.autoCreate);
}
/**
* Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.
*
*/
@Export(name="cweMonitorEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> cweMonitorEnabled;
/**
* @return Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others.
*
*/
public Output> cweMonitorEnabled() {
return Codegen.optional(this.cweMonitorEnabled);
}
/**
* 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`.
*
*/
@Export(name="groupingType", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> groupingType;
/**
* @return 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`.
*
*/
public Output> groupingType() {
return Codegen.optional(this.groupingType);
}
/**
* When set to `true`, creates opsItems for any problems detected on an application.
*
*/
@Export(name="opsCenterEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> opsCenterEnabled;
/**
* @return When set to `true`, creates opsItems for any problems detected on an application.
*
*/
public Output> opsCenterEnabled() {
return Codegen.optional(this.opsCenterEnabled);
}
/**
* SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.
*
*/
@Export(name="opsItemSnsTopicArn", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> opsItemSnsTopicArn;
/**
* @return SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.
*
*/
public Output> opsItemSnsTopicArn() {
return Codegen.optional(this.opsItemSnsTopicArn);
}
/**
* Name of the resource group.
*
* The following arguments are optional:
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return Name of the resource group.
*
* The following arguments are optional:
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* 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.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return 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.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy