com.pulumi.meraki.organizations.AlertsProfiles Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meraki Show documentation
Show all versions of meraki Show documentation
A Pulumi package for creating and managing Cisco Meraki 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.meraki.organizations;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.meraki.Utilities;
import com.pulumi.meraki.organizations.AlertsProfilesArgs;
import com.pulumi.meraki.organizations.inputs.AlertsProfilesState;
import com.pulumi.meraki.organizations.outputs.AlertsProfilesAlertCondition;
import com.pulumi.meraki.organizations.outputs.AlertsProfilesRecipients;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;
/**
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.meraki.organizations.AlertsProfiles;
* import com.pulumi.meraki.organizations.AlertsProfilesArgs;
* import com.pulumi.meraki.organizations.inputs.AlertsProfilesAlertConditionArgs;
* import com.pulumi.meraki.organizations.inputs.AlertsProfilesRecipientsArgs;
* 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 example = new AlertsProfiles("example", AlertsProfilesArgs.builder()
* .alertCondition(AlertsProfilesAlertConditionArgs.builder()
* .bit_rate_bps(10000)
* .duration(60)
* .interface_("wan1")
* .jitter_ms(100)
* .latency_ms(100)
* .loss_ratio(0.1)
* .mos(3.5)
* .window(600)
* .build())
* .description("WAN 1 high utilization")
* .networkTags(
* "tag1",
* "tag2")
* .organizationId("string")
* .recipients(AlertsProfilesRecipientsArgs.builder()
* .emails("admin{@literal @}example.org")
* .http_server_ids("aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vcGF0aA==")
* .build())
* .type("wanUtilization")
* .build());
*
* ctx.export("merakiOrganizationsAlertsProfilesExample", example);
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* ```sh
* $ pulumi import meraki:organizations/alertsProfiles:AlertsProfiles example "organization_id"
* ```
*
*/
@ResourceType(type="meraki:organizations/alertsProfiles:AlertsProfiles")
public class AlertsProfiles extends com.pulumi.resources.CustomResource {
/**
* The conditions that determine if the alert triggers
*
*/
@Export(name="alertCondition", refs={AlertsProfilesAlertCondition.class}, tree="[0]")
private Output alertCondition;
/**
* @return The conditions that determine if the alert triggers
*
*/
public Output alertCondition() {
return this.alertCondition;
}
/**
* alertConfigId path parameter. Alert config ID
*
*/
@Export(name="alertConfigId", refs={String.class}, tree="[0]")
private Output alertConfigId;
/**
* @return alertConfigId path parameter. Alert config ID
*
*/
public Output alertConfigId() {
return this.alertConfigId;
}
/**
* User supplied description of the alert
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output description;
/**
* @return User supplied description of the alert
*
*/
public Output description() {
return this.description;
}
/**
* Is the alert config enabled
*
*/
@Export(name="enabled", refs={Boolean.class}, tree="[0]")
private Output enabled;
/**
* @return Is the alert config enabled
*
*/
public Output enabled() {
return this.enabled;
}
/**
* Networks with these tags will be monitored for the alert
*
*/
@Export(name="networkTags", refs={List.class,String.class}, tree="[0,1]")
private Output> networkTags;
/**
* @return Networks with these tags will be monitored for the alert
*
*/
public Output> networkTags() {
return this.networkTags;
}
/**
* organizationId path parameter. Organization ID
*
*/
@Export(name="organizationId", refs={String.class}, tree="[0]")
private Output organizationId;
/**
* @return organizationId path parameter. Organization ID
*
*/
public Output organizationId() {
return this.organizationId;
}
/**
* List of recipients that will recieve the alert.
*
*/
@Export(name="recipients", refs={AlertsProfilesRecipients.class}, tree="[0]")
private Output recipients;
/**
* @return List of recipients that will recieve the alert.
*
*/
public Output recipients() {
return this.recipients;
}
/**
* The alert type
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The alert type
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public AlertsProfiles(String name) {
this(name, AlertsProfilesArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public AlertsProfiles(String name, AlertsProfilesArgs 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 AlertsProfiles(String name, AlertsProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("meraki:organizations/alertsProfiles:AlertsProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()));
}
private AlertsProfiles(String name, Output id, @Nullable AlertsProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("meraki:organizations/alertsProfiles:AlertsProfiles", name, state, makeResourceOptions(options, id));
}
private static AlertsProfilesArgs makeArgs(AlertsProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? AlertsProfilesArgs.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())
.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 state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static AlertsProfiles get(String name, Output id, @Nullable AlertsProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new AlertsProfiles(name, id, state, options);
}
}