com.pulumi.azurenative.workloads.Monitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.workloads;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.workloads.MonitorArgs;
import com.pulumi.azurenative.workloads.outputs.ManagedRGConfigurationResponse;
import com.pulumi.azurenative.workloads.outputs.MonitorPropertiesResponseErrors;
import com.pulumi.azurenative.workloads.outputs.SystemDataResponse;
import com.pulumi.azurenative.workloads.outputs.UserAssignedServiceIdentityResponse;
import com.pulumi.core.Alias;
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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* SAP monitor info on Azure (ARM properties and SAP monitor properties)
* Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2021-12-01-preview.
*
* Other available API versions: 2023-12-01-preview.
*
* ## Example Usage
* ### Create a SAP monitor
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.workloads.Monitor;
* import com.pulumi.azurenative.workloads.MonitorArgs;
* import com.pulumi.azurenative.workloads.inputs.ManagedRGConfigurationArgs;
* 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 monitor = new Monitor("monitor", MonitorArgs.builder()
* .appLocation("westus")
* .location("westus")
* .logAnalyticsWorkspaceArmId("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace")
* .managedResourceGroupConfiguration(ManagedRGConfigurationArgs.builder()
* .name("myManagedRg")
* .build())
* .monitorName("mySapMonitor")
* .monitorSubnet("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")
* .resourceGroupName("myResourceGroup")
* .routingPreference("RouteAll")
* .tags(Map.of("key", "value"))
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:workloads:Monitor mySapMonitor /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}
* ```
*
*/
@ResourceType(type="azure-native:workloads:Monitor")
public class Monitor extends com.pulumi.resources.CustomResource {
/**
* The SAP monitor resources will be deployed in the SAP monitoring region. The subnet region should be same as the SAP monitoring region.
*
*/
@Export(name="appLocation", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> appLocation;
/**
* @return The SAP monitor resources will be deployed in the SAP monitoring region. The subnet region should be same as the SAP monitoring region.
*
*/
public Output> appLocation() {
return Codegen.optional(this.appLocation);
}
/**
* Defines the SAP monitor errors.
*
*/
@Export(name="errors", refs={MonitorPropertiesResponseErrors.class}, tree="[0]")
private Output errors;
/**
* @return Defines the SAP monitor errors.
*
*/
public Output errors() {
return this.errors;
}
/**
* [currently not in use] Managed service identity(user assigned identities)
*
*/
@Export(name="identity", refs={UserAssignedServiceIdentityResponse.class}, tree="[0]")
private Output* @Nullable */ UserAssignedServiceIdentityResponse> identity;
/**
* @return [currently not in use] Managed service identity(user assigned identities)
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* The geo-location where the resource lives
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The geo-location where the resource lives
*
*/
public Output location() {
return this.location;
}
/**
* The ARM ID of the Log Analytics Workspace that is used for SAP monitoring.
*
*/
@Export(name="logAnalyticsWorkspaceArmId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> logAnalyticsWorkspaceArmId;
/**
* @return The ARM ID of the Log Analytics Workspace that is used for SAP monitoring.
*
*/
public Output> logAnalyticsWorkspaceArmId() {
return Codegen.optional(this.logAnalyticsWorkspaceArmId);
}
/**
* Managed resource group configuration
*
*/
@Export(name="managedResourceGroupConfiguration", refs={ManagedRGConfigurationResponse.class}, tree="[0]")
private Output* @Nullable */ ManagedRGConfigurationResponse> managedResourceGroupConfiguration;
/**
* @return Managed resource group configuration
*
*/
public Output> managedResourceGroupConfiguration() {
return Codegen.optional(this.managedResourceGroupConfiguration);
}
/**
* The subnet which the SAP monitor will be deployed in
*
*/
@Export(name="monitorSubnet", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> monitorSubnet;
/**
* @return The subnet which the SAP monitor will be deployed in
*
*/
public Output> monitorSubnet() {
return Codegen.optional(this.monitorSubnet);
}
/**
* The ARM ID of the MSI used for SAP monitoring.
*
*/
@Export(name="msiArmId", refs={String.class}, tree="[0]")
private Output msiArmId;
/**
* @return The ARM ID of the MSI used for SAP monitoring.
*
*/
public Output msiArmId() {
return this.msiArmId;
}
/**
* The name of the resource
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the resource
*
*/
public Output name() {
return this.name;
}
/**
* State of provisioning of the SAP monitor.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return State of provisioning of the SAP monitor.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET.
*
*/
@Export(name="routingPreference", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> routingPreference;
/**
* @return Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET.
*
*/
public Output> routingPreference() {
return Codegen.optional(this.routingPreference);
}
/**
* The ARM ID of the Storage account used for SAP monitoring.
*
*/
@Export(name="storageAccountArmId", refs={String.class}, tree="[0]")
private Output storageAccountArmId;
/**
* @return The ARM ID of the Storage account used for SAP monitoring.
*
*/
public Output storageAccountArmId() {
return this.storageAccountArmId;
}
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* Resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public Output type() {
return this.type;
}
/**
* Sets the preference for zone redundancy on resources created for the SAP monitor. By default resources will be created which do not support zone redundancy.
*
*/
@Export(name="zoneRedundancyPreference", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> zoneRedundancyPreference;
/**
* @return Sets the preference for zone redundancy on resources created for the SAP monitor. By default resources will be created which do not support zone redundancy.
*
*/
public Output> zoneRedundancyPreference() {
return Codegen.optional(this.zoneRedundancyPreference);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Monitor(java.lang.String name) {
this(name, MonitorArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Monitor(java.lang.String name, MonitorArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Monitor(java.lang.String name, MonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:workloads:Monitor", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Monitor(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:workloads:Monitor", name, null, makeResourceOptions(options, id), false);
}
private static MonitorArgs makeArgs(MonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? MonitorArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:workloads:monitor").build()),
Output.of(Alias.builder().type("azure-native:workloads/v20211201preview:Monitor").build()),
Output.of(Alias.builder().type("azure-native:workloads/v20211201preview:monitor").build()),
Output.of(Alias.builder().type("azure-native:workloads/v20221101preview:Monitor").build()),
Output.of(Alias.builder().type("azure-native:workloads/v20221101preview:monitor").build()),
Output.of(Alias.builder().type("azure-native:workloads/v20230401:Monitor").build()),
Output.of(Alias.builder().type("azure-native:workloads/v20230401:monitor").build()),
Output.of(Alias.builder().type("azure-native:workloads/v20231001preview:Monitor").build()),
Output.of(Alias.builder().type("azure-native:workloads/v20231001preview:monitor").build()),
Output.of(Alias.builder().type("azure-native:workloads/v20231201preview:Monitor").build()),
Output.of(Alias.builder().type("azure-native:workloads/v20231201preview:monitor").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Monitor get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Monitor(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy