
com.pulumi.azurenative.integrationspaces.BusinessProcess 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.integrationspaces;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.integrationspaces.BusinessProcessArgs;
import com.pulumi.azurenative.integrationspaces.outputs.BusinessProcessIdentifierResponse;
import com.pulumi.azurenative.integrationspaces.outputs.BusinessProcessMappingItemResponse;
import com.pulumi.azurenative.integrationspaces.outputs.BusinessProcessStageResponse;
import com.pulumi.azurenative.integrationspaces.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.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* A business process under application.
* Azure REST API version: 2023-11-14-preview.
*
* ## Example Usage
* ### CreateOrUpdateBusinessProcess
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.integrationspaces.BusinessProcess;
* import com.pulumi.azurenative.integrationspaces.BusinessProcessArgs;
* import com.pulumi.azurenative.integrationspaces.inputs.BusinessProcessIdentifierArgs;
* 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 businessProcess = new BusinessProcess("businessProcess", BusinessProcessArgs.builder()
* .applicationName("Application1")
* .businessProcessMapping(Map.ofEntries(
* Map.entry("Completed", Map.ofEntries(
* Map.entry("logicAppResourceId", "subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"),
* Map.entry("operationName", "CompletedPO"),
* Map.entry("operationType", "Action"),
* Map.entry("workflowName", "Fulfillment")
* )),
* Map.entry("Denied", Map.ofEntries(
* Map.entry("logicAppResourceId", "subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"),
* Map.entry("operationName", "DeniedPO"),
* Map.entry("operationType", "Action"),
* Map.entry("workflowName", "Fulfillment")
* )),
* Map.entry("Processing", Map.ofEntries(
* Map.entry("logicAppResourceId", "subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"),
* Map.entry("operationName", "ApprovedPO"),
* Map.entry("operationType", "Action"),
* Map.entry("workflowName", "PurchaseOrder")
* )),
* Map.entry("Received", Map.ofEntries(
* Map.entry("logicAppResourceId", "subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"),
* Map.entry("operationName", "manual"),
* Map.entry("operationType", "Trigger"),
* Map.entry("workflowName", "PurchaseOrder")
* )),
* Map.entry("Shipped", Map.ofEntries(
* Map.entry("logicAppResourceId", "subscriptions/sub1/resourcegroups/group1/providers/Microsoft.Web/sites/logicApp1"),
* Map.entry("operationName", "ShippedPO"),
* Map.entry("operationType", "Action"),
* Map.entry("workflowName", "Fulfillment")
* ))
* ))
* .businessProcessName("BusinessProcess1")
* .businessProcessStages(Map.ofEntries(
* Map.entry("Completed", Map.ofEntries(
* Map.entry("description", "Completed"),
* Map.entry("stagesBefore", "Shipped")
* )),
* Map.entry("Denied", Map.ofEntries(
* Map.entry("description", "Denied"),
* Map.entry("stagesBefore", "Processing")
* )),
* Map.entry("Processing", Map.ofEntries(
* Map.entry("description", "Processing"),
* Map.entry("properties", Map.ofEntries(
* Map.entry("ApprovalState", "String"),
* Map.entry("ApproverName", "String"),
* Map.entry("POAmount", "Integer")
* )),
* Map.entry("stagesBefore", "Received")
* )),
* Map.entry("Received", Map.ofEntries(
* Map.entry("description", "received"),
* Map.entry("properties", Map.ofEntries(
* Map.entry("City", "String"),
* Map.entry("Product", "String"),
* Map.entry("Quantity", "Integer"),
* Map.entry("State", "String")
* ))
* )),
* Map.entry("Shipped", Map.ofEntries(
* Map.entry("description", "Shipped"),
* Map.entry("properties", Map.ofEntries(
* Map.entry("ShipPriority", "Integer"),
* Map.entry("TrackingID", "Integer")
* )),
* Map.entry("stagesBefore", "Denied")
* ))
* ))
* .description("First Business Process")
* .identifier(BusinessProcessIdentifierArgs.builder()
* .propertyName("businessIdentifier-1")
* .propertyType("String")
* .build())
* .resourceGroupName("testrg")
* .spaceName("Space1")
* .tableName("table1")
* .trackingDataStoreReferenceName("trackingDataStoreReferenceName1")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:integrationspaces:BusinessProcess BusinessProcess1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/businessProcesses/{businessProcessName}
* ```
*
*/
@ResourceType(type="azure-native:integrationspaces:BusinessProcess")
public class BusinessProcess extends com.pulumi.resources.CustomResource {
/**
* The business process mapping.
*
*/
@Export(name="businessProcessMapping", refs={Map.class,String.class,BusinessProcessMappingItemResponse.class}, tree="[0,1,2]")
private Output* @Nullable */ Map> businessProcessMapping;
/**
* @return The business process mapping.
*
*/
public Output>> businessProcessMapping() {
return Codegen.optional(this.businessProcessMapping);
}
/**
* The business process stages.
*
*/
@Export(name="businessProcessStages", refs={Map.class,String.class,BusinessProcessStageResponse.class}, tree="[0,1,2]")
private Output* @Nullable */ Map> businessProcessStages;
/**
* @return The business process stages.
*
*/
public Output>> businessProcessStages() {
return Codegen.optional(this.businessProcessStages);
}
/**
* The description of the business process.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return The description of the business process.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* The business process identifier.
*
*/
@Export(name="identifier", refs={BusinessProcessIdentifierResponse.class}, tree="[0]")
private Output* @Nullable */ BusinessProcessIdentifierResponse> identifier;
/**
* @return The business process identifier.
*
*/
public Output> identifier() {
return Codegen.optional(this.identifier);
}
/**
* 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 status of the last operation.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return The status of the last operation.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* 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;
}
/**
* The table name of the business process.
*
*/
@Export(name="tableName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> tableName;
/**
* @return The table name of the business process.
*
*/
public Output> tableName() {
return Codegen.optional(this.tableName);
}
/**
* The tracking data store reference name.
*
*/
@Export(name="trackingDataStoreReferenceName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> trackingDataStoreReferenceName;
/**
* @return The tracking data store reference name.
*
*/
public Output> trackingDataStoreReferenceName() {
return Codegen.optional(this.trackingDataStoreReferenceName);
}
/**
* 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;
}
/**
* The version of the business process.
*
*/
@Export(name="version", refs={String.class}, tree="[0]")
private Output version;
/**
* @return The version of the business process.
*
*/
public Output version() {
return this.version;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public BusinessProcess(java.lang.String name) {
this(name, BusinessProcessArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public BusinessProcess(java.lang.String name, BusinessProcessArgs 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 BusinessProcess(java.lang.String name, BusinessProcessArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:integrationspaces:BusinessProcess", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private BusinessProcess(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:integrationspaces:BusinessProcess", name, null, makeResourceOptions(options, id), false);
}
private static BusinessProcessArgs makeArgs(BusinessProcessArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? BusinessProcessArgs.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:integrationspaces/v20231114preview:BusinessProcess").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 BusinessProcess get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new BusinessProcess(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy