![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.apimanagement.WorkspaceBackend 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.apimanagement;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.apimanagement.WorkspaceBackendArgs;
import com.pulumi.azurenative.apimanagement.outputs.BackendBaseParametersResponsePool;
import com.pulumi.azurenative.apimanagement.outputs.BackendCircuitBreakerResponse;
import com.pulumi.azurenative.apimanagement.outputs.BackendCredentialsContractResponse;
import com.pulumi.azurenative.apimanagement.outputs.BackendPropertiesResponse;
import com.pulumi.azurenative.apimanagement.outputs.BackendProxyContractResponse;
import com.pulumi.azurenative.apimanagement.outputs.BackendTlsPropertiesResponse;
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;
/**
* Backend details.
* Azure REST API version: 2023-09-01-preview.
*
* Other available API versions: 2024-05-01.
*
* ## Example Usage
* ### ApiManagementCreateWorkspaceBackendProxyBackend
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.apimanagement.WorkspaceBackend;
* import com.pulumi.azurenative.apimanagement.WorkspaceBackendArgs;
* import com.pulumi.azurenative.apimanagement.inputs.BackendCredentialsContractArgs;
* import com.pulumi.azurenative.apimanagement.inputs.BackendAuthorizationHeaderCredentialsArgs;
* import com.pulumi.azurenative.apimanagement.inputs.BackendProxyContractArgs;
* import com.pulumi.azurenative.apimanagement.inputs.BackendTlsPropertiesArgs;
* 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 workspaceBackend = new WorkspaceBackend("workspaceBackend", WorkspaceBackendArgs.builder()
* .backendId("proxybackend")
* .credentials(BackendCredentialsContractArgs.builder()
* .authorization(BackendAuthorizationHeaderCredentialsArgs.builder()
* .parameter("opensesma")
* .scheme("Basic")
* .build())
* .header(Map.of("x-my-1",
* "val1",
* "val2"))
* .query(Map.of("sv",
* "xx",
* "bb",
* "cc"))
* .build())
* .description("description5308")
* .protocol("http")
* .proxy(BackendProxyContractArgs.builder()
* .password("")
* .url("http://192.168.1.1:8080")
* .username("Contoso\\admin")
* .build())
* .resourceGroupName("rg1")
* .serviceName("apimService1")
* .tls(BackendTlsPropertiesArgs.builder()
* .validateCertificateChain(true)
* .validateCertificateName(true)
* .build())
* .url("https://backendname2644/")
* .workspaceId("wks1")
* .build());
*
* }
* }
*
* }
*
* ### ApiManagementCreateWorkspaceBackendServiceFabric
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.apimanagement.WorkspaceBackend;
* import com.pulumi.azurenative.apimanagement.WorkspaceBackendArgs;
* import com.pulumi.azurenative.apimanagement.inputs.BackendPropertiesArgs;
* import com.pulumi.azurenative.apimanagement.inputs.BackendServiceFabricClusterPropertiesArgs;
* 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 workspaceBackend = new WorkspaceBackend("workspaceBackend", WorkspaceBackendArgs.builder()
* .backendId("sfbackend")
* .description("Service Fabric Test App 1")
* .properties(BackendPropertiesArgs.builder()
* .serviceFabricCluster(BackendServiceFabricClusterPropertiesArgs.builder()
* .clientCertificateId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1/certificates/cert1")
* .managementEndpoints("https://somecluster.com")
* .maxPartitionResolutionRetries(5)
* .serverX509Names(X509CertificateNameArgs.builder()
* .issuerCertificateThumbprint("IssuerCertificateThumbprint1")
* .name("ServerCommonName1")
* .build())
* .build())
* .build())
* .protocol("http")
* .resourceGroupName("rg1")
* .serviceName("apimService1")
* .url("fabric:/mytestapp/mytestservice")
* .workspaceId("wks1")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:apimanagement:WorkspaceBackend sfbackend /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/backends/{backendId}
* ```
*
*/
@ResourceType(type="azure-native:apimanagement:WorkspaceBackend")
public class WorkspaceBackend extends com.pulumi.resources.CustomResource {
/**
* Backend Circuit Breaker Configuration
*
*/
@Export(name="circuitBreaker", refs={BackendCircuitBreakerResponse.class}, tree="[0]")
private Output* @Nullable */ BackendCircuitBreakerResponse> circuitBreaker;
/**
* @return Backend Circuit Breaker Configuration
*
*/
public Output> circuitBreaker() {
return Codegen.optional(this.circuitBreaker);
}
/**
* Backend Credentials Contract Properties
*
*/
@Export(name="credentials", refs={BackendCredentialsContractResponse.class}, tree="[0]")
private Output* @Nullable */ BackendCredentialsContractResponse> credentials;
/**
* @return Backend Credentials Contract Properties
*
*/
public Output> credentials() {
return Codegen.optional(this.credentials);
}
/**
* Backend Description.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Backend Description.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* 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;
}
@Export(name="pool", refs={BackendBaseParametersResponsePool.class}, tree="[0]")
private Output* @Nullable */ BackendBaseParametersResponsePool> pool;
public Output> pool() {
return Codegen.optional(this.pool);
}
/**
* Backend Properties contract
*
*/
@Export(name="properties", refs={BackendPropertiesResponse.class}, tree="[0]")
private Output properties;
/**
* @return Backend Properties contract
*
*/
public Output properties() {
return this.properties;
}
/**
* Backend communication protocol.
*
*/
@Export(name="protocol", refs={String.class}, tree="[0]")
private Output protocol;
/**
* @return Backend communication protocol.
*
*/
public Output protocol() {
return this.protocol;
}
/**
* Backend gateway Contract Properties
*
*/
@Export(name="proxy", refs={BackendProxyContractResponse.class}, tree="[0]")
private Output* @Nullable */ BackendProxyContractResponse> proxy;
/**
* @return Backend gateway Contract Properties
*
*/
public Output> proxy() {
return Codegen.optional(this.proxy);
}
/**
* Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
*
*/
@Export(name="resourceId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> resourceId;
/**
* @return Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
*
*/
public Output> resourceId() {
return Codegen.optional(this.resourceId);
}
/**
* Backend Title.
*
*/
@Export(name="title", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> title;
/**
* @return Backend Title.
*
*/
public Output> title() {
return Codegen.optional(this.title);
}
/**
* Backend TLS Properties
*
*/
@Export(name="tls", refs={BackendTlsPropertiesResponse.class}, tree="[0]")
private Output* @Nullable */ BackendTlsPropertiesResponse> tls;
/**
* @return Backend TLS Properties
*
*/
public Output> tls() {
return Codegen.optional(this.tls);
}
/**
* 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;
}
/**
* Runtime Url of the Backend.
*
*/
@Export(name="url", refs={String.class}, tree="[0]")
private Output url;
/**
* @return Runtime Url of the Backend.
*
*/
public Output url() {
return this.url;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public WorkspaceBackend(java.lang.String name) {
this(name, WorkspaceBackendArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public WorkspaceBackend(java.lang.String name, WorkspaceBackendArgs 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 WorkspaceBackend(java.lang.String name, WorkspaceBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:apimanagement:WorkspaceBackend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private WorkspaceBackend(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:apimanagement:WorkspaceBackend", name, null, makeResourceOptions(options, id), false);
}
private static WorkspaceBackendArgs makeArgs(WorkspaceBackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? WorkspaceBackendArgs.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:apimanagement/v20230901preview:WorkspaceBackend").build()),
Output.of(Alias.builder().type("azure-native:apimanagement/v20240501:WorkspaceBackend").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 WorkspaceBackend get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new WorkspaceBackend(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy