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

com.pulumi.azurenative.databoxedge.PeriodicTimerEventTrigger Maven / Gradle / Ivy

There is a newer version: 2.82.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.databoxedge;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.databoxedge.PeriodicTimerEventTriggerArgs;
import com.pulumi.azurenative.databoxedge.outputs.PeriodicTimerSourceInfoResponse;
import com.pulumi.azurenative.databoxedge.outputs.RoleSinkInfoResponse;
import com.pulumi.azurenative.databoxedge.outputs.SystemDataResponse;
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.Optional;
import javax.annotation.Nullable;

/**
 * Trigger details.
 * Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01.
 * 
 * ## Example Usage
 * ### TriggerPut
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.databoxedge.PeriodicTimerEventTrigger;
 * import com.pulumi.azurenative.databoxedge.PeriodicTimerEventTriggerArgs;
 * 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 periodicTimerEventTrigger = new PeriodicTimerEventTrigger("periodicTimerEventTrigger", PeriodicTimerEventTriggerArgs.builder()
 *             .deviceName("testedgedevice")
 *             .name("trigger1")
 *             .resourceGroupName("GroupForEdgeAutomation")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:databoxedge:PeriodicTimerEventTrigger trigger1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggers/{name} * ``` * */ @ResourceType(type="azure-native:databoxedge:PeriodicTimerEventTrigger") public class PeriodicTimerEventTrigger extends com.pulumi.resources.CustomResource { /** * A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module. * */ @Export(name="customContextTag", refs={String.class}, tree="[0]") private Output customContextTag; /** * @return A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module. * */ public Output> customContextTag() { return Codegen.optional(this.customContextTag); } /** * Trigger Kind. * Expected value is 'PeriodicTimerEvent'. * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return Trigger Kind. * Expected value is 'PeriodicTimerEvent'. * */ public Output kind() { return this.kind; } /** * The object name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The object name. * */ public Output name() { return this.name; } /** * Role Sink information. * */ @Export(name="sinkInfo", refs={RoleSinkInfoResponse.class}, tree="[0]") private Output sinkInfo; /** * @return Role Sink information. * */ public Output sinkInfo() { return this.sinkInfo; } /** * Periodic timer details. * */ @Export(name="sourceInfo", refs={PeriodicTimerSourceInfoResponse.class}, tree="[0]") private Output sourceInfo; /** * @return Periodic timer details. * */ public Output sourceInfo() { return this.sourceInfo; } /** * Metadata pertaining to creation and last modification of Trigger * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of Trigger * */ public Output systemData() { return this.systemData; } /** * The hierarchical type of the object. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The hierarchical type of the object. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public PeriodicTimerEventTrigger(java.lang.String name) { this(name, PeriodicTimerEventTriggerArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public PeriodicTimerEventTrigger(java.lang.String name, PeriodicTimerEventTriggerArgs 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 PeriodicTimerEventTrigger(java.lang.String name, PeriodicTimerEventTriggerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:databoxedge:PeriodicTimerEventTrigger", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private PeriodicTimerEventTrigger(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:databoxedge:PeriodicTimerEventTrigger", name, null, makeResourceOptions(options, id), false); } private static PeriodicTimerEventTriggerArgs makeArgs(PeriodicTimerEventTriggerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } var builder = args == null ? PeriodicTimerEventTriggerArgs.builder() : PeriodicTimerEventTriggerArgs.builder(args); return builder .kind("PeriodicTimerEvent") .build(); } 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:databoxedge/v20190301:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20190701:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20190801:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200501preview:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200901:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200901preview:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20201201:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210201:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210201preview:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210601:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210601preview:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20220301:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20220401preview:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20221201preview:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20230101preview:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20230701:PeriodicTimerEventTrigger").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20231201:PeriodicTimerEventTrigger").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 PeriodicTimerEventTrigger get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new PeriodicTimerEventTrigger(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy