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

com.pulumi.azurenative.network.ExpressRouteConnection Maven / Gradle / Ivy

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

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.network.ExpressRouteConnectionArgs;
import com.pulumi.azurenative.network.outputs.ExpressRouteCircuitPeeringIdResponse;
import com.pulumi.azurenative.network.outputs.RoutingConfigurationResponse;
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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * ExpressRouteConnection resource.
 * Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
 * 
 * Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.
 * 
 * ## Example Usage
 * ### ExpressRouteConnectionCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.ExpressRouteConnection;
 * import com.pulumi.azurenative.network.ExpressRouteConnectionArgs;
 * import com.pulumi.azurenative.network.inputs.ExpressRouteCircuitPeeringIdArgs;
 * import com.pulumi.azurenative.network.inputs.RoutingConfigurationArgs;
 * import com.pulumi.azurenative.network.inputs.SubResourceArgs;
 * import com.pulumi.azurenative.network.inputs.PropagatedRouteTableArgs;
 * 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 expressRouteConnection = new ExpressRouteConnection("expressRouteConnection", ExpressRouteConnectionArgs.builder()
 *             .authorizationKey("authorizationKey")
 *             .connectionName("connectionName")
 *             .expressRouteCircuitPeering(ExpressRouteCircuitPeeringIdArgs.builder()
 *                 .id("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering")
 *                 .build())
 *             .expressRouteGatewayName("gateway-2")
 *             .id("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName")
 *             .name("connectionName")
 *             .resourceGroupName("resourceGroupName")
 *             .routingConfiguration(RoutingConfigurationArgs.builder()
 *                 .associatedRouteTable(SubResourceArgs.builder()
 *                     .id("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1")
 *                     .build())
 *                 .inboundRouteMap(SubResourceArgs.builder()
 *                     .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap1")
 *                     .build())
 *                 .outboundRouteMap(SubResourceArgs.builder()
 *                     .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap2")
 *                     .build())
 *                 .propagatedRouteTables(PropagatedRouteTableArgs.builder()
 *                     .ids(                    
 *                         SubResourceArgs.builder()
 *                             .id("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1")
 *                             .build(),
 *                         SubResourceArgs.builder()
 *                             .id("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable2")
 *                             .build(),
 *                         SubResourceArgs.builder()
 *                             .id("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable3")
 *                             .build())
 *                     .labels(                    
 *                         "label1",
 *                         "label2")
 *                     .build())
 *                 .build())
 *             .routingWeight(2)
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:network:ExpressRouteConnection connectionName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName} * ``` * */ @ResourceType(type="azure-native:network:ExpressRouteConnection") public class ExpressRouteConnection extends com.pulumi.resources.CustomResource { /** * Authorization key to establish the connection. * */ @Export(name="authorizationKey", refs={String.class}, tree="[0]") private Output authorizationKey; /** * @return Authorization key to establish the connection. * */ public Output> authorizationKey() { return Codegen.optional(this.authorizationKey); } /** * Enable internet security. * */ @Export(name="enableInternetSecurity", refs={Boolean.class}, tree="[0]") private Output enableInternetSecurity; /** * @return Enable internet security. * */ public Output> enableInternetSecurity() { return Codegen.optional(this.enableInternetSecurity); } /** * Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. * */ @Export(name="enablePrivateLinkFastPath", refs={Boolean.class}, tree="[0]") private Output enablePrivateLinkFastPath; /** * @return Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. * */ public Output> enablePrivateLinkFastPath() { return Codegen.optional(this.enablePrivateLinkFastPath); } /** * The ExpressRoute circuit peering. * */ @Export(name="expressRouteCircuitPeering", refs={ExpressRouteCircuitPeeringIdResponse.class}, tree="[0]") private Output expressRouteCircuitPeering; /** * @return The ExpressRoute circuit peering. * */ public Output expressRouteCircuitPeering() { return this.expressRouteCircuitPeering; } /** * Enable FastPath to vWan Firewall hub. * */ @Export(name="expressRouteGatewayBypass", refs={Boolean.class}, tree="[0]") private Output expressRouteGatewayBypass; /** * @return Enable FastPath to vWan Firewall hub. * */ public Output> expressRouteGatewayBypass() { return Codegen.optional(this.expressRouteGatewayBypass); } /** * 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 provisioning state of the express route connection resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the express route connection resource. * */ public Output provisioningState() { return this.provisioningState; } /** * The Routing Configuration indicating the associated and propagated route tables on this connection. * */ @Export(name="routingConfiguration", refs={RoutingConfigurationResponse.class}, tree="[0]") private Output routingConfiguration; /** * @return The Routing Configuration indicating the associated and propagated route tables on this connection. * */ public Output> routingConfiguration() { return Codegen.optional(this.routingConfiguration); } /** * The routing weight associated to the connection. * */ @Export(name="routingWeight", refs={Integer.class}, tree="[0]") private Output routingWeight; /** * @return The routing weight associated to the connection. * */ public Output> routingWeight() { return Codegen.optional(this.routingWeight); } /** * * @param name The _unique_ name of the resulting resource. */ public ExpressRouteConnection(java.lang.String name) { this(name, ExpressRouteConnectionArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ExpressRouteConnection(java.lang.String name, ExpressRouteConnectionArgs 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 ExpressRouteConnection(java.lang.String name, ExpressRouteConnectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:ExpressRouteConnection", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ExpressRouteConnection(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:ExpressRouteConnection", name, null, makeResourceOptions(options, id), false); } private static ExpressRouteConnectionArgs makeArgs(ExpressRouteConnectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ExpressRouteConnectionArgs.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:network/v20180801:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20181001:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20181101:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20181201:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20190201:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20190401:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20190601:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20190701:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20190801:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20190901:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20191101:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20191201:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20200301:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20200401:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20200501:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20200601:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20200701:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20200801:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20201101:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20210201:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20210301:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20210501:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20210801:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20220101:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20220501:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20220701:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20220901:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20221101:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20230201:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20230401:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20230501:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20230601:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20230901:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20231101:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20240101:ExpressRouteConnection").build()), Output.of(Alias.builder().type("azure-native:network/v20240301:ExpressRouteConnection").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 ExpressRouteConnection get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ExpressRouteConnection(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy