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

com.pulumi.azurenative.hybridnetwork.VendorSkus Maven / Gradle / Ivy

There is a newer version: 2.78.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.hybridnetwork;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.hybridnetwork.VendorSkusArgs;
import com.pulumi.azurenative.hybridnetwork.outputs.NetworkFunctionTemplateResponse;
import com.pulumi.azurenative.hybridnetwork.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.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Sku sub resource.
 * Azure REST API version: 2022-01-01-preview. Prior API version in Azure Native 1.x: 2020-01-01-preview.
 * 
 * ## Example Usage
 * ### Create or update the sku of vendor resource
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hybridnetwork.VendorSkus;
 * import com.pulumi.azurenative.hybridnetwork.VendorSkusArgs;
 * import com.pulumi.azurenative.hybridnetwork.inputs.NetworkFunctionTemplateArgs;
 * 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 }{{@code
 *     public static void main(String[] args) }{{@code
 *         Pulumi.run(App::stack);
 *     }}{@code
 * 
 *     public static void stack(Context ctx) }{{@code
 *         var vendorSkus = new VendorSkus("vendorSkus", VendorSkusArgs.builder()
 *             .deploymentMode("PrivateEdgeZone")
 *             .managedApplicationTemplate()
 *             .networkFunctionTemplate(NetworkFunctionTemplateArgs.builder()
 *                 .networkFunctionRoleConfigurations(NetworkFunctionRoleConfigurationArgs.builder()
 *                     .customProfile(CustomProfileArgs.builder()
 *                         .metadataConfigurationPath("/var/logs/network.cfg")
 *                         .build())
 *                     .networkInterfaces(                    
 *                         NetworkInterfaceArgs.builder()
 *                             .ipConfigurations(NetworkInterfaceIPConfigurationArgs.builder()
 *                                 .gateway("")
 *                                 .ipAddress("")
 *                                 .ipAllocationMethod("Dynamic")
 *                                 .ipVersion("IPv4")
 *                                 .subnet("")
 *                                 .build())
 *                             .macAddress("")
 *                             .networkInterfaceName("nic1")
 *                             .vmSwitchType("Wan")
 *                             .build(),
 *                         NetworkInterfaceArgs.builder()
 *                             .ipConfigurations(NetworkInterfaceIPConfigurationArgs.builder()
 *                                 .gateway("")
 *                                 .ipAddress("")
 *                                 .ipAllocationMethod("Dynamic")
 *                                 .ipVersion("IPv4")
 *                                 .subnet("")
 *                                 .build())
 *                             .macAddress("")
 *                             .networkInterfaceName("nic2")
 *                             .vmSwitchType("Management")
 *                             .build())
 *                     .osProfile(OsProfileArgs.builder()
 *                         .adminUsername("dummyuser")
 *                         .customData("base-64 encoded string of custom data")
 *                         .linuxConfiguration(LinuxConfigurationArgs.builder()
 *                             .ssh(SshConfigurationArgs.builder()
 *                                 .publicKeys(SshPublicKeyArgs.builder()
 *                                     .keyData("ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAwrr66r8n6B8Y0zMF3dOpXEapIQD9DiYQ6D6/zwor9o39jSkHNiMMER/GETBbzP83LOcekm02aRjo55ArO7gPPVvCXbrirJu9pkm4AC4BBre5xSLS= user}{@literal @}{@code constoso-DSH")
 *                                     .path("home/user/.ssh/authorized_keys")
 *                                     .build())
 *                                 .build())
 *                             .build())
 *                         .build())
 *                     .roleName("test")
 *                     .roleType("VirtualMachine")
 *                     .storageProfile(StorageProfileArgs.builder()
 *                         .dataDisks(DataDiskArgs.builder()
 *                             .createOption("Empty")
 *                             .diskSizeGB(10)
 *                             .name("DataDisk1")
 *                             .build())
 *                         .imageReference(ImageReferenceArgs.builder()
 *                             .offer("UbuntuServer")
 *                             .publisher("Canonical")
 *                             .sku("18.04-LTS")
 *                             .version("18.04.201804262")
 *                             .build())
 *                         .osDisk(OsDiskArgs.builder()
 *                             .diskSizeGB(30)
 *                             .name("vhdName")
 *                             .osType("Linux")
 *                             .vhd(VirtualHardDiskArgs.builder()
 *                                 .uri("https://contoso.net/link/vnd.vhd?sp=rl&st=2020-10-08T20:38:19Z&se=2020-12-09T19:38:00Z&sv=2019-12-12&sr=b&sig=7BM2f4yOw%3D")
 *                                 .build())
 *                             .build())
 *                         .build())
 *                     .virtualMachineSize("Standard_D3_v2")
 *                     .build())
 *                 .build())
 *             .networkFunctionType("VirtualNetworkFunction")
 *             .preview(true)
 *             .skuName("TestSku")
 *             .vendorName("TestVendor")
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:hybridnetwork:VendorSkus TestSku /subscriptions/{subscriptionId}/providers/Microsoft.HybridNetwork/vendors/{vendorName}/vendorSkus/{skuName} * ``` * */ @ResourceType(type="azure-native:hybridnetwork:VendorSkus") public class VendorSkus extends com.pulumi.resources.CustomResource { /** * The sku deployment mode. * */ @Export(name="deploymentMode", refs={String.class}, tree="[0]") private Output deploymentMode; /** * @return The sku deployment mode. * */ public Output> deploymentMode() { return Codegen.optional(this.deploymentMode); } /** * The parameters for the managed application to be supplied by the vendor. * */ @Export(name="managedApplicationParameters", refs={Object.class}, tree="[0]") private Output managedApplicationParameters; /** * @return The parameters for the managed application to be supplied by the vendor. * */ public Output> managedApplicationParameters() { return Codegen.optional(this.managedApplicationParameters); } /** * The template for the managed application deployment. * */ @Export(name="managedApplicationTemplate", refs={Object.class}, tree="[0]") private Output managedApplicationTemplate; /** * @return The template for the managed application deployment. * */ public Output> managedApplicationTemplate() { return Codegen.optional(this.managedApplicationTemplate); } /** * 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 template definition of the network function. * */ @Export(name="networkFunctionTemplate", refs={NetworkFunctionTemplateResponse.class}, tree="[0]") private Output networkFunctionTemplate; /** * @return The template definition of the network function. * */ public Output> networkFunctionTemplate() { return Codegen.optional(this.networkFunctionTemplate); } /** * The network function type. * */ @Export(name="networkFunctionType", refs={String.class}, tree="[0]") private Output networkFunctionType; /** * @return The network function type. * */ public Output> networkFunctionType() { return Codegen.optional(this.networkFunctionType); } /** * Indicates if the vendor sku is in preview mode. * */ @Export(name="preview", refs={Boolean.class}, tree="[0]") private Output preview; /** * @return Indicates if the vendor sku is in preview mode. * */ public Output> preview() { return Codegen.optional(this.preview); } /** * The provisioning state of the vendor sku sub resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the vendor sku sub resource. * */ public Output provisioningState() { return this.provisioningState; } /** * The sku type. * */ @Export(name="skuType", refs={String.class}, tree="[0]") private Output skuType; /** * @return The sku type. * */ public Output> skuType() { return Codegen.optional(this.skuType); } /** * The system meta data relating to this resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return The system meta data relating to this resource. * */ 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; } /** * * @param name The _unique_ name of the resulting resource. */ public VendorSkus(java.lang.String name) { this(name, VendorSkusArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public VendorSkus(java.lang.String name, VendorSkusArgs 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 VendorSkus(java.lang.String name, VendorSkusArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:hybridnetwork:VendorSkus", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private VendorSkus(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:hybridnetwork:VendorSkus", name, null, makeResourceOptions(options, id), false); } private static VendorSkusArgs makeArgs(VendorSkusArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? VendorSkusArgs.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:hybridnetwork/v20200101preview:VendorSkus").build()), Output.of(Alias.builder().type("azure-native:hybridnetwork/v20210501:VendorSkus").build()), Output.of(Alias.builder().type("azure-native:hybridnetwork/v20220101preview:VendorSkus").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 VendorSkus get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new VendorSkus(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy