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

com.pulumi.azurenative.dbforpostgresql.Server 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.dbforpostgresql;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import com.pulumi.azurenative.dbforpostgresql.outputs.AuthConfigResponse;
import com.pulumi.azurenative.dbforpostgresql.outputs.BackupResponse;
import com.pulumi.azurenative.dbforpostgresql.outputs.DataEncryptionResponse;
import com.pulumi.azurenative.dbforpostgresql.outputs.HighAvailabilityResponse;
import com.pulumi.azurenative.dbforpostgresql.outputs.MaintenanceWindowResponse;
import com.pulumi.azurenative.dbforpostgresql.outputs.NetworkResponse;
import com.pulumi.azurenative.dbforpostgresql.outputs.SkuResponse;
import com.pulumi.azurenative.dbforpostgresql.outputs.StorageResponse;
import com.pulumi.azurenative.dbforpostgresql.outputs.SystemDataResponse;
import com.pulumi.azurenative.dbforpostgresql.outputs.UserAssignedIdentityResponse;
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;

/**
 * Represents a server.
 * Azure REST API version: 2022-12-01. Prior API version in Azure Native 1.x: 2017-12-01.
 * 
 * Other available API versions: 2017-12-01, 2017-12-01-preview, 2020-02-14-preview, 2021-04-10-privatepreview, 2021-06-15-privatepreview, 2022-03-08-preview, 2023-03-01-preview, 2023-06-01-preview, 2023-12-01-preview, 2024-03-01-preview.
 * 
 * ## Example Usage
 * ### Create a database as a geo-restore in geo-paired location
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.dbforpostgresql.Server;
 * import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
 * 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 server = new Server("server", ServerArgs.builder()
 *             .createMode("GeoRestore")
 *             .location("eastus")
 *             .pointInTimeUTC("2021-06-27T00:04:59.4078005+00:00")
 *             .resourceGroupName("testrg")
 *             .serverName("pgtestsvc5geo")
 *             .sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create a database as a point in time restore * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.dbforpostgresql.Server;
 * import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
 * 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 server = new Server("server", ServerArgs.builder()
 *             .createMode("PointInTimeRestore")
 *             .location("westus")
 *             .pointInTimeUTC("2021-06-27T00:04:59.4078005+00:00")
 *             .resourceGroupName("testrg")
 *             .serverName("pgtestsvc5")
 *             .sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create a new server * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.dbforpostgresql.Server;
 * import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.BackupArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.HighAvailabilityArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.NetworkArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.SkuArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.StorageArgs;
 * 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 server = new Server("server", ServerArgs.builder()
 *             .administratorLogin("cloudsa")
 *             .administratorLoginPassword("password")
 *             .availabilityZone("1")
 *             .backup(BackupArgs.builder()
 *                 .backupRetentionDays(7)
 *                 .geoRedundantBackup("Disabled")
 *                 .build())
 *             .createMode("Create")
 *             .highAvailability(HighAvailabilityArgs.builder()
 *                 .mode("ZoneRedundant")
 *                 .build())
 *             .location("westus")
 *             .network(NetworkArgs.builder()
 *                 .delegatedSubnetResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet")
 *                 .privateDnsZoneArmResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com")
 *                 .build())
 *             .resourceGroupName("testrg")
 *             .serverName("pgtestsvc4")
 *             .sku(SkuArgs.builder()
 *                 .name("Standard_D4s_v3")
 *                 .tier("GeneralPurpose")
 *                 .build())
 *             .storage(StorageArgs.builder()
 *                 .storageSizeGB(512)
 *                 .build())
 *             .tags(Map.of("ElasticServer", "1"))
 *             .version("12")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create a new server with active directory authentication enabled * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.dbforpostgresql.Server;
 * import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.AuthConfigArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.BackupArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.DataEncryptionArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.HighAvailabilityArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.NetworkArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.SkuArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.StorageArgs;
 * 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 server = new Server("server", ServerArgs.builder()
 *             .administratorLogin("cloudsa")
 *             .administratorLoginPassword("password")
 *             .authConfig(AuthConfigArgs.builder()
 *                 .activeDirectoryAuth("Enabled")
 *                 .passwordAuth("Enabled")
 *                 .tenantId("tttttt-tttt-tttt-tttt-tttttttttttt")
 *                 .build())
 *             .availabilityZone("1")
 *             .backup(BackupArgs.builder()
 *                 .backupRetentionDays(7)
 *                 .geoRedundantBackup("Disabled")
 *                 .build())
 *             .createMode("Create")
 *             .dataEncryption(DataEncryptionArgs.builder()
 *                 .type("SystemManaged")
 *                 .build())
 *             .highAvailability(HighAvailabilityArgs.builder()
 *                 .mode("ZoneRedundant")
 *                 .build())
 *             .location("westus")
 *             .network(NetworkArgs.builder()
 *                 .delegatedSubnetResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet")
 *                 .privateDnsZoneArmResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com")
 *                 .build())
 *             .resourceGroupName("testrg")
 *             .serverName("pgtestsvc4")
 *             .sku(SkuArgs.builder()
 *                 .name("Standard_D4s_v3")
 *                 .tier("GeneralPurpose")
 *                 .build())
 *             .storage(StorageArgs.builder()
 *                 .storageSizeGB(512)
 *                 .build())
 *             .tags(Map.of("ElasticServer", "1"))
 *             .version("12")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### ServerCreateReplica * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.dbforpostgresql.Server;
 * import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
 * 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 server = new Server("server", ServerArgs.builder()
 *             .createMode("Replica")
 *             .location("westus")
 *             .pointInTimeUTC("2021-06-27T00:04:59.4078005+00:00")
 *             .resourceGroupName("testrg")
 *             .serverName("pgtestsvc5rep")
 *             .sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### ServerCreateWithDataEncryptionEnabled * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.dbforpostgresql.Server;
 * import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.BackupArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.DataEncryptionArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.HighAvailabilityArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.UserAssignedIdentityArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.NetworkArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.SkuArgs;
 * import com.pulumi.azurenative.dbforpostgresql.inputs.StorageArgs;
 * 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 server = new Server("server", ServerArgs.builder()
 *             .administratorLogin("cloudsa")
 *             .administratorLoginPassword("password")
 *             .availabilityZone("1")
 *             .backup(BackupArgs.builder()
 *                 .backupRetentionDays(7)
 *                 .geoRedundantBackup("Disabled")
 *                 .build())
 *             .createMode("Create")
 *             .dataEncryption(DataEncryptionArgs.builder()
 *                 .primaryKeyURI("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787")
 *                 .primaryUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity")
 *                 .type("AzureKeyVault")
 *                 .build())
 *             .highAvailability(HighAvailabilityArgs.builder()
 *                 .mode("ZoneRedundant")
 *                 .build())
 *             .identity(UserAssignedIdentityArgs.builder()
 *                 .type("UserAssigned")
 *                 .userAssignedIdentities(Map.of("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity", ))
 *                 .build())
 *             .location("westus")
 *             .network(NetworkArgs.builder()
 *                 .delegatedSubnetResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet")
 *                 .privateDnsZoneArmResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com")
 *                 .build())
 *             .resourceGroupName("testrg")
 *             .serverName("pgtestsvc4")
 *             .sku(SkuArgs.builder()
 *                 .name("Standard_D4s_v3")
 *                 .tier("GeneralPurpose")
 *                 .build())
 *             .storage(StorageArgs.builder()
 *                 .storageSizeGB(512)
 *                 .build())
 *             .tags(Map.of("ElasticServer", "1"))
 *             .version("12")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:dbforpostgresql:Server pgtestsvc4 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName} * ``` * */ @ResourceType(type="azure-native:dbforpostgresql:Server") public class Server extends com.pulumi.resources.CustomResource { /** * The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). * */ @Export(name="administratorLogin", refs={String.class}, tree="[0]") private Output administratorLogin; /** * @return The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). * */ public Output> administratorLogin() { return Codegen.optional(this.administratorLogin); } /** * AuthConfig properties of a server. * */ @Export(name="authConfig", refs={AuthConfigResponse.class}, tree="[0]") private Output authConfig; /** * @return AuthConfig properties of a server. * */ public Output> authConfig() { return Codegen.optional(this.authConfig); } /** * availability zone information of the server. * */ @Export(name="availabilityZone", refs={String.class}, tree="[0]") private Output availabilityZone; /** * @return availability zone information of the server. * */ public Output> availabilityZone() { return Codegen.optional(this.availabilityZone); } /** * Backup properties of a server. * */ @Export(name="backup", refs={BackupResponse.class}, tree="[0]") private Output backup; /** * @return Backup properties of a server. * */ public Output> backup() { return Codegen.optional(this.backup); } /** * Data encryption properties of a server. * */ @Export(name="dataEncryption", refs={DataEncryptionResponse.class}, tree="[0]") private Output dataEncryption; /** * @return Data encryption properties of a server. * */ public Output> dataEncryption() { return Codegen.optional(this.dataEncryption); } /** * The fully qualified domain name of a server. * */ @Export(name="fullyQualifiedDomainName", refs={String.class}, tree="[0]") private Output fullyQualifiedDomainName; /** * @return The fully qualified domain name of a server. * */ public Output fullyQualifiedDomainName() { return this.fullyQualifiedDomainName; } /** * High availability properties of a server. * */ @Export(name="highAvailability", refs={HighAvailabilityResponse.class}, tree="[0]") private Output highAvailability; /** * @return High availability properties of a server. * */ public Output> highAvailability() { return Codegen.optional(this.highAvailability); } /** * Describes the identity of the application. * */ @Export(name="identity", refs={UserAssignedIdentityResponse.class}, tree="[0]") private Output identity; /** * @return Describes the identity of the application. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * 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; } /** * Maintenance window properties of a server. * */ @Export(name="maintenanceWindow", refs={MaintenanceWindowResponse.class}, tree="[0]") private Output maintenanceWindow; /** * @return Maintenance window properties of a server. * */ public Output> maintenanceWindow() { return Codegen.optional(this.maintenanceWindow); } /** * The minor version of the server. * */ @Export(name="minorVersion", refs={String.class}, tree="[0]") private Output minorVersion; /** * @return The minor version of the server. * */ public Output minorVersion() { return this.minorVersion; } /** * 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; } /** * Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server. * */ @Export(name="network", refs={NetworkResponse.class}, tree="[0]") private Output network; /** * @return Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server. * */ public Output> network() { return Codegen.optional(this.network); } /** * Replicas allowed for a server. * */ @Export(name="replicaCapacity", refs={Integer.class}, tree="[0]") private Output replicaCapacity; /** * @return Replicas allowed for a server. * */ public Output replicaCapacity() { return this.replicaCapacity; } /** * Replication role of the server * */ @Export(name="replicationRole", refs={String.class}, tree="[0]") private Output replicationRole; /** * @return Replication role of the server * */ public Output> replicationRole() { return Codegen.optional(this.replicationRole); } /** * The SKU (pricing tier) of the server. * */ @Export(name="sku", refs={SkuResponse.class}, tree="[0]") private Output sku; /** * @return The SKU (pricing tier) of the server. * */ public Output> sku() { return Codegen.optional(this.sku); } /** * The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. This property is returned only for Replica server * */ @Export(name="sourceServerResourceId", refs={String.class}, tree="[0]") private Output sourceServerResourceId; /** * @return The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. This property is returned only for Replica server * */ public Output> sourceServerResourceId() { return Codegen.optional(this.sourceServerResourceId); } /** * A state of a server that is visible to user. * */ @Export(name="state", refs={String.class}, tree="[0]") private Output state; /** * @return A state of a server that is visible to user. * */ public Output state() { return this.state; } /** * Storage properties of a server. * */ @Export(name="storage", refs={StorageResponse.class}, tree="[0]") private Output storage; /** * @return Storage properties of a server. * */ public Output> storage() { return Codegen.optional(this.storage); } /** * 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; } /** * PostgreSQL Server version. * */ @Export(name="version", refs={String.class}, tree="[0]") private Output version; /** * @return PostgreSQL Server version. * */ public Output> version() { return Codegen.optional(this.version); } /** * * @param name The _unique_ name of the resulting resource. */ public Server(java.lang.String name) { this(name, ServerArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Server(java.lang.String name, ServerArgs 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 Server(java.lang.String name, ServerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:dbforpostgresql:Server", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Server(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:dbforpostgresql:Server", name, null, makeResourceOptions(options, id), false); } private static ServerArgs makeArgs(ServerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ServerArgs.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:dbforpostgresql/v20200214preview:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20200214privatepreview:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20210410privatepreview:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20210601:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20210601preview:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20210615privatepreview:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20220120preview:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20220308preview:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20221201:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20230301preview:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20230601preview:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20231201preview:Server").build()), Output.of(Alias.builder().type("azure-native:dbforpostgresql/v20240301preview:Server").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 Server get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Server(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy