com.pulumi.azure.network.ExpressRoutePort Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.network;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.network.ExpressRoutePortArgs;
import com.pulumi.azure.network.inputs.ExpressRoutePortState;
import com.pulumi.azure.network.outputs.ExpressRoutePortIdentity;
import com.pulumi.azure.network.outputs.ExpressRoutePortLink1;
import com.pulumi.azure.network.outputs.ExpressRoutePortLink2;
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.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages a Express Route Port.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.network.ExpressRoutePort;
* import com.pulumi.azure.network.ExpressRoutePortArgs;
* 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West US")
* .build());
*
* var exampleExpressRoutePort = new ExpressRoutePort("exampleExpressRoutePort", ExpressRoutePortArgs.builder()
* .name("port1")
* .resourceGroupName(example.name())
* .location(example.location())
* .peeringLocation("Airtel-Chennai-CLS")
* .bandwidthInGbps(10)
* .encapsulation("Dot1Q")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Express Route Ports can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:network/expressRoutePort:ExpressRoutePort example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/expressRoutePorts/port1
* ```
*
*/
@ResourceType(type="azure:network/expressRoutePort:ExpressRoutePort")
public class ExpressRoutePort extends com.pulumi.resources.CustomResource {
/**
* Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
*
*/
@Export(name="bandwidthInGbps", refs={Integer.class}, tree="[0]")
private Output bandwidthInGbps;
/**
* @return Bandwidth of the Express Route Port in Gbps. Changing this forces a new Express Route Port to be created.
*
*/
public Output bandwidthInGbps() {
return this.bandwidthInGbps;
}
/**
* The billing type of the Express Route Port. Possible values are `MeteredData` and `UnlimitedData`. Defaults to `MeteredData`.
*
*/
@Export(name="billingType", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> billingType;
/**
* @return The billing type of the Express Route Port. Possible values are `MeteredData` and `UnlimitedData`. Defaults to `MeteredData`.
*
*/
public Output> billingType() {
return Codegen.optional(this.billingType);
}
/**
* The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: `Dot1Q`, `QinQ`.
*
*/
@Export(name="encapsulation", refs={String.class}, tree="[0]")
private Output encapsulation;
/**
* @return The encapsulation method used for the Express Route Port. Changing this forces a new Express Route Port to be created. Possible values are: `Dot1Q`, `QinQ`.
*
*/
public Output encapsulation() {
return this.encapsulation;
}
/**
* The EtherType of the Express Route Port.
*
*/
@Export(name="ethertype", refs={String.class}, tree="[0]")
private Output ethertype;
/**
* @return The EtherType of the Express Route Port.
*
*/
public Output ethertype() {
return this.ethertype;
}
/**
* The resource GUID of the Express Route Port.
*
*/
@Export(name="guid", refs={String.class}, tree="[0]")
private Output guid;
/**
* @return The resource GUID of the Express Route Port.
*
*/
public Output guid() {
return this.guid;
}
/**
* An `identity` block as defined below.
*
*/
@Export(name="identity", refs={ExpressRoutePortIdentity.class}, tree="[0]")
private Output* @Nullable */ ExpressRoutePortIdentity> identity;
/**
* @return An `identity` block as defined below.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* A list of `link` blocks as defined below.
*
*/
@Export(name="link1", refs={ExpressRoutePortLink1.class}, tree="[0]")
private Output link1;
/**
* @return A list of `link` blocks as defined below.
*
*/
public Output link1() {
return this.link1;
}
/**
* A list of `link` blocks as defined below.
*
*/
@Export(name="link2", refs={ExpressRoutePortLink2.class}, tree="[0]")
private Output link2;
/**
* @return A list of `link` blocks as defined below.
*
*/
public Output link2() {
return this.link2;
}
/**
* The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The Azure Region where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
*
*/
public Output location() {
return this.location;
}
/**
* The maximum transmission unit of the Express Route Port.
*
*/
@Export(name="mtu", refs={String.class}, tree="[0]")
private Output mtu;
/**
* @return The maximum transmission unit of the Express Route Port.
*
*/
public Output mtu() {
return this.mtu;
}
/**
* The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name which should be used for this Express Route Port. Changing this forces a new Express Route Port to be created.
*
*/
public Output name() {
return this.name;
}
/**
* The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
*
*/
@Export(name="peeringLocation", refs={String.class}, tree="[0]")
private Output peeringLocation;
/**
* @return The name of the peering location that this Express Route Port is physically mapped to. Changing this forces a new Express Route Port to be created.
*
*/
public Output peeringLocation() {
return this.peeringLocation;
}
/**
* The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return The name of the Resource Group where the Express Route Port should exist. Changing this forces a new Express Route Port to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* A mapping of tags which should be assigned to the Express Route Port.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A mapping of tags which should be assigned to the Express Route Port.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ExpressRoutePort(java.lang.String name) {
this(name, ExpressRoutePortArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ExpressRoutePort(java.lang.String name, ExpressRoutePortArgs 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 ExpressRoutePort(java.lang.String name, ExpressRoutePortArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:network/expressRoutePort:ExpressRoutePort", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ExpressRoutePort(java.lang.String name, Output id, @Nullable ExpressRoutePortState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:network/expressRoutePort:ExpressRoutePort", name, state, makeResourceOptions(options, id), false);
}
private static ExpressRoutePortArgs makeArgs(ExpressRoutePortArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ExpressRoutePortArgs.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())
.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 state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static ExpressRoutePort get(java.lang.String name, Output id, @Nullable ExpressRoutePortState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ExpressRoutePort(name, id, state, options);
}
}