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

com.pulumi.azurenative.network.ExpressRouteCrossConnectionPeering 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.ExpressRouteCrossConnectionPeeringArgs;
import com.pulumi.azurenative.network.outputs.ExpressRouteCircuitPeeringConfigResponse;
import com.pulumi.azurenative.network.outputs.Ipv6ExpressRouteCircuitPeeringConfigResponse;
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 ExpressRoute Cross Connection resource.
 * Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
 * 
 * Other available API versions: 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
 * ### ExpressRouteCrossConnectionBgpPeeringCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.ExpressRouteCrossConnectionPeering;
 * import com.pulumi.azurenative.network.ExpressRouteCrossConnectionPeeringArgs;
 * import com.pulumi.azurenative.network.inputs.Ipv6ExpressRouteCircuitPeeringConfigArgs;
 * 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 expressRouteCrossConnectionPeering = new ExpressRouteCrossConnectionPeering("expressRouteCrossConnectionPeering", ExpressRouteCrossConnectionPeeringArgs.builder()
 *             .crossConnectionName("")
 *             .ipv6PeeringConfig(Ipv6ExpressRouteCircuitPeeringConfigArgs.builder()
 *                 .primaryPeerAddressPrefix("3FFE:FFFF:0:CD30::/126")
 *                 .secondaryPeerAddressPrefix("3FFE:FFFF:0:CD30::4/126")
 *                 .build())
 *             .peerASN(200)
 *             .peeringName("AzurePrivatePeering")
 *             .primaryPeerAddressPrefix("192.168.16.252/30")
 *             .resourceGroupName("CrossConnection-SiliconValley")
 *             .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:ExpressRouteCrossConnectionPeering AzurePrivatePeering /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName} * ``` * */ @ResourceType(type="azure-native:network:ExpressRouteCrossConnectionPeering") public class ExpressRouteCrossConnectionPeering 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 this.azureASN; } /** * 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 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 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 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 cross connection peering resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the express route cross connection peering resource. * */ public Output provisioningState() { return this.provisioningState; } /** * The secondary port. * */ @Export(name="secondaryAzurePort", refs={String.class}, tree="[0]") private Output secondaryAzurePort; /** * @return The secondary port. * */ public Output secondaryAzurePort() { return 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 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 ExpressRouteCrossConnectionPeering(java.lang.String name) { this(name, ExpressRouteCrossConnectionPeeringArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ExpressRouteCrossConnectionPeering(java.lang.String name, ExpressRouteCrossConnectionPeeringArgs 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 ExpressRouteCrossConnectionPeering(java.lang.String name, ExpressRouteCrossConnectionPeeringArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:ExpressRouteCrossConnectionPeering", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ExpressRouteCrossConnectionPeering(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:ExpressRouteCrossConnectionPeering", name, null, makeResourceOptions(options, id), false); } private static ExpressRouteCrossConnectionPeeringArgs makeArgs(ExpressRouteCrossConnectionPeeringArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ExpressRouteCrossConnectionPeeringArgs.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/v20180201:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20180401:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20180601:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20180701:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20180801:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20181001:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20181101:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20181201:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190201:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190401:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190601:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190701:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190801:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20190901:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20191101:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20191201:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200301:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200401:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200501:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200601:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200701:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20200801:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20201101:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20210201:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20210301:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20210501:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20210801:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20220101:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20220501:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20220701:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20220901:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20221101:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20230201:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20230401:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20230501:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20230601:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20230901:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20231101:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20240101:ExpressRouteCrossConnectionPeering").build()), Output.of(Alias.builder().type("azure-native:network/v20240301:ExpressRouteCrossConnectionPeering").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 ExpressRouteCrossConnectionPeering get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ExpressRouteCrossConnectionPeering(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy