
com.pulumi.azurenative.managednetworkfabric.NetworkFabric Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.managednetworkfabric;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.managednetworkfabric.NetworkFabricArgs;
import com.pulumi.azurenative.managednetworkfabric.outputs.ManagementNetworkConfigurationResponse;
import com.pulumi.azurenative.managednetworkfabric.outputs.SystemDataResponse;
import com.pulumi.azurenative.managednetworkfabric.outputs.TerminalServerConfigurationResponse;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* The NetworkFabric resource definition.
* Azure REST API version: 2023-02-01-preview. Prior API version in Azure Native 1.x: 2023-02-01-preview.
*
* Other available API versions: 2023-06-15.
*
* ## Example Usage
* ### NetworkFabrics_Create_MaximumSet_Gen
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.managednetworkfabric.NetworkFabric;
* import com.pulumi.azurenative.managednetworkfabric.NetworkFabricArgs;
* import com.pulumi.azurenative.managednetworkfabric.inputs.ManagementNetworkConfigurationArgs;
* import com.pulumi.azurenative.managednetworkfabric.inputs.VpnConfigurationPropertiesArgs;
* import com.pulumi.azurenative.managednetworkfabric.inputs.OptionAPropertiesArgs;
* import com.pulumi.azurenative.managednetworkfabric.inputs.FabricOptionBPropertiesArgs;
* import com.pulumi.azurenative.managednetworkfabric.inputs.TerminalServerConfigurationArgs;
* 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 networkFabric = new NetworkFabric("networkFabric", NetworkFabricArgs.builder()
* .annotation("annotationValue")
* .fabricASN(29249)
* .ipv4Prefix("10.18.0.0/19")
* .ipv6Prefix("3FFE:FFFF:0:CD40::/59")
* .location("eastuseuap")
* .managementNetworkConfiguration(ManagementNetworkConfigurationArgs.builder()
* .infrastructureVpnConfiguration(VpnConfigurationPropertiesArgs.builder()
* .optionAProperties(OptionAPropertiesArgs.builder()
* .mtu(5892)
* .peerASN(42666)
* .primaryIpv4Prefix("20.0.0.12/30")
* .primaryIpv6Prefix("3FFE:FFFF:0:CD30::a8/126")
* .secondaryIpv4Prefix("20.0.0.13/30")
* .secondaryIpv6Prefix("3FFE:FFFF:0:CD30::ac/126")
* .vlanId(2724)
* .build())
* .optionBProperties(FabricOptionBPropertiesArgs.builder()
* .exportRouteTargets("65046:10039")
* .importRouteTargets("65046:10039")
* .build())
* .peeringOption("OptionA")
* .build())
* .workloadVpnConfiguration(VpnConfigurationPropertiesArgs.builder()
* .optionAProperties(OptionAPropertiesArgs.builder()
* .mtu(5892)
* .peerASN(42666)
* .primaryIpv4Prefix("10.0.0.14/30")
* .primaryIpv6Prefix("2FFE:FFFF:0:CD30::a7/126")
* .secondaryIpv4Prefix("10.0.0.15/30")
* .secondaryIpv6Prefix("2FFE:FFFF:0:CD30::ac/126")
* .vlanId(2724)
* .build())
* .optionBProperties(FabricOptionBPropertiesArgs.builder()
* .exportRouteTargets("65046:10050")
* .importRouteTargets("65046:10050")
* .build())
* .peeringOption("OptionA")
* .build())
* .build())
* .networkFabricControllerId("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName")
* .networkFabricName("FabricName")
* .networkFabricSku("M4-A400-A100-C16-aa")
* .rackCount(4)
* .resourceGroupName("resourceGroupName")
* .serverCountPerRack(8)
* .tags(Map.of("key6468", ""))
* .terminalServerConfiguration(TerminalServerConfigurationArgs.builder()
* .password("xxxx")
* .primaryIpv4Prefix("20.0.0.12/30")
* .primaryIpv6Prefix("3FFE:FFFF:0:CD30::a8/126")
* .secondaryIpv4Prefix("20.0.0.13/30")
* .secondaryIpv6Prefix("3FFE:FFFF:0:CD30::ac/126")
* .serialNumber("123456")
* .username("username")
* .build())
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:managednetworkfabric:NetworkFabric FabricName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}
* ```
*
*/
@ResourceType(type="azure-native:managednetworkfabric:NetworkFabric")
public class NetworkFabric extends com.pulumi.resources.CustomResource {
/**
* Switch configuration description.
*
*/
@Export(name="annotation", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> annotation;
/**
* @return Switch configuration description.
*
*/
public Output> annotation() {
return Codegen.optional(this.annotation);
}
/**
* ASN of CE devices for CE/PE connectivity.
*
*/
@Export(name="fabricASN", refs={Integer.class}, tree="[0]")
private Output fabricASN;
/**
* @return ASN of CE devices for CE/PE connectivity.
*
*/
public Output fabricASN() {
return this.fabricASN;
}
/**
* IPv4Prefix for Management Network. Example: 10.1.0.0/19.
*
*/
@Export(name="ipv4Prefix", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> ipv4Prefix;
/**
* @return IPv4Prefix for Management Network. Example: 10.1.0.0/19.
*
*/
public Output> ipv4Prefix() {
return Codegen.optional(this.ipv4Prefix);
}
/**
* IPv6Prefix for Management Network. Example: 3FFE:FFFF:0:CD40::/59.
*
*/
@Export(name="ipv6Prefix", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> ipv6Prefix;
/**
* @return IPv6Prefix for Management Network. Example: 3FFE:FFFF:0:CD40::/59.
*
*/
public Output> ipv6Prefix() {
return Codegen.optional(this.ipv6Prefix);
}
/**
* List of L2IsolationDomain resource IDs under the Network Fabric.
*
*/
@Export(name="l2IsolationDomains", refs={List.class,String.class}, tree="[0,1]")
private Output> l2IsolationDomains;
/**
* @return List of L2IsolationDomain resource IDs under the Network Fabric.
*
*/
public Output> l2IsolationDomains() {
return this.l2IsolationDomains;
}
/**
* List of L3IsolationDomain resource IDs under the Network Fabric.
*
*/
@Export(name="l3IsolationDomains", refs={List.class,String.class}, tree="[0,1]")
private Output> l3IsolationDomains;
/**
* @return List of L3IsolationDomain resource IDs under the Network Fabric.
*
*/
public Output> l3IsolationDomains() {
return this.l3IsolationDomains;
}
/**
* The geo-location where the resource lives
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The geo-location where the resource lives
*
*/
public Output location() {
return this.location;
}
/**
* Configuration to be used to setup the management network.
*
*/
@Export(name="managementNetworkConfiguration", refs={ManagementNetworkConfigurationResponse.class}, tree="[0]")
private Output managementNetworkConfiguration;
/**
* @return Configuration to be used to setup the management network.
*
*/
public Output managementNetworkConfiguration() {
return this.managementNetworkConfiguration;
}
/**
* 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;
}
/**
* Azure resource ID for the NetworkFabricController the NetworkFabric belongs.
*
*/
@Export(name="networkFabricControllerId", refs={String.class}, tree="[0]")
private Output networkFabricControllerId;
/**
* @return Azure resource ID for the NetworkFabricController the NetworkFabric belongs.
*
*/
public Output networkFabricControllerId() {
return this.networkFabricControllerId;
}
/**
* Supported Network Fabric SKU.Example: Compute / Aggregate racks. Once the user chooses a particular SKU, only supported racks can be added to the Network Fabric. The SKU determines whether it is a single / multi rack Network Fabric.
*
*/
@Export(name="networkFabricSku", refs={String.class}, tree="[0]")
private Output networkFabricSku;
/**
* @return Supported Network Fabric SKU.Example: Compute / Aggregate racks. Once the user chooses a particular SKU, only supported racks can be added to the Network Fabric. The SKU determines whether it is a single / multi rack Network Fabric.
*
*/
public Output networkFabricSku() {
return this.networkFabricSku;
}
/**
* Gets the operational state of the resource.
*
*/
@Export(name="operationalState", refs={String.class}, tree="[0]")
private Output operationalState;
/**
* @return Gets the operational state of the resource.
*
*/
public Output operationalState() {
return this.operationalState;
}
/**
* Gets the provisioning state of the resource.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return Gets the provisioning state of the resource.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Number of racks associated to Network Fabric.Possible values are from 2-8.
*
*/
@Export(name="rackCount", refs={Integer.class}, tree="[0]")
private Output rackCount;
/**
* @return Number of racks associated to Network Fabric.Possible values are from 2-8.
*
*/
public Output rackCount() {
return this.rackCount;
}
/**
* List of NetworkRack resource IDs under the Network Fabric. The number of racks allowed depends on the Network Fabric SKU.
*
*/
@Export(name="racks", refs={List.class,String.class}, tree="[0,1]")
private Output> racks;
/**
* @return List of NetworkRack resource IDs under the Network Fabric. The number of racks allowed depends on the Network Fabric SKU.
*
*/
public Output> racks() {
return this.racks;
}
/**
* Router Id of CE to be used for MP-BGP between PE and CE
*
*/
@Export(name="routerId", refs={String.class}, tree="[0]")
private Output routerId;
/**
* @return Router Id of CE to be used for MP-BGP between PE and CE
*
*/
public Output routerId() {
return this.routerId;
}
/**
* Number of servers.Possible values are from 1-16.
*
*/
@Export(name="serverCountPerRack", refs={Integer.class}, tree="[0]")
private Output serverCountPerRack;
/**
* @return Number of servers.Possible values are from 1-16.
*
*/
public Output serverCountPerRack() {
return this.serverCountPerRack;
}
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* Resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Network and credentials configuration currently applied to terminal server.
*
*/
@Export(name="terminalServerConfiguration", refs={TerminalServerConfigurationResponse.class}, tree="[0]")
private Output terminalServerConfiguration;
/**
* @return Network and credentials configuration currently applied to terminal server.
*
*/
public Output terminalServerConfiguration() {
return this.terminalServerConfiguration;
}
/**
* 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;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public NetworkFabric(java.lang.String name) {
this(name, NetworkFabricArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public NetworkFabric(java.lang.String name, NetworkFabricArgs 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 NetworkFabric(java.lang.String name, NetworkFabricArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:managednetworkfabric:NetworkFabric", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private NetworkFabric(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:managednetworkfabric:NetworkFabric", name, null, makeResourceOptions(options, id), false);
}
private static NetworkFabricArgs makeArgs(NetworkFabricArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? NetworkFabricArgs.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:managednetworkfabric/v20230201preview:NetworkFabric").build()),
Output.of(Alias.builder().type("azure-native:managednetworkfabric/v20230615:NetworkFabric").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 NetworkFabric get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new NetworkFabric(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy