com.pulumi.azurenative.managednetworkfabric.InternalNetwork 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.
The 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.managednetworkfabric;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.managednetworkfabric.InternalNetworkArgs;
import com.pulumi.azurenative.managednetworkfabric.outputs.BgpConfigurationResponse;
import com.pulumi.azurenative.managednetworkfabric.outputs.ConnectedSubnetResponse;
import com.pulumi.azurenative.managednetworkfabric.outputs.StaticRouteConfigurationResponse;
import com.pulumi.azurenative.managednetworkfabric.outputs.SystemDataResponse;
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.Optional;
import javax.annotation.Nullable;
/**
* Defines the InternalNetwork item.
* 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
* ### InternalNetworks_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.InternalNetwork;
* import com.pulumi.azurenative.managednetworkfabric.InternalNetworkArgs;
* import com.pulumi.azurenative.managednetworkfabric.inputs.BgpConfigurationArgs;
* import com.pulumi.azurenative.managednetworkfabric.inputs.ConnectedSubnetArgs;
* import com.pulumi.azurenative.managednetworkfabric.inputs.StaticRouteConfigurationArgs;
* 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 internalNetwork = new InternalNetwork("internalNetwork", InternalNetworkArgs.builder()
* .bgpConfiguration(BgpConfigurationArgs.builder()
* .allowAS(1)
* .allowASOverride("Enable")
* .defaultRouteOriginate("True")
* .ipv4ListenRangePrefixes("10.1.0.0/25")
* .ipv4NeighborAddress(NeighborAddressArgs.builder()
* .address("10.1.0.0")
* .build())
* .ipv6ListenRangePrefixes("2fff::/66")
* .ipv6NeighborAddress(NeighborAddressArgs.builder()
* .address("2fff::")
* .build())
* .peerASN(6)
* .build())
* .connectedIPv4Subnets(ConnectedSubnetArgs.builder()
* .prefix("10.0.0.0/24")
* .build())
* .connectedIPv6Subnets(ConnectedSubnetArgs.builder()
* .prefix("3FFE:FFFF:0:CD30::a0/29")
* .build())
* .exportRoutePolicyId("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2")
* .importRoutePolicyId("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1")
* .internalNetworkName("example-internalnetwork")
* .l3IsolationDomainName("example-l3domain")
* .mtu(1500)
* .resourceGroupName("resourceGroupName")
* .staticRouteConfiguration(StaticRouteConfigurationArgs.builder()
* .ipv4Routes(StaticRoutePropertiesArgs.builder()
* .nextHop("10.0.0.1")
* .prefix("10.1.0.0/24")
* .build())
* .ipv6Routes(StaticRoutePropertiesArgs.builder()
* .nextHop("2ffe::1")
* .prefix("2fff::/64")
* .build())
* .build())
* .vlanId(501)
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:managednetworkfabric:InternalNetwork example-externalnetwork /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}
* ```
*
*/
@ResourceType(type="azure-native:managednetworkfabric:InternalNetwork")
public class InternalNetwork extends com.pulumi.resources.CustomResource {
/**
* Administrative state of the InternalNetwork. Example: Enabled | Disabled.
*
*/
@Export(name="administrativeState", refs={String.class}, tree="[0]")
private Output administrativeState;
/**
* @return Administrative state of the InternalNetwork. Example: Enabled | Disabled.
*
*/
public Output administrativeState() {
return this.administrativeState;
}
/**
* 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);
}
/**
* List of resources the BFD for BGP is disabled on. Can be either entire NetworkFabric or NetworkRack.
*
*/
@Export(name="bfdDisabledOnResources", refs={List.class,String.class}, tree="[0,1]")
private Output> bfdDisabledOnResources;
/**
* @return List of resources the BFD for BGP is disabled on. Can be either entire NetworkFabric or NetworkRack.
*
*/
public Output> bfdDisabledOnResources() {
return this.bfdDisabledOnResources;
}
/**
* List of resources the BFD of StaticRoutes is disabled on. Can be either entire NetworkFabric or NetworkRack.
*
*/
@Export(name="bfdForStaticRoutesDisabledOnResources", refs={List.class,String.class}, tree="[0,1]")
private Output> bfdForStaticRoutesDisabledOnResources;
/**
* @return List of resources the BFD of StaticRoutes is disabled on. Can be either entire NetworkFabric or NetworkRack.
*
*/
public Output> bfdForStaticRoutesDisabledOnResources() {
return this.bfdForStaticRoutesDisabledOnResources;
}
/**
* BGP configuration properties
*
*/
@Export(name="bgpConfiguration", refs={BgpConfigurationResponse.class}, tree="[0]")
private Output* @Nullable */ BgpConfigurationResponse> bgpConfiguration;
/**
* @return BGP configuration properties
*
*/
public Output> bgpConfiguration() {
return Codegen.optional(this.bgpConfiguration);
}
/**
* List of resources the BGP is disabled on. Can be either entire NetworkFabric or NetworkRack.
*
*/
@Export(name="bgpDisabledOnResources", refs={List.class,String.class}, tree="[0,1]")
private Output> bgpDisabledOnResources;
/**
* @return List of resources the BGP is disabled on. Can be either entire NetworkFabric or NetworkRack.
*
*/
public Output> bgpDisabledOnResources() {
return this.bgpDisabledOnResources;
}
/**
* List with object connected IPv4 Subnets.
*
*/
@Export(name="connectedIPv4Subnets", refs={List.class,ConnectedSubnetResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> connectedIPv4Subnets;
/**
* @return List with object connected IPv4 Subnets.
*
*/
public Output>> connectedIPv4Subnets() {
return Codegen.optional(this.connectedIPv4Subnets);
}
/**
* List with object connected IPv6 Subnets.
*
*/
@Export(name="connectedIPv6Subnets", refs={List.class,ConnectedSubnetResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> connectedIPv6Subnets;
/**
* @return List with object connected IPv6 Subnets.
*
*/
public Output>> connectedIPv6Subnets() {
return Codegen.optional(this.connectedIPv6Subnets);
}
/**
* List of resources the InternalNetwork is disabled on. Can be either entire NetworkFabric or NetworkRack.
*
*/
@Export(name="disabledOnResources", refs={List.class,String.class}, tree="[0,1]")
private Output> disabledOnResources;
/**
* @return List of resources the InternalNetwork is disabled on. Can be either entire NetworkFabric or NetworkRack.
*
*/
public Output> disabledOnResources() {
return this.disabledOnResources;
}
/**
* ARM resource ID of importRoutePolicy.
*
*/
@Export(name="exportRoutePolicyId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> exportRoutePolicyId;
/**
* @return ARM resource ID of importRoutePolicy.
*
*/
public Output> exportRoutePolicyId() {
return Codegen.optional(this.exportRoutePolicyId);
}
/**
* ARM resource ID of importRoutePolicy.
*
*/
@Export(name="importRoutePolicyId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> importRoutePolicyId;
/**
* @return ARM resource ID of importRoutePolicy.
*
*/
public Output> importRoutePolicyId() {
return Codegen.optional(this.importRoutePolicyId);
}
/**
* Maximum transmission unit. Default value is 1500.
*
*/
@Export(name="mtu", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> mtu;
/**
* @return Maximum transmission unit. Default value is 1500.
*
*/
public Output> mtu() {
return Codegen.optional(this.mtu);
}
/**
* 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;
}
/**
* 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;
}
/**
* Static Route Configuration properties.
*
*/
@Export(name="staticRouteConfiguration", refs={StaticRouteConfigurationResponse.class}, tree="[0]")
private Output* @Nullable */ StaticRouteConfigurationResponse> staticRouteConfiguration;
/**
* @return Static Route Configuration properties.
*
*/
public Output> staticRouteConfiguration() {
return Codegen.optional(this.staticRouteConfiguration);
}
/**
* 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;
}
/**
* 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;
}
/**
* Vlan identifier. Example: 1001.
*
*/
@Export(name="vlanId", refs={Integer.class}, tree="[0]")
private Output vlanId;
/**
* @return Vlan identifier. Example: 1001.
*
*/
public Output vlanId() {
return this.vlanId;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public InternalNetwork(java.lang.String name) {
this(name, InternalNetworkArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public InternalNetwork(java.lang.String name, InternalNetworkArgs 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 InternalNetwork(java.lang.String name, InternalNetworkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:managednetworkfabric:InternalNetwork", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private InternalNetwork(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:managednetworkfabric:InternalNetwork", name, null, makeResourceOptions(options, id), false);
}
private static InternalNetworkArgs makeArgs(InternalNetworkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? InternalNetworkArgs.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:InternalNetwork").build()),
Output.of(Alias.builder().type("azure-native:managednetworkfabric/v20230615:InternalNetwork").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 InternalNetwork get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new InternalNetwork(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy