All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.peering.ConnectionMonitorTest Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show 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.azurenative.peering;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.peering.ConnectionMonitorTestArgs;
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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The Connection Monitor Test class.
 * Azure REST API version: 2022-10-01. Prior API version in Azure Native 1.x: 2021-06-01.
 * 
 * ## Example Usage
 * ### Create or Update Connection Monitor Test
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.peering.ConnectionMonitorTest;
 * import com.pulumi.azurenative.peering.ConnectionMonitorTestArgs;
 * 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 connectionMonitorTest = new ConnectionMonitorTest("connectionMonitorTest", ConnectionMonitorTestArgs.builder()
 *             .connectionMonitorTestName("connectionMonitorTestName")
 *             .destination("Example Destination")
 *             .destinationPort(443)
 *             .peeringServiceName("peeringServiceName")
 *             .resourceGroupName("rgName")
 *             .sourceAgent("Example Source Agent")
 *             .testFrequencyInSec(30)
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:peering:ConnectionMonitorTest connectionMonitorTestName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/connectionMonitorTests/{connectionMonitorTestName} * ``` * */ @ResourceType(type="azure-native:peering:ConnectionMonitorTest") public class ConnectionMonitorTest extends com.pulumi.resources.CustomResource { /** * The Connection Monitor test destination * */ @Export(name="destination", refs={String.class}, tree="[0]") private Output destination; /** * @return The Connection Monitor test destination * */ public Output> destination() { return Codegen.optional(this.destination); } /** * The Connection Monitor test destination port * */ @Export(name="destinationPort", refs={Integer.class}, tree="[0]") private Output destinationPort; /** * @return The Connection Monitor test destination port * */ public Output> destinationPort() { return Codegen.optional(this.destinationPort); } /** * The flag that indicates if the Connection Monitor test is successful or not. * */ @Export(name="isTestSuccessful", refs={Boolean.class}, tree="[0]") private Output isTestSuccessful; /** * @return The flag that indicates if the Connection Monitor test is successful or not. * */ public Output isTestSuccessful() { return this.isTestSuccessful; } /** * 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; } /** * The path representing the Connection Monitor test. * */ @Export(name="path", refs={List.class,String.class}, tree="[0,1]") private Output> path; /** * @return The path representing the Connection Monitor test. * */ public Output> path() { return this.path; } /** * The provisioning state of the resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the resource. * */ public Output provisioningState() { return this.provisioningState; } /** * The Connection Monitor test source agent * */ @Export(name="sourceAgent", refs={String.class}, tree="[0]") private Output sourceAgent; /** * @return The Connection Monitor test source agent * */ public Output> sourceAgent() { return Codegen.optional(this.sourceAgent); } /** * The Connection Monitor test frequency in seconds * */ @Export(name="testFrequencyInSec", refs={Integer.class}, tree="[0]") private Output testFrequencyInSec; /** * @return The Connection Monitor test frequency in seconds * */ public Output> testFrequencyInSec() { return Codegen.optional(this.testFrequencyInSec); } /** * The type of the resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public ConnectionMonitorTest(java.lang.String name) { this(name, ConnectionMonitorTestArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ConnectionMonitorTest(java.lang.String name, ConnectionMonitorTestArgs 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 ConnectionMonitorTest(java.lang.String name, ConnectionMonitorTestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:peering:ConnectionMonitorTest", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ConnectionMonitorTest(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:peering:ConnectionMonitorTest", name, null, makeResourceOptions(options, id), false); } private static ConnectionMonitorTestArgs makeArgs(ConnectionMonitorTestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ConnectionMonitorTestArgs.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:peering/v20210601:ConnectionMonitorTest").build()), Output.of(Alias.builder().type("azure-native:peering/v20220101:ConnectionMonitorTest").build()), Output.of(Alias.builder().type("azure-native:peering/v20220601:ConnectionMonitorTest").build()), Output.of(Alias.builder().type("azure-native:peering/v20221001:ConnectionMonitorTest").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 ConnectionMonitorTest get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ConnectionMonitorTest(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy