azure-native.azurearcdata.PostgresInstance
Explore with Pulumi AI
A Postgres Instance. Azure REST API version: 2023-01-15-preview. Prior API version in Azure Native 1.x: 2021-06-01-preview.
Other available API versions: 2024-01-01, 2024-05-01-preview.
Example Usage
Create or update a Postgres Instance.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var postgresInstance = new AzureNative.AzureArcData.PostgresInstance("postgresInstance", new()
    {
        ExtendedLocation = new AzureNative.AzureArcData.Inputs.ExtendedLocationArgs
        {
            Name = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation",
            Type = AzureNative.AzureArcData.ExtendedLocationTypes.CustomLocation,
        },
        Location = "eastus",
        PostgresInstanceName = "testpostgresInstance",
        Properties = new AzureNative.AzureArcData.Inputs.PostgresInstancePropertiesArgs
        {
            Admin = "admin",
            BasicLoginInformation = new AzureNative.AzureArcData.Inputs.BasicLoginInformationArgs
            {
                Password = "********",
                Username = "username",
            },
            DataControllerId = "dataControllerId",
            K8sRaw = new Dictionary<string, object?>
            {
                ["apiVersion"] = "apiVersion",
                ["kind"] = "postgresql-12",
                ["metadata"] = new Dictionary<string, object?>
                {
                    ["creationTimestamp"] = "2020-08-25T14:55:10Z",
                    ["generation"] = 1,
                    ["name"] = "pg1",
                    ["namespace"] = "test",
                    ["resourceVersion"] = "527780",
                    ["selfLink"] = "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1",
                    ["uid"] = "1111aaaa-ffff-ffff-ffff-99999aaaaaaa",
                },
                ["spec"] = new Dictionary<string, object?>
                {
                    ["backups"] = new Dictionary<string, object?>
                    {
                        ["deltaMinutes"] = 3,
                        ["fullMinutes"] = 10,
                        ["tiers"] = new[]
                        {
                            new Dictionary<string, object?>
                            {
                                ["retention"] = new Dictionary<string, object?>
                                {
                                    ["maximums"] = new[]
                                    {
                                        "6",
                                        "512MB",
                                    },
                                    ["minimums"] = new[]
                                    {
                                        "3",
                                    },
                                },
                                ["storage"] = new Dictionary<string, object?>
                                {
                                    ["volumeSize"] = "1Gi",
                                },
                            },
                        },
                    },
                    ["engine"] = new Dictionary<string, object?>
                    {
                        ["extensions"] = new[]
                        {
                            new Dictionary<string, object?>
                            {
                                ["name"] = "citus",
                            },
                        },
                    },
                    ["scale"] = new Dictionary<string, object?>
                    {
                        ["shards"] = 3,
                    },
                    ["scheduling"] = new Dictionary<string, object?>
                    {
                        ["default"] = new Dictionary<string, object?>
                        {
                            ["resources"] = new Dictionary<string, object?>
                            {
                                ["requests"] = new Dictionary<string, object?>
                                {
                                    ["memory"] = "256Mi",
                                },
                            },
                        },
                    },
                    ["service"] = new Dictionary<string, object?>
                    {
                        ["type"] = "NodePort",
                    },
                    ["storage"] = new Dictionary<string, object?>
                    {
                        ["data"] = new Dictionary<string, object?>
                        {
                            ["className"] = "local-storage",
                            ["size"] = "5Gi",
                        },
                        ["logs"] = new Dictionary<string, object?>
                        {
                            ["className"] = "local-storage",
                            ["size"] = "5Gi",
                        },
                    },
                },
                ["status"] = new Dictionary<string, object?>
                {
                    ["externalEndpoint"] = null,
                    ["readyPods"] = "4/4",
                    ["state"] = "Ready",
                },
            },
        },
        ResourceGroupName = "testrg",
        Sku = new AzureNative.AzureArcData.Inputs.PostgresInstanceSkuArgs
        {
            Dev = true,
            Name = "default",
            Tier = AzureNative.AzureArcData.PostgresInstanceSkuTier.Hyperscale,
        },
    });
});
package main
import (
	azurearcdata "github.com/pulumi/pulumi-azure-native-sdk/azurearcdata/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azurearcdata.NewPostgresInstance(ctx, "postgresInstance", &azurearcdata.PostgresInstanceArgs{
			ExtendedLocation: &azurearcdata.ExtendedLocationArgs{
				Name: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation"),
				Type: pulumi.String(azurearcdata.ExtendedLocationTypesCustomLocation),
			},
			Location:             pulumi.String("eastus"),
			PostgresInstanceName: pulumi.String("testpostgresInstance"),
			Properties: &azurearcdata.PostgresInstancePropertiesArgs{
				Admin: pulumi.String("admin"),
				BasicLoginInformation: &azurearcdata.BasicLoginInformationArgs{
					Password: pulumi.String("********"),
					Username: pulumi.String("username"),
				},
				DataControllerId: pulumi.String("dataControllerId"),
				K8sRaw: pulumi.Any(map[string]interface{}{
					"apiVersion": "apiVersion",
					"kind":       "postgresql-12",
					"metadata": map[string]interface{}{
						"creationTimestamp": "2020-08-25T14:55:10Z",
						"generation":        1,
						"name":              "pg1",
						"namespace":         "test",
						"resourceVersion":   "527780",
						"selfLink":          "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1",
						"uid":               "1111aaaa-ffff-ffff-ffff-99999aaaaaaa",
					},
					"spec": map[string]interface{}{
						"backups": map[string]interface{}{
							"deltaMinutes": 3,
							"fullMinutes":  10,
							"tiers": []map[string]interface{}{
								map[string]interface{}{
									"retention": map[string]interface{}{
										"maximums": []string{
											"6",
											"512MB",
										},
										"minimums": []string{
											"3",
										},
									},
									"storage": map[string]interface{}{
										"volumeSize": "1Gi",
									},
								},
							},
						},
						"engine": map[string]interface{}{
							"extensions": []map[string]interface{}{
								map[string]interface{}{
									"name": "citus",
								},
							},
						},
						"scale": map[string]interface{}{
							"shards": 3,
						},
						"scheduling": map[string]interface{}{
							"default": map[string]interface{}{
								"resources": map[string]interface{}{
									"requests": map[string]interface{}{
										"memory": "256Mi",
									},
								},
							},
						},
						"service": map[string]interface{}{
							"type": "NodePort",
						},
						"storage": map[string]interface{}{
							"data": map[string]interface{}{
								"className": "local-storage",
								"size":      "5Gi",
							},
							"logs": map[string]interface{}{
								"className": "local-storage",
								"size":      "5Gi",
							},
						},
					},
					"status": map[string]interface{}{
						"externalEndpoint": nil,
						"readyPods":        "4/4",
						"state":            "Ready",
					},
				}),
			},
			ResourceGroupName: pulumi.String("testrg"),
			Sku: &azurearcdata.PostgresInstanceSkuArgs{
				Dev:  pulumi.Bool(true),
				Name: pulumi.String("default"),
				Tier: azurearcdata.PostgresInstanceSkuTierHyperscale,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azurearcdata.PostgresInstance;
import com.pulumi.azurenative.azurearcdata.PostgresInstanceArgs;
import com.pulumi.azurenative.azurearcdata.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.azurearcdata.inputs.PostgresInstancePropertiesArgs;
import com.pulumi.azurenative.azurearcdata.inputs.BasicLoginInformationArgs;
import com.pulumi.azurenative.azurearcdata.inputs.PostgresInstanceSkuArgs;
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 postgresInstance = new PostgresInstance("postgresInstance", PostgresInstanceArgs.builder()
            .extendedLocation(ExtendedLocationArgs.builder()
                .name("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation")
                .type("CustomLocation")
                .build())
            .location("eastus")
            .postgresInstanceName("testpostgresInstance")
            .properties(PostgresInstancePropertiesArgs.builder()
                .admin("admin")
                .basicLoginInformation(BasicLoginInformationArgs.builder()
                    .password("********")
                    .username("username")
                    .build())
                .dataControllerId("dataControllerId")
                .k8sRaw(Map.ofEntries(
                    Map.entry("apiVersion", "apiVersion"),
                    Map.entry("kind", "postgresql-12"),
                    Map.entry("metadata", Map.ofEntries(
                        Map.entry("creationTimestamp", "2020-08-25T14:55:10Z"),
                        Map.entry("generation", 1),
                        Map.entry("name", "pg1"),
                        Map.entry("namespace", "test"),
                        Map.entry("resourceVersion", "527780"),
                        Map.entry("selfLink", "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1"),
                        Map.entry("uid", "1111aaaa-ffff-ffff-ffff-99999aaaaaaa")
                    )),
                    Map.entry("spec", Map.ofEntries(
                        Map.entry("backups", Map.ofEntries(
                            Map.entry("deltaMinutes", 3),
                            Map.entry("fullMinutes", 10),
                            Map.entry("tiers", Map.ofEntries(
                                Map.entry("retention", Map.ofEntries(
                                    Map.entry("maximums",                                     
                                        "6",
                                        "512MB"),
                                    Map.entry("minimums", "3")
                                )),
                                Map.entry("storage", Map.of("volumeSize", "1Gi"))
                            ))
                        )),
                        Map.entry("engine", Map.of("extensions", Map.of("name", "citus"))),
                        Map.entry("scale", Map.of("shards", 3)),
                        Map.entry("scheduling", Map.of("default", Map.of("resources", Map.of("requests", Map.of("memory", "256Mi"))))),
                        Map.entry("service", Map.of("type", "NodePort")),
                        Map.entry("storage", Map.ofEntries(
                            Map.entry("data", Map.ofEntries(
                                Map.entry("className", "local-storage"),
                                Map.entry("size", "5Gi")
                            )),
                            Map.entry("logs", Map.ofEntries(
                                Map.entry("className", "local-storage"),
                                Map.entry("size", "5Gi")
                            ))
                        ))
                    )),
                    Map.entry("status", Map.ofEntries(
                        Map.entry("externalEndpoint", null),
                        Map.entry("readyPods", "4/4"),
                        Map.entry("state", "Ready")
                    ))
                ))
                .build())
            .resourceGroupName("testrg")
            .sku(PostgresInstanceSkuArgs.builder()
                .dev(true)
                .name("default")
                .tier("Hyperscale")
                .build())
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const postgresInstance = new azure_native.azurearcdata.PostgresInstance("postgresInstance", {
    extendedLocation: {
        name: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation",
        type: azure_native.azurearcdata.ExtendedLocationTypes.CustomLocation,
    },
    location: "eastus",
    postgresInstanceName: "testpostgresInstance",
    properties: {
        admin: "admin",
        basicLoginInformation: {
            password: "********",
            username: "username",
        },
        dataControllerId: "dataControllerId",
        k8sRaw: {
            apiVersion: "apiVersion",
            kind: "postgresql-12",
            metadata: {
                creationTimestamp: "2020-08-25T14:55:10Z",
                generation: 1,
                name: "pg1",
                namespace: "test",
                resourceVersion: "527780",
                selfLink: "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1",
                uid: "1111aaaa-ffff-ffff-ffff-99999aaaaaaa",
            },
            spec: {
                backups: {
                    deltaMinutes: 3,
                    fullMinutes: 10,
                    tiers: [{
                        retention: {
                            maximums: [
                                "6",
                                "512MB",
                            ],
                            minimums: ["3"],
                        },
                        storage: {
                            volumeSize: "1Gi",
                        },
                    }],
                },
                engine: {
                    extensions: [{
                        name: "citus",
                    }],
                },
                scale: {
                    shards: 3,
                },
                scheduling: {
                    "default": {
                        resources: {
                            requests: {
                                memory: "256Mi",
                            },
                        },
                    },
                },
                service: {
                    type: "NodePort",
                },
                storage: {
                    data: {
                        className: "local-storage",
                        size: "5Gi",
                    },
                    logs: {
                        className: "local-storage",
                        size: "5Gi",
                    },
                },
            },
            status: {
                externalEndpoint: undefined,
                readyPods: "4/4",
                state: "Ready",
            },
        },
    },
    resourceGroupName: "testrg",
    sku: {
        dev: true,
        name: "default",
        tier: azure_native.azurearcdata.PostgresInstanceSkuTier.Hyperscale,
    },
});
import pulumi
import pulumi_azure_native as azure_native
postgres_instance = azure_native.azurearcdata.PostgresInstance("postgresInstance",
    extended_location={
        "name": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation",
        "type": azure_native.azurearcdata.ExtendedLocationTypes.CUSTOM_LOCATION,
    },
    location="eastus",
    postgres_instance_name="testpostgresInstance",
    properties={
        "admin": "admin",
        "basic_login_information": {
            "password": "********",
            "username": "username",
        },
        "data_controller_id": "dataControllerId",
        "k8s_raw": {
            "apiVersion": "apiVersion",
            "kind": "postgresql-12",
            "metadata": {
                "creationTimestamp": "2020-08-25T14:55:10Z",
                "generation": 1,
                "name": "pg1",
                "namespace": "test",
                "resourceVersion": "527780",
                "selfLink": "/apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1",
                "uid": "1111aaaa-ffff-ffff-ffff-99999aaaaaaa",
            },
            "spec": {
                "backups": {
                    "deltaMinutes": 3,
                    "fullMinutes": 10,
                    "tiers": [{
                        "retention": {
                            "maximums": [
                                "6",
                                "512MB",
                            ],
                            "minimums": ["3"],
                        },
                        "storage": {
                            "volumeSize": "1Gi",
                        },
                    }],
                },
                "engine": {
                    "extensions": [{
                        "name": "citus",
                    }],
                },
                "scale": {
                    "shards": 3,
                },
                "scheduling": {
                    "default": {
                        "resources": {
                            "requests": {
                                "memory": "256Mi",
                            },
                        },
                    },
                },
                "service": {
                    "type": "NodePort",
                },
                "storage": {
                    "data": {
                        "className": "local-storage",
                        "size": "5Gi",
                    },
                    "logs": {
                        "className": "local-storage",
                        "size": "5Gi",
                    },
                },
            },
            "status": {
                "externalEndpoint": None,
                "readyPods": "4/4",
                "state": "Ready",
            },
        },
    },
    resource_group_name="testrg",
    sku={
        "dev": True,
        "name": "default",
        "tier": azure_native.azurearcdata.PostgresInstanceSkuTier.HYPERSCALE,
    })
resources:
  postgresInstance:
    type: azure-native:azurearcdata:PostgresInstance
    properties:
      extendedLocation:
        name: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation
        type: CustomLocation
      location: eastus
      postgresInstanceName: testpostgresInstance
      properties:
        admin: admin
        basicLoginInformation:
          password: '********'
          username: username
        dataControllerId: dataControllerId
        k8sRaw:
          apiVersion: apiVersion
          kind: postgresql-12
          metadata:
            creationTimestamp: 2020-08-25T14:55:10Z
            generation: 1
            name: pg1
            namespace: test
            resourceVersion: '527780'
            selfLink: /apis/arcdata.microsoft.com/v1alpha1/namespaces/test/postgresql-12s/pg1
            uid: 1111aaaa-ffff-ffff-ffff-99999aaaaaaa
          spec:
            backups:
              deltaMinutes: 3
              fullMinutes: 10
              tiers:
                - retention:
                    maximums:
                      - '6'
                      - 512MB
                    minimums:
                      - '3'
                  storage:
                    volumeSize: 1Gi
            engine:
              extensions:
                - name: citus
            scale:
              shards: 3
            scheduling:
              default:
                resources:
                  requests:
                    memory: 256Mi
            service:
              type: NodePort
            storage:
              data:
                className: local-storage
                size: 5Gi
              logs:
                className: local-storage
                size: 5Gi
          status:
            externalEndpoint: null
            readyPods: 4/4
            state: Ready
      resourceGroupName: testrg
      sku:
        dev: true
        name: default
        tier: Hyperscale
Create PostgresInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PostgresInstance(name: string, args: PostgresInstanceArgs, opts?: CustomResourceOptions);@overload
def PostgresInstance(resource_name: str,
                     args: PostgresInstanceArgs,
                     opts: Optional[ResourceOptions] = None)
@overload
def PostgresInstance(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     properties: Optional[PostgresInstancePropertiesArgs] = None,
                     resource_group_name: Optional[str] = None,
                     extended_location: Optional[ExtendedLocationArgs] = None,
                     location: Optional[str] = None,
                     postgres_instance_name: Optional[str] = None,
                     sku: Optional[PostgresInstanceSkuArgs] = None,
                     tags: Optional[Mapping[str, str]] = None)func NewPostgresInstance(ctx *Context, name string, args PostgresInstanceArgs, opts ...ResourceOption) (*PostgresInstance, error)public PostgresInstance(string name, PostgresInstanceArgs args, CustomResourceOptions? opts = null)
public PostgresInstance(String name, PostgresInstanceArgs args)
public PostgresInstance(String name, PostgresInstanceArgs args, CustomResourceOptions options)
type: azure-native:azurearcdata:PostgresInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PostgresInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PostgresInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PostgresInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PostgresInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PostgresInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var postgresInstanceResource = new AzureNative.AzureArcData.PostgresInstance("postgresInstanceResource", new()
{
    Properties = new AzureNative.AzureArcData.Inputs.PostgresInstancePropertiesArgs
    {
        Admin = "string",
        BasicLoginInformation = new AzureNative.AzureArcData.Inputs.BasicLoginInformationArgs
        {
            Password = "string",
            Username = "string",
        },
        DataControllerId = "string",
        K8sRaw = "any",
        LastUploadedDate = "string",
    },
    ResourceGroupName = "string",
    ExtendedLocation = new AzureNative.AzureArcData.Inputs.ExtendedLocationArgs
    {
        Name = "string",
        Type = "string",
    },
    Location = "string",
    PostgresInstanceName = "string",
    Sku = new AzureNative.AzureArcData.Inputs.PostgresInstanceSkuArgs
    {
        Name = "string",
        Capacity = 0,
        Dev = false,
        Family = "string",
        Size = "string",
        Tier = AzureNative.AzureArcData.PostgresInstanceSkuTier.Hyperscale,
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := azurearcdata.NewPostgresInstance(ctx, "postgresInstanceResource", &azurearcdata.PostgresInstanceArgs{
	Properties: &azurearcdata.PostgresInstancePropertiesArgs{
		Admin: pulumi.String("string"),
		BasicLoginInformation: &azurearcdata.BasicLoginInformationArgs{
			Password: pulumi.String("string"),
			Username: pulumi.String("string"),
		},
		DataControllerId: pulumi.String("string"),
		K8sRaw:           pulumi.Any("any"),
		LastUploadedDate: pulumi.String("string"),
	},
	ResourceGroupName: pulumi.String("string"),
	ExtendedLocation: &azurearcdata.ExtendedLocationArgs{
		Name: pulumi.String("string"),
		Type: pulumi.String("string"),
	},
	Location:             pulumi.String("string"),
	PostgresInstanceName: pulumi.String("string"),
	Sku: &azurearcdata.PostgresInstanceSkuArgs{
		Name:     pulumi.String("string"),
		Capacity: pulumi.Int(0),
		Dev:      pulumi.Bool(false),
		Family:   pulumi.String("string"),
		Size:     pulumi.String("string"),
		Tier:     azurearcdata.PostgresInstanceSkuTierHyperscale,
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var postgresInstanceResource = new PostgresInstance("postgresInstanceResource", PostgresInstanceArgs.builder()
    .properties(PostgresInstancePropertiesArgs.builder()
        .admin("string")
        .basicLoginInformation(BasicLoginInformationArgs.builder()
            .password("string")
            .username("string")
            .build())
        .dataControllerId("string")
        .k8sRaw("any")
        .lastUploadedDate("string")
        .build())
    .resourceGroupName("string")
    .extendedLocation(ExtendedLocationArgs.builder()
        .name("string")
        .type("string")
        .build())
    .location("string")
    .postgresInstanceName("string")
    .sku(PostgresInstanceSkuArgs.builder()
        .name("string")
        .capacity(0)
        .dev(false)
        .family("string")
        .size("string")
        .tier("Hyperscale")
        .build())
    .tags(Map.of("string", "string"))
    .build());
postgres_instance_resource = azure_native.azurearcdata.PostgresInstance("postgresInstanceResource",
    properties={
        "admin": "string",
        "basic_login_information": {
            "password": "string",
            "username": "string",
        },
        "data_controller_id": "string",
        "k8s_raw": "any",
        "last_uploaded_date": "string",
    },
    resource_group_name="string",
    extended_location={
        "name": "string",
        "type": "string",
    },
    location="string",
    postgres_instance_name="string",
    sku={
        "name": "string",
        "capacity": 0,
        "dev": False,
        "family": "string",
        "size": "string",
        "tier": azure_native.azurearcdata.PostgresInstanceSkuTier.HYPERSCALE,
    },
    tags={
        "string": "string",
    })
const postgresInstanceResource = new azure_native.azurearcdata.PostgresInstance("postgresInstanceResource", {
    properties: {
        admin: "string",
        basicLoginInformation: {
            password: "string",
            username: "string",
        },
        dataControllerId: "string",
        k8sRaw: "any",
        lastUploadedDate: "string",
    },
    resourceGroupName: "string",
    extendedLocation: {
        name: "string",
        type: "string",
    },
    location: "string",
    postgresInstanceName: "string",
    sku: {
        name: "string",
        capacity: 0,
        dev: false,
        family: "string",
        size: "string",
        tier: azure_native.azurearcdata.PostgresInstanceSkuTier.Hyperscale,
    },
    tags: {
        string: "string",
    },
});
type: azure-native:azurearcdata:PostgresInstance
properties:
    extendedLocation:
        name: string
        type: string
    location: string
    postgresInstanceName: string
    properties:
        admin: string
        basicLoginInformation:
            password: string
            username: string
        dataControllerId: string
        k8sRaw: any
        lastUploadedDate: string
    resourceGroupName: string
    sku:
        capacity: 0
        dev: false
        family: string
        name: string
        size: string
        tier: Hyperscale
    tags:
        string: string
PostgresInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PostgresInstance resource accepts the following input properties:
- Properties
Pulumi.Azure Native. Azure Arc Data. Inputs. Postgres Instance Properties 
- null
- ResourceGroup stringName 
- The name of the Azure resource group
- ExtendedLocation Pulumi.Azure Native. Azure Arc Data. Inputs. Extended Location 
- The extendedLocation of the resource.
- Location string
- The geo-location where the resource lives
- PostgresInstance stringName 
- Name of Postgres Instance
- Sku
Pulumi.Azure Native. Azure Arc Data. Inputs. Postgres Instance Sku 
- Resource sku.
- Dictionary<string, string>
- Resource tags.
- Properties
PostgresInstance Properties Args 
- null
- ResourceGroup stringName 
- The name of the Azure resource group
- ExtendedLocation ExtendedLocation Args 
- The extendedLocation of the resource.
- Location string
- The geo-location where the resource lives
- PostgresInstance stringName 
- Name of Postgres Instance
- Sku
PostgresInstance Sku Args 
- Resource sku.
- map[string]string
- Resource tags.
- properties
PostgresInstance Properties 
- null
- resourceGroup StringName 
- The name of the Azure resource group
- extendedLocation ExtendedLocation 
- The extendedLocation of the resource.
- location String
- The geo-location where the resource lives
- postgresInstance StringName 
- Name of Postgres Instance
- sku
PostgresInstance Sku 
- Resource sku.
- Map<String,String>
- Resource tags.
- properties
PostgresInstance Properties 
- null
- resourceGroup stringName 
- The name of the Azure resource group
- extendedLocation ExtendedLocation 
- The extendedLocation of the resource.
- location string
- The geo-location where the resource lives
- postgresInstance stringName 
- Name of Postgres Instance
- sku
PostgresInstance Sku 
- Resource sku.
- {[key: string]: string}
- Resource tags.
- properties
PostgresInstance Properties Args 
- null
- resource_group_ strname 
- The name of the Azure resource group
- extended_location ExtendedLocation Args 
- The extendedLocation of the resource.
- location str
- The geo-location where the resource lives
- postgres_instance_ strname 
- Name of Postgres Instance
- sku
PostgresInstance Sku Args 
- Resource sku.
- Mapping[str, str]
- Resource tags.
- properties Property Map
- null
- resourceGroup StringName 
- The name of the Azure resource group
- extendedLocation Property Map
- The extendedLocation of the resource.
- location String
- The geo-location where the resource lives
- postgresInstance StringName 
- Name of Postgres Instance
- sku Property Map
- Resource sku.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the PostgresInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData Pulumi.Azure Native. Azure Arc Data. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
BasicLoginInformation, BasicLoginInformationArgs      
BasicLoginInformationResponse, BasicLoginInformationResponseArgs        
- Username string
- Login username.
- Username string
- Login username.
- username String
- Login username.
- username string
- Login username.
- username str
- Login username.
- username String
- Login username.
ExtendedLocation, ExtendedLocationArgs    
- Name string
- The name of the extended location.
- Type
string | Pulumi.Azure Native. Azure Arc Data. Extended Location Types 
- The type of the extended location.
- Name string
- The name of the extended location.
- Type
string | ExtendedLocation Types 
- The type of the extended location.
- name String
- The name of the extended location.
- type
String | ExtendedLocation Types 
- The type of the extended location.
- name string
- The name of the extended location.
- type
string | ExtendedLocation Types 
- The type of the extended location.
- name str
- The name of the extended location.
- type
str | ExtendedLocation Types 
- The type of the extended location.
- name String
- The name of the extended location.
- type
String | "CustomLocation" 
- The type of the extended location.
ExtendedLocationResponse, ExtendedLocationResponseArgs      
ExtendedLocationTypes, ExtendedLocationTypesArgs      
- CustomLocation 
- CustomLocation
- ExtendedLocation Types Custom Location 
- CustomLocation
- CustomLocation 
- CustomLocation
- CustomLocation 
- CustomLocation
- CUSTOM_LOCATION
- CustomLocation
- "CustomLocation" 
- CustomLocation
PostgresInstanceProperties, PostgresInstancePropertiesArgs      
- Admin string
- The instance admin
- BasicLogin Pulumi.Information Azure Native. Azure Arc Data. Inputs. Basic Login Information 
- Username and password for basic authentication.
- DataController stringId 
- The data controller id
- K8sRaw object
- The raw kubernetes information
- LastUploaded stringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
- Admin string
- The instance admin
- BasicLogin BasicInformation Login Information 
- Username and password for basic authentication.
- DataController stringId 
- The data controller id
- K8sRaw interface{}
- The raw kubernetes information
- LastUploaded stringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
- admin String
- The instance admin
- basicLogin BasicInformation Login Information 
- Username and password for basic authentication.
- dataController StringId 
- The data controller id
- k8sRaw Object
- The raw kubernetes information
- lastUploaded StringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
- admin string
- The instance admin
- basicLogin BasicInformation Login Information 
- Username and password for basic authentication.
- dataController stringId 
- The data controller id
- k8sRaw any
- The raw kubernetes information
- lastUploaded stringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
- admin str
- The instance admin
- basic_login_ Basicinformation Login Information 
- Username and password for basic authentication.
- data_controller_ strid 
- The data controller id
- k8s_raw Any
- The raw kubernetes information
- last_uploaded_ strdate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
- admin String
- The instance admin
- basicLogin Property MapInformation 
- Username and password for basic authentication.
- dataController StringId 
- The data controller id
- k8sRaw Any
- The raw kubernetes information
- lastUploaded StringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
PostgresInstancePropertiesResponse, PostgresInstancePropertiesResponseArgs        
- ProvisioningState string
- The provisioning state of the Azure Arc-enabled PostgreSQL instance.
- Admin string
- The instance admin
- BasicLogin Pulumi.Information Azure Native. Azure Arc Data. Inputs. Basic Login Information Response 
- Username and password for basic authentication.
- DataController stringId 
- The data controller id
- K8sRaw object
- The raw kubernetes information
- LastUploaded stringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
- ProvisioningState string
- The provisioning state of the Azure Arc-enabled PostgreSQL instance.
- Admin string
- The instance admin
- BasicLogin BasicInformation Login Information Response 
- Username and password for basic authentication.
- DataController stringId 
- The data controller id
- K8sRaw interface{}
- The raw kubernetes information
- LastUploaded stringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
- provisioningState String
- The provisioning state of the Azure Arc-enabled PostgreSQL instance.
- admin String
- The instance admin
- basicLogin BasicInformation Login Information Response 
- Username and password for basic authentication.
- dataController StringId 
- The data controller id
- k8sRaw Object
- The raw kubernetes information
- lastUploaded StringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
- provisioningState string
- The provisioning state of the Azure Arc-enabled PostgreSQL instance.
- admin string
- The instance admin
- basicLogin BasicInformation Login Information Response 
- Username and password for basic authentication.
- dataController stringId 
- The data controller id
- k8sRaw any
- The raw kubernetes information
- lastUploaded stringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
- provisioning_state str
- The provisioning state of the Azure Arc-enabled PostgreSQL instance.
- admin str
- The instance admin
- basic_login_ Basicinformation Login Information Response 
- Username and password for basic authentication.
- data_controller_ strid 
- The data controller id
- k8s_raw Any
- The raw kubernetes information
- last_uploaded_ strdate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
- provisioningState String
- The provisioning state of the Azure Arc-enabled PostgreSQL instance.
- admin String
- The instance admin
- basicLogin Property MapInformation 
- Username and password for basic authentication.
- dataController StringId 
- The data controller id
- k8sRaw Any
- The raw kubernetes information
- lastUploaded StringDate 
- Last uploaded date from Kubernetes cluster. Defaults to current date time
PostgresInstanceSku, PostgresInstanceSkuArgs      
- Name string
- The name of the SKU. It is typically a letter+number code
- Capacity int
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- Dev bool
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- Family string
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- Size string
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- Tier
Pulumi.Azure Native. Azure Arc Data. Postgres Instance Sku Tier 
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
- Name string
- The name of the SKU. It is typically a letter+number code
- Capacity int
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- Dev bool
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- Family string
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- Size string
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- Tier
PostgresInstance Sku Tier 
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
- name String
- The name of the SKU. It is typically a letter+number code
- capacity Integer
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- dev Boolean
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- family String
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size String
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- tier
PostgresInstance Sku Tier 
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
- name string
- The name of the SKU. It is typically a letter+number code
- capacity number
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- dev boolean
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- family string
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size string
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- tier
PostgresInstance Sku Tier 
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
- name str
- The name of the SKU. It is typically a letter+number code
- capacity int
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- dev bool
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- family str
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size str
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- tier
PostgresInstance Sku Tier 
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
- name String
- The name of the SKU. It is typically a letter+number code
- capacity Number
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- dev Boolean
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- family String
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size String
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- tier "Hyperscale"
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
PostgresInstanceSkuResponse, PostgresInstanceSkuResponseArgs        
- Name string
- The name of the SKU. It is typically a letter+number code
- Capacity int
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- Dev bool
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- Family string
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- Size string
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- Tier string
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
- Name string
- The name of the SKU. It is typically a letter+number code
- Capacity int
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- Dev bool
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- Family string
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- Size string
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- Tier string
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
- name String
- The name of the SKU. It is typically a letter+number code
- capacity Integer
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- dev Boolean
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- family String
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size String
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- tier String
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
- name string
- The name of the SKU. It is typically a letter+number code
- capacity number
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- dev boolean
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- family string
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size string
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- tier string
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
- name str
- The name of the SKU. It is typically a letter+number code
- capacity int
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- dev bool
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- family str
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size str
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- tier str
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
- name String
- The name of the SKU. It is typically a letter+number code
- capacity Number
- If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
- dev Boolean
- Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
- family String
- If the service has different generations of hardware, for the same SKU, then that can be captured here.
- size String
- The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
- tier String
- This field is required to be implemented by the Resource Provider if the service has more than one tier.
PostgresInstanceSkuTier, PostgresInstanceSkuTierArgs        
- Hyperscale
- Hyperscale
- PostgresInstance Sku Tier Hyperscale 
- Hyperscale
- Hyperscale
- Hyperscale
- Hyperscale
- Hyperscale
- HYPERSCALE
- Hyperscale
- "Hyperscale"
- Hyperscale
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azurearcdata:PostgresInstance testpostgresInstance /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData/postgresInstances/{postgresInstanceName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0