Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

YdbDatabaseServerless

Yandex Database (serverless) resource. For more information, see the official documentation.

Example Usage

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var database1 = new Yandex.YdbDatabaseServerless("database1", new Yandex.YdbDatabaseServerlessArgs
        {
            FolderId = data.Yandex_resourcemanager_folder.Test_folder.Id,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := yandex.NewYdbDatabaseServerless(ctx, "database1", &yandex.YdbDatabaseServerlessArgs{
			FolderId: pulumi.Any(data.Yandex_resourcemanager_folder.Test_folder.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_yandex as yandex

database1 = yandex.YdbDatabaseServerless("database1", folder_id=data["yandex_resourcemanager_folder"]["test_folder"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const database1 = new yandex.YdbDatabaseServerless("database1", {
    folderId: yandex_resourcemanager_folder_test_folder.id,
});

Create a YdbDatabaseServerless Resource

new YdbDatabaseServerless(name: string, args?: YdbDatabaseServerlessArgs, opts?: CustomResourceOptions);
@overload
def YdbDatabaseServerless(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          description: Optional[str] = None,
                          folder_id: Optional[str] = None,
                          labels: Optional[Mapping[str, str]] = None,
                          location_id: Optional[str] = None,
                          name: Optional[str] = None)
@overload
def YdbDatabaseServerless(resource_name: str,
                          args: Optional[YdbDatabaseServerlessArgs] = None,
                          opts: Optional[ResourceOptions] = None)
func NewYdbDatabaseServerless(ctx *Context, name string, args *YdbDatabaseServerlessArgs, opts ...ResourceOption) (*YdbDatabaseServerless, error)
public YdbDatabaseServerless(string name, YdbDatabaseServerlessArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args YdbDatabaseServerlessArgs
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 YdbDatabaseServerlessArgs
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 YdbDatabaseServerlessArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args YdbDatabaseServerlessArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

YdbDatabaseServerless Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The YdbDatabaseServerless resource accepts the following input properties:

Description string
A description for the Yandex Database serverless cluster.
FolderId string
ID of the folder that the Yandex Database serverless cluster belongs to. It will be deduced from provider configuration if not set explicitly.
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the Yandex Database serverless cluster.
LocationId string
Location ID for the Yandex Database serverless cluster.
Name string
Name for the Yandex Database serverless cluster.
Description string
A description for the Yandex Database serverless cluster.
FolderId string
ID of the folder that the Yandex Database serverless cluster belongs to. It will be deduced from provider configuration if not set explicitly.
Labels map[string]string
A set of key/value label pairs to assign to the Yandex Database serverless cluster.
LocationId string
Location ID for the Yandex Database serverless cluster.
Name string
Name for the Yandex Database serverless cluster.
description string
A description for the Yandex Database serverless cluster.
folderId string
ID of the folder that the Yandex Database serverless cluster belongs to. It will be deduced from provider configuration if not set explicitly.
labels {[key: string]: string}
A set of key/value label pairs to assign to the Yandex Database serverless cluster.
locationId string
Location ID for the Yandex Database serverless cluster.
name string
Name for the Yandex Database serverless cluster.
description str
A description for the Yandex Database serverless cluster.
folder_id str
ID of the folder that the Yandex Database serverless cluster belongs to. It will be deduced from provider configuration if not set explicitly.
labels Mapping[str, str]
A set of key/value label pairs to assign to the Yandex Database serverless cluster.
location_id str
Location ID for the Yandex Database serverless cluster.
name str
Name for the Yandex Database serverless cluster.

Outputs

All input properties are implicitly available as output properties. Additionally, the YdbDatabaseServerless resource produces the following output properties:

CreatedAt string
The Yandex Database serverless cluster creation timestamp.
DatabasePath string
Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
DocumentApiEndpoint string
Document API endpoint of the Yandex Database serverless cluster.
Id string
The provider-assigned unique ID for this managed resource.
Status string
Status of the Yandex Database serverless cluster.
TlsEnabled bool
Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
YdbApiEndpoint string
API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
YdbFullEndpoint string
Full endpoint of the Yandex Database serverless cluster.
CreatedAt string
The Yandex Database serverless cluster creation timestamp.
DatabasePath string
Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
DocumentApiEndpoint string
Document API endpoint of the Yandex Database serverless cluster.
Id string
The provider-assigned unique ID for this managed resource.
Status string
Status of the Yandex Database serverless cluster.
TlsEnabled bool
Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
YdbApiEndpoint string
API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
YdbFullEndpoint string
Full endpoint of the Yandex Database serverless cluster.
createdAt string
The Yandex Database serverless cluster creation timestamp.
databasePath string
Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
documentApiEndpoint string
Document API endpoint of the Yandex Database serverless cluster.
id string
The provider-assigned unique ID for this managed resource.
status string
Status of the Yandex Database serverless cluster.
tlsEnabled boolean
Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
ydbApiEndpoint string
API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
ydbFullEndpoint string
Full endpoint of the Yandex Database serverless cluster.
created_at str
The Yandex Database serverless cluster creation timestamp.
database_path str
Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
document_api_endpoint str
Document API endpoint of the Yandex Database serverless cluster.
id str
The provider-assigned unique ID for this managed resource.
status str
Status of the Yandex Database serverless cluster.
tls_enabled bool
Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
ydb_api_endpoint str
API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
ydb_full_endpoint str
Full endpoint of the Yandex Database serverless cluster.

Look up an Existing YdbDatabaseServerless Resource

Get an existing YdbDatabaseServerless resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: YdbDatabaseServerlessState, opts?: CustomResourceOptions): YdbDatabaseServerless
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        database_path: Optional[str] = None,
        description: Optional[str] = None,
        document_api_endpoint: Optional[str] = None,
        folder_id: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        location_id: Optional[str] = None,
        name: Optional[str] = None,
        status: Optional[str] = None,
        tls_enabled: Optional[bool] = None,
        ydb_api_endpoint: Optional[str] = None,
        ydb_full_endpoint: Optional[str] = None) -> YdbDatabaseServerless
func GetYdbDatabaseServerless(ctx *Context, name string, id IDInput, state *YdbDatabaseServerlessState, opts ...ResourceOption) (*YdbDatabaseServerless, error)
public static YdbDatabaseServerless Get(string name, Input<string> id, YdbDatabaseServerlessState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

CreatedAt string
The Yandex Database serverless cluster creation timestamp.
DatabasePath string
Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
Description string
A description for the Yandex Database serverless cluster.
DocumentApiEndpoint string
Document API endpoint of the Yandex Database serverless cluster.
FolderId string
ID of the folder that the Yandex Database serverless cluster belongs to. It will be deduced from provider configuration if not set explicitly.
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the Yandex Database serverless cluster.
LocationId string
Location ID for the Yandex Database serverless cluster.
Name string
Name for the Yandex Database serverless cluster.
Status string
Status of the Yandex Database serverless cluster.
TlsEnabled bool
Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
YdbApiEndpoint string
API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
YdbFullEndpoint string
Full endpoint of the Yandex Database serverless cluster.
CreatedAt string
The Yandex Database serverless cluster creation timestamp.
DatabasePath string
Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
Description string
A description for the Yandex Database serverless cluster.
DocumentApiEndpoint string
Document API endpoint of the Yandex Database serverless cluster.
FolderId string
ID of the folder that the Yandex Database serverless cluster belongs to. It will be deduced from provider configuration if not set explicitly.
Labels map[string]string
A set of key/value label pairs to assign to the Yandex Database serverless cluster.
LocationId string
Location ID for the Yandex Database serverless cluster.
Name string
Name for the Yandex Database serverless cluster.
Status string
Status of the Yandex Database serverless cluster.
TlsEnabled bool
Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
YdbApiEndpoint string
API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
YdbFullEndpoint string
Full endpoint of the Yandex Database serverless cluster.
createdAt string
The Yandex Database serverless cluster creation timestamp.
databasePath string
Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
description string
A description for the Yandex Database serverless cluster.
documentApiEndpoint string
Document API endpoint of the Yandex Database serverless cluster.
folderId string
ID of the folder that the Yandex Database serverless cluster belongs to. It will be deduced from provider configuration if not set explicitly.
labels {[key: string]: string}
A set of key/value label pairs to assign to the Yandex Database serverless cluster.
locationId string
Location ID for the Yandex Database serverless cluster.
name string
Name for the Yandex Database serverless cluster.
status string
Status of the Yandex Database serverless cluster.
tlsEnabled boolean
Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
ydbApiEndpoint string
API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
ydbFullEndpoint string
Full endpoint of the Yandex Database serverless cluster.
created_at str
The Yandex Database serverless cluster creation timestamp.
database_path str
Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
description str
A description for the Yandex Database serverless cluster.
document_api_endpoint str
Document API endpoint of the Yandex Database serverless cluster.
folder_id str
ID of the folder that the Yandex Database serverless cluster belongs to. It will be deduced from provider configuration if not set explicitly.
labels Mapping[str, str]
A set of key/value label pairs to assign to the Yandex Database serverless cluster.
location_id str
Location ID for the Yandex Database serverless cluster.
name str
Name for the Yandex Database serverless cluster.
status str
Status of the Yandex Database serverless cluster.
tls_enabled bool
Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
ydb_api_endpoint str
API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
ydb_full_endpoint str
Full endpoint of the Yandex Database serverless cluster.

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.