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

com.pulumi.azurenative.mobilenetwork.AttachedDataNetwork Maven / Gradle / Ivy

// *** 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.mobilenetwork;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.mobilenetwork.AttachedDataNetworkArgs;
import com.pulumi.azurenative.mobilenetwork.outputs.InterfacePropertiesResponse;
import com.pulumi.azurenative.mobilenetwork.outputs.NaptConfigurationResponse;
import com.pulumi.azurenative.mobilenetwork.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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Attached data network resource. Must be created in the same location as its parent packet core data plane.
 * Azure REST API version: 2023-06-01. Prior API version in Azure Native 1.x: 2022-04-01-preview.
 * 
 * Other available API versions: 2022-04-01-preview, 2022-11-01, 2023-09-01, 2024-02-01, 2024-04-01.
 * 
 * ## Example Usage
 * ### Create attached data network
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.mobilenetwork.AttachedDataNetwork;
 * import com.pulumi.azurenative.mobilenetwork.AttachedDataNetworkArgs;
 * import com.pulumi.azurenative.mobilenetwork.inputs.NaptConfigurationArgs;
 * import com.pulumi.azurenative.mobilenetwork.inputs.PinholeTimeoutsArgs;
 * import com.pulumi.azurenative.mobilenetwork.inputs.PortRangeArgs;
 * import com.pulumi.azurenative.mobilenetwork.inputs.PortReuseHoldTimesArgs;
 * import com.pulumi.azurenative.mobilenetwork.inputs.InterfacePropertiesArgs;
 * 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 attachedDataNetwork = new AttachedDataNetwork("attachedDataNetwork", AttachedDataNetworkArgs.builder()
 *             .attachedDataNetworkName("TestAttachedDataNetwork")
 *             .dnsAddresses("1.1.1.1")
 *             .location("eastus")
 *             .naptConfiguration(NaptConfigurationArgs.builder()
 *                 .enabled("Enabled")
 *                 .pinholeLimits(65536)
 *                 .pinholeTimeouts(PinholeTimeoutsArgs.builder()
 *                     .icmp(30)
 *                     .tcp(180)
 *                     .udp(30)
 *                     .build())
 *                 .portRange(PortRangeArgs.builder()
 *                     .maxPort(49999)
 *                     .minPort(1024)
 *                     .build())
 *                 .portReuseHoldTime(PortReuseHoldTimesArgs.builder()
 *                     .tcp(120)
 *                     .udp(60)
 *                     .build())
 *                 .build())
 *             .packetCoreControlPlaneName("TestPacketCoreCP")
 *             .packetCoreDataPlaneName("TestPacketCoreDP")
 *             .resourceGroupName("rg1")
 *             .userEquipmentAddressPoolPrefix("2.2.0.0/16")
 *             .userEquipmentStaticAddressPoolPrefix("2.4.0.0/16")
 *             .userPlaneDataInterface(InterfacePropertiesArgs.builder()
 *                 .name("N6")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:mobilenetwork:AttachedDataNetwork TestAttachedDataNetwork /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks/{attachedDataNetworkName} * ``` * */ @ResourceType(type="azure-native:mobilenetwork:AttachedDataNetwork") public class AttachedDataNetwork extends com.pulumi.resources.CustomResource { /** * The DNS servers to signal to UEs to use for this attached data network. This configuration is mandatory - if you don't want DNS servers, you must provide an empty array. * */ @Export(name="dnsAddresses", refs={List.class,String.class}, tree="[0,1]") private Output> dnsAddresses; /** * @return The DNS servers to signal to UEs to use for this attached data network. This configuration is mandatory - if you don't want DNS servers, you must provide an empty array. * */ public Output> dnsAddresses() { return this.dnsAddresses; } /** * 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; } /** * 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; } /** * The network address and port translation (NAPT) configuration. * If this is not specified, the attached data network will use a default NAPT configuration with NAPT enabled. * */ @Export(name="naptConfiguration", refs={NaptConfigurationResponse.class}, tree="[0]") private Output naptConfiguration; /** * @return The network address and port translation (NAPT) configuration. * If this is not specified, the attached data network will use a default NAPT configuration with NAPT enabled. * */ public Output> naptConfiguration() { return Codegen.optional(this.naptConfiguration); } /** * The provisioning state of the attached data network resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the attached data network resource. * */ public Output provisioningState() { return this.provisioningState; } /** * 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> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * 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; } /** * The user equipment (UE) address pool prefixes for the attached data network from which the packet core instance will dynamically assign IP addresses to UEs. * The packet core instance assigns an IP address to a UE when the UE sets up a PDU session. * You must define at least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix. If you define both, they must be of the same size. * */ @Export(name="userEquipmentAddressPoolPrefix", refs={List.class,String.class}, tree="[0,1]") private Output> userEquipmentAddressPoolPrefix; /** * @return The user equipment (UE) address pool prefixes for the attached data network from which the packet core instance will dynamically assign IP addresses to UEs. * The packet core instance assigns an IP address to a UE when the UE sets up a PDU session. * You must define at least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix. If you define both, they must be of the same size. * */ public Output>> userEquipmentAddressPoolPrefix() { return Codegen.optional(this.userEquipmentAddressPoolPrefix); } /** * The user equipment (UE) address pool prefixes for the attached data network from which the packet core instance will assign static IP addresses to UEs. * The packet core instance assigns an IP address to a UE when the UE sets up a PDU session. The static IP address for a specific UE is set in StaticIPConfiguration on the corresponding SIM resource. * At least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined, they must be of the same size. * */ @Export(name="userEquipmentStaticAddressPoolPrefix", refs={List.class,String.class}, tree="[0,1]") private Output> userEquipmentStaticAddressPoolPrefix; /** * @return The user equipment (UE) address pool prefixes for the attached data network from which the packet core instance will assign static IP addresses to UEs. * The packet core instance assigns an IP address to a UE when the UE sets up a PDU session. The static IP address for a specific UE is set in StaticIPConfiguration on the corresponding SIM resource. * At least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined, they must be of the same size. * */ public Output>> userEquipmentStaticAddressPoolPrefix() { return Codegen.optional(this.userEquipmentStaticAddressPoolPrefix); } /** * The user plane interface on the data network. For 5G networks, this is the N6 interface. For 4G networks, this is the SGi interface. * */ @Export(name="userPlaneDataInterface", refs={InterfacePropertiesResponse.class}, tree="[0]") private Output userPlaneDataInterface; /** * @return The user plane interface on the data network. For 5G networks, this is the N6 interface. For 4G networks, this is the SGi interface. * */ public Output userPlaneDataInterface() { return this.userPlaneDataInterface; } /** * * @param name The _unique_ name of the resulting resource. */ public AttachedDataNetwork(java.lang.String name) { this(name, AttachedDataNetworkArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public AttachedDataNetwork(java.lang.String name, AttachedDataNetworkArgs 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 AttachedDataNetwork(java.lang.String name, AttachedDataNetworkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:mobilenetwork:AttachedDataNetwork", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private AttachedDataNetwork(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:mobilenetwork:AttachedDataNetwork", name, null, makeResourceOptions(options, id), false); } private static AttachedDataNetworkArgs makeArgs(AttachedDataNetworkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AttachedDataNetworkArgs.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:mobilenetwork/v20220301preview:AttachedDataNetwork").build()), Output.of(Alias.builder().type("azure-native:mobilenetwork/v20220401preview:AttachedDataNetwork").build()), Output.of(Alias.builder().type("azure-native:mobilenetwork/v20221101:AttachedDataNetwork").build()), Output.of(Alias.builder().type("azure-native:mobilenetwork/v20230601:AttachedDataNetwork").build()), Output.of(Alias.builder().type("azure-native:mobilenetwork/v20230901:AttachedDataNetwork").build()), Output.of(Alias.builder().type("azure-native:mobilenetwork/v20240201:AttachedDataNetwork").build()), Output.of(Alias.builder().type("azure-native:mobilenetwork/v20240401:AttachedDataNetwork").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 AttachedDataNetwork get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AttachedDataNetwork(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy