com.pulumi.meraki.organizations.ActionBatches 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.ActionBatchesArgs;
import com.pulumi.meraki.organizations.inputs.ActionBatchesState;
import com.pulumi.meraki.organizations.outputs.ActionBatchesAction;
import com.pulumi.meraki.organizations.outputs.ActionBatchesCallback;
import com.pulumi.meraki.organizations.outputs.ActionBatchesStatus;
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.ActionBatches;
* import com.pulumi.meraki.organizations.ActionBatchesArgs;
* import com.pulumi.meraki.organizations.inputs.ActionBatchesActionArgs;
* import com.pulumi.meraki.organizations.inputs.ActionBatchesCallbackArgs;
* 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 ActionBatches("example", ActionBatchesArgs.builder()
* .actions(ActionBatchesActionArgs.builder()
* .operation("create")
* .resource("/devices/QXXX-XXXX-XXXX/switch/ports/3")
* .build())
* .callback(ActionBatchesCallbackArgs.builder()
* .http_server(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
* .payload_template(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
* .shared_secret("secret")
* .url("https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031")
* .build())
* .confirmed(true)
* .organizationId("string")
* .synchronous(true)
* .build());
*
* ctx.export("merakiOrganizationsActionBatchesExample", example);
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* ```sh
* $ pulumi import meraki:organizations/actionBatches:ActionBatches example "action_batch_id,organization_id"
* ```
*
*/
@ResourceType(type="meraki:organizations/actionBatches:ActionBatches")
public class ActionBatches extends com.pulumi.resources.CustomResource {
/**
* actionBatchId path parameter. Action batch ID
*
*/
@Export(name="actionBatchId", refs={String.class}, tree="[0]")
private Output actionBatchId;
/**
* @return actionBatchId path parameter. Action batch ID
*
*/
public Output actionBatchId() {
return this.actionBatchId;
}
/**
* A set of changes made as part of this action (\n\nmore details\n\n)
*
*/
@Export(name="actions", refs={List.class,ActionBatchesAction.class}, tree="[0,1]")
private Output> actions;
/**
* @return A set of changes made as part of this action (\n\nmore details\n\n)
*
*/
public Output> actions() {
return this.actions;
}
/**
* Information for callback used to send back results
*
*/
@Export(name="callback", refs={ActionBatchesCallback.class}, tree="[0]")
private Output callback;
/**
* @return Information for callback used to send back results
*
*/
public Output callback() {
return this.callback;
}
/**
* Flag describing whether the action should be previewed before executing or not
*
*/
@Export(name="confirmed", refs={Boolean.class}, tree="[0]")
private Output confirmed;
/**
* @return Flag describing whether the action should be previewed before executing or not
*
*/
public Output confirmed() {
return this.confirmed;
}
/**
* ID of the organization this action batch belongs to
*
*/
@Export(name="organizationId", refs={String.class}, tree="[0]")
private Output organizationId;
/**
* @return ID of the organization this action batch belongs to
*
*/
public Output organizationId() {
return this.organizationId;
}
/**
* Status of action batch
*
*/
@Export(name="status", refs={ActionBatchesStatus.class}, tree="[0]")
private Output status;
/**
* @return Status of action batch
*
*/
public Output status() {
return this.status;
}
/**
* Flag describing whether actions should run synchronously or asynchronously
*
*/
@Export(name="synchronous", refs={Boolean.class}, tree="[0]")
private Output synchronous;
/**
* @return Flag describing whether actions should run synchronously or asynchronously
*
*/
public Output synchronous() {
return this.synchronous;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ActionBatches(java.lang.String name) {
this(name, ActionBatchesArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ActionBatches(java.lang.String name, ActionBatchesArgs 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 ActionBatches(java.lang.String name, ActionBatchesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("meraki:organizations/actionBatches:ActionBatches", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ActionBatches(java.lang.String name, Output id, @Nullable ActionBatchesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("meraki:organizations/actionBatches:ActionBatches", name, state, makeResourceOptions(options, id), false);
}
private static ActionBatchesArgs makeArgs(ActionBatchesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ActionBatchesArgs.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 ActionBatches get(java.lang.String name, Output id, @Nullable ActionBatchesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ActionBatches(name, id, state, options);
}
}