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

com.pulumi.azurenative.apimanagement.Backend 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.apimanagement;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.apimanagement.BackendArgs;
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: 2022-08-01. Prior API version in Azure Native 1.x: 2020-12-01.
 * 
 * Other available API versions: 2016-07-07, 2016-10-10, 2018-01-01, 2022-09-01-preview, 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01.
 * 
 * ## Example Usage
 * ### ApiManagementCreateBackendProxyBackend
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.apimanagement.Backend;
 * import com.pulumi.azurenative.apimanagement.BackendArgs;
 * 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 backend = new Backend("backend", BackendArgs.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/")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### ApiManagementCreateBackendServiceFabric * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.apimanagement.Backend;
 * import com.pulumi.azurenative.apimanagement.BackendArgs;
 * 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 backend = new Backend("backend", BackendArgs.builder()
 *             .backendId("sfbackend")
 *             .description("Service Fabric Test App 1")
 *             .properties(BackendPropertiesArgs.builder()
 *                 .serviceFabricCluster(BackendServiceFabricClusterPropertiesArgs.builder()
 *                     .clientCertificateId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/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")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:apimanagement:Backend sfbackend /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId} * ``` * */ @ResourceType(type="azure-native:apimanagement:Backend") public class Backend extends com.pulumi.resources.CustomResource { /** * Backend Credentials Contract Properties * */ @Export(name="credentials", refs={BackendCredentialsContractResponse.class}, tree="[0]") private Output 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 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; } /** * 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 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 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 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 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 Backend(java.lang.String name) { this(name, BackendArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Backend(java.lang.String name, BackendArgs 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 Backend(java.lang.String name, BackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:apimanagement:Backend", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Backend(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:apimanagement:Backend", name, null, makeResourceOptions(options, id), false); } private static BackendArgs makeArgs(BackendArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? BackendArgs.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/v20160707:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20161010:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20170301:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20180101:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20180601preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20190101:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20191201:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20191201preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20200601preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20201201:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20210101preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20210401preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20210801:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20211201preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20220401preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20220801:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20220901preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20230301preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20230501preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20230901preview:Backend").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20240501:Backend").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 Backend get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Backend(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy