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

com.pulumi.azurenative.network.ExpressRouteCircuitPeering 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.network;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.network.ExpressRouteCircuitPeeringArgs;
import com.pulumi.azurenative.network.outputs.ExpressRouteCircuitConnectionResponse;
import com.pulumi.azurenative.network.outputs.ExpressRouteCircuitPeeringConfigResponse;
import com.pulumi.azurenative.network.outputs.ExpressRouteCircuitStatsResponse;
import com.pulumi.azurenative.network.outputs.ExpressRouteConnectionIdResponse;
import com.pulumi.azurenative.network.outputs.Ipv6ExpressRouteCircuitPeeringConfigResponse;
import com.pulumi.azurenative.network.outputs.PeerExpressRouteCircuitConnectionResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
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.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Peering in an ExpressRouteCircuit resource.
 * Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
 * 
 * Other available API versions: 2017-09-01, 2019-02-01, 2019-06-01, 2019-08-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.
 * 
 * ## Example Usage
 * ### Create ExpressRouteCircuit Peerings
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.ExpressRouteCircuitPeering;
 * import com.pulumi.azurenative.network.ExpressRouteCircuitPeeringArgs;
 * 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 expressRouteCircuitPeering = new ExpressRouteCircuitPeering("expressRouteCircuitPeering", ExpressRouteCircuitPeeringArgs.builder()
 *             .circuitName("circuitName")
 *             .peerASN(200)
 *             .peeringName("AzurePrivatePeering")
 *             .primaryPeerAddressPrefix("192.168.16.252/30")
 *             .resourceGroupName("rg1")
 *             .secondaryPeerAddressPrefix("192.168.18.252/30")
 *             .vlanId(200)
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:network:ExpressRouteCircuitPeering AzurePrivatePeering /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName} * ``` * */ @ResourceType(type="azure-native:network:ExpressRouteCircuitPeering") public class ExpressRouteCircuitPeering extends com.pulumi.resources.CustomResource { /** * The Azure ASN. * */ @Export(name="azureASN", refs={Integer.class}, tree="[0]") private Output azureASN; /** * @return The Azure ASN. * */ public Output> azureASN() { return Codegen.optional(this.azureASN); } /** * The list of circuit connections associated with Azure Private Peering for this circuit. * */ @Export(name="connections", refs={List.class,ExpressRouteCircuitConnectionResponse.class}, tree="[0,1]") private Output> connections; /** * @return The list of circuit connections associated with Azure Private Peering for this circuit. * */ public Output>> connections() { return Codegen.optional(this.connections); } /** * A unique read-only string that changes whenever the resource is updated. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return A unique read-only string that changes whenever the resource is updated. * */ public Output etag() { return this.etag; } /** * The ExpressRoute connection. * */ @Export(name="expressRouteConnection", refs={ExpressRouteConnectionIdResponse.class}, tree="[0]") private Output expressRouteConnection; /** * @return The ExpressRoute connection. * */ public Output> expressRouteConnection() { return Codegen.optional(this.expressRouteConnection); } /** * The GatewayManager Etag. * */ @Export(name="gatewayManagerEtag", refs={String.class}, tree="[0]") private Output gatewayManagerEtag; /** * @return The GatewayManager Etag. * */ public Output> gatewayManagerEtag() { return Codegen.optional(this.gatewayManagerEtag); } /** * The IPv6 peering configuration. * */ @Export(name="ipv6PeeringConfig", refs={Ipv6ExpressRouteCircuitPeeringConfigResponse.class}, tree="[0]") private Output ipv6PeeringConfig; /** * @return The IPv6 peering configuration. * */ public Output> ipv6PeeringConfig() { return Codegen.optional(this.ipv6PeeringConfig); } /** * Who was the last to modify the peering. * */ @Export(name="lastModifiedBy", refs={String.class}, tree="[0]") private Output lastModifiedBy; /** * @return Who was the last to modify the peering. * */ public Output lastModifiedBy() { return this.lastModifiedBy; } /** * The Microsoft peering configuration. * */ @Export(name="microsoftPeeringConfig", refs={ExpressRouteCircuitPeeringConfigResponse.class}, tree="[0]") private Output microsoftPeeringConfig; /** * @return The Microsoft peering configuration. * */ public Output> microsoftPeeringConfig() { return Codegen.optional(this.microsoftPeeringConfig); } /** * The name of the resource that is unique within a resource group. This name can be used to access the resource. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource that is unique within a resource group. This name can be used to access the resource. * */ public Output> name() { return Codegen.optional(this.name); } /** * The peer ASN. * */ @Export(name="peerASN", refs={Double.class}, tree="[0]") private Output peerASN; /** * @return The peer ASN. * */ public Output> peerASN() { return Codegen.optional(this.peerASN); } /** * The list of peered circuit connections associated with Azure Private Peering for this circuit. * */ @Export(name="peeredConnections", refs={List.class,PeerExpressRouteCircuitConnectionResponse.class}, tree="[0,1]") private Output> peeredConnections; /** * @return The list of peered circuit connections associated with Azure Private Peering for this circuit. * */ public Output> peeredConnections() { return this.peeredConnections; } /** * The peering type. * */ @Export(name="peeringType", refs={String.class}, tree="[0]") private Output peeringType; /** * @return The peering type. * */ public Output> peeringType() { return Codegen.optional(this.peeringType); } /** * The primary port. * */ @Export(name="primaryAzurePort", refs={String.class}, tree="[0]") private Output primaryAzurePort; /** * @return The primary port. * */ public Output> primaryAzurePort() { return Codegen.optional(this.primaryAzurePort); } /** * The primary address prefix. * */ @Export(name="primaryPeerAddressPrefix", refs={String.class}, tree="[0]") private Output primaryPeerAddressPrefix; /** * @return The primary address prefix. * */ public Output> primaryPeerAddressPrefix() { return Codegen.optional(this.primaryPeerAddressPrefix); } /** * The provisioning state of the express route circuit peering resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the express route circuit peering resource. * */ public Output provisioningState() { return this.provisioningState; } /** * The reference to the RouteFilter resource. * */ @Export(name="routeFilter", refs={SubResourceResponse.class}, tree="[0]") private Output routeFilter; /** * @return The reference to the RouteFilter resource. * */ public Output> routeFilter() { return Codegen.optional(this.routeFilter); } /** * The secondary port. * */ @Export(name="secondaryAzurePort", refs={String.class}, tree="[0]") private Output secondaryAzurePort; /** * @return The secondary port. * */ public Output> secondaryAzurePort() { return Codegen.optional(this.secondaryAzurePort); } /** * The secondary address prefix. * */ @Export(name="secondaryPeerAddressPrefix", refs={String.class}, tree="[0]") private Output secondaryPeerAddressPrefix; /** * @return The secondary address prefix. * */ public Output> secondaryPeerAddressPrefix() { return Codegen.optional(this.secondaryPeerAddressPrefix); } /** * The shared key. * */ @Export(name="sharedKey", refs={String.class}, tree="[0]") private Output sharedKey; /** * @return The shared key. * */ public Output> sharedKey() { return Codegen.optional(this.sharedKey); } /** * The peering state. * */ @Export(name="state", refs={String.class}, tree="[0]") private Output state; /** * @return The peering state. * */ public Output> state() { return Codegen.optional(this.state); } /** * The peering stats of express route circuit. * */ @Export(name="stats", refs={ExpressRouteCircuitStatsResponse.class}, tree="[0]") private Output stats; /** * @return The peering stats of express route circuit. * */ public Output> stats() { return Codegen.optional(this.stats); } /** * Type of the resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Type of the resource. * */ public Output type() { return this.type; } /** * The VLAN ID. * */ @Export(name="vlanId", refs={Integer.class}, tree="[0]") private Output vlanId; /** * @return The VLAN ID. * */ public Output> vlanId() { return Codegen.optional(this.vlanId); } /** * * @param name The _unique_ name of the resulting resource. */ public ExpressRouteCircuitPeering(java.lang.String name) { this(name, ExpressRouteCircuitPeeringArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ExpressRouteCircuitPeering(java.lang.String name, ExpressRouteCircuitPeeringArgs 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 ExpressRouteCircuitPeering(java.lang.String name, ExpressRouteCircuitPeeringArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:ExpressRouteCircuitPeering", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ExpressRouteCircuitPeering(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:ExpressRouteCircuitPeering", name, null, makeResourceOptions(options, id), false); } private static ExpressRouteCircuitPeeringArgs makeArgs(ExpressRouteCircuitPeeringArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ExpressRouteCircuitPeeringArgs.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/v20150501preview:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20150615:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20160330:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20160601:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20160901:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20161201:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20170301:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20170601:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20170801:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20170901:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20171001:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20171101:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20180101:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20180201:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20180401:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20180601:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20180701:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20180801:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20181001:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20181101:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20181201:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190201:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190401:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190601:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190701:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190801:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190901:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20191101:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20191201:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200301:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200401:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200501:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200601:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200701:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200801:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20201101:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20210201:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20210301:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20210501:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20210801:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20220101:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20220501:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20220701:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20220901:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20221101:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20230201:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20230401:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20230501:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20230601:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20230901:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20231101:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20240101:ExpressRouteCircuitPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20240301:ExpressRouteCircuitPeering").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 ExpressRouteCircuitPeering get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ExpressRouteCircuitPeering(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy