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

com.pulumi.azurenative.datamigration.Service 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.datamigration;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.datamigration.ServiceArgs;
import com.pulumi.azurenative.datamigration.outputs.ServiceSkuResponse;
import com.pulumi.azurenative.datamigration.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;

/**
 * A Database Migration Service resource
 * Azure REST API version: 2021-06-30. Prior API version in Azure Native 1.x: 2018-04-19.
 * 
 * Other available API versions: 2022-03-30-preview, 2023-07-15-preview.
 * 
 * ## Example Usage
 * ### Services_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.datamigration.Service;
 * import com.pulumi.azurenative.datamigration.ServiceArgs;
 * import com.pulumi.azurenative.datamigration.inputs.ServiceSkuArgs;
 * 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 service = new Service("service", ServiceArgs.builder()
 *             .groupName("DmsSdkRg")
 *             .location("southcentralus")
 *             .serviceName("DmsSdkService")
 *             .sku(ServiceSkuArgs.builder()
 *                 .name("Basic_1vCore")
 *                 .build())
 *             .virtualSubnetId("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkTestNetwork/providers/Microsoft.Network/virtualNetworks/DmsSdkTestNetwork/subnets/default")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:datamigration:Service DmsSdkService /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName} * ``` * */ @ResourceType(type="azure-native:datamigration:Service") public class Service extends com.pulumi.resources.CustomResource { /** * HTTP strong entity tag value. Ignored if submitted * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return HTTP strong entity tag value. Ignored if submitted * */ public Output> etag() { return Codegen.optional(this.etag); } /** * The resource kind. Only 'vm' (the default) is supported. * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return The resource kind. Only 'vm' (the default) is supported. * */ public Output> kind() { return Codegen.optional(this.kind); } /** * Resource location. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Resource location. * */ public Output location() { return this.location; } /** * Resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name. * */ public Output name() { return this.name; } /** * The resource's provisioning state * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The resource's provisioning state * */ public Output provisioningState() { return this.provisioningState; } /** * The public key of the service, used to encrypt secrets sent to the service * */ @Export(name="publicKey", refs={String.class}, tree="[0]") private Output publicKey; /** * @return The public key of the service, used to encrypt secrets sent to the service * */ public Output> publicKey() { return Codegen.optional(this.publicKey); } /** * Service SKU * */ @Export(name="sku", refs={ServiceSkuResponse.class}, tree="[0]") private Output sku; /** * @return Service SKU * */ public Output> sku() { return Codegen.optional(this.sku); } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ 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); } /** * Resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type. * */ public Output type() { return this.type; } /** * The ID of the Microsoft.Network/networkInterfaces resource which the service have * */ @Export(name="virtualNicId", refs={String.class}, tree="[0]") private Output virtualNicId; /** * @return The ID of the Microsoft.Network/networkInterfaces resource which the service have * */ public Output> virtualNicId() { return Codegen.optional(this.virtualNicId); } /** * The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined * */ @Export(name="virtualSubnetId", refs={String.class}, tree="[0]") private Output virtualSubnetId; /** * @return The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined * */ public Output virtualSubnetId() { return this.virtualSubnetId; } /** * * @param name The _unique_ name of the resulting resource. */ public Service(java.lang.String name) { this(name, ServiceArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Service(java.lang.String name, ServiceArgs 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 Service(java.lang.String name, ServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datamigration:Service", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Service(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datamigration:Service", name, null, makeResourceOptions(options, id), false); } private static ServiceArgs makeArgs(ServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ServiceArgs.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:datamigration/v20171115preview:Service").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20180315preview:Service").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20180331preview:Service").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20180419:Service").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20180715preview:Service").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20210630:Service").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20211030preview:Service").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20220130preview:Service").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20220330preview:Service").build()), Output.of(Alias.builder().type("azure-native:datamigration/v20230715preview:Service").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 Service get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Service(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy