yandex.YdbDatabaseServerless
Explore with Pulumi AI
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
})
}
Coming soon!
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,
});
Coming soon!
Create YdbDatabaseServerless Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new YdbDatabaseServerless(name: string, args?: YdbDatabaseServerlessArgs, opts?: CustomResourceOptions);
@overload
def YdbDatabaseServerless(resource_name: str,
args: Optional[YdbDatabaseServerlessArgs] = None,
opts: Optional[ResourceOptions] = None)
@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)
func NewYdbDatabaseServerless(ctx *Context, name string, args *YdbDatabaseServerlessArgs, opts ...ResourceOption) (*YdbDatabaseServerless, error)
public YdbDatabaseServerless(string name, YdbDatabaseServerlessArgs? args = null, CustomResourceOptions? opts = null)
public YdbDatabaseServerless(String name, YdbDatabaseServerlessArgs args)
public YdbDatabaseServerless(String name, YdbDatabaseServerlessArgs args, CustomResourceOptions options)
type: yandex:YdbDatabaseServerless
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 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.
- name String
- The unique name of the resource.
- args YdbDatabaseServerlessArgs
- 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 ydbDatabaseServerlessResource = new Yandex.YdbDatabaseServerless("ydbDatabaseServerlessResource", new()
{
Description = "string",
FolderId = "string",
Labels =
{
{ "string", "string" },
},
LocationId = "string",
Name = "string",
});
example, err := yandex.NewYdbDatabaseServerless(ctx, "ydbDatabaseServerlessResource", &yandex.YdbDatabaseServerlessArgs{
Description: pulumi.String("string"),
FolderId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
LocationId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var ydbDatabaseServerlessResource = new YdbDatabaseServerless("ydbDatabaseServerlessResource", YdbDatabaseServerlessArgs.builder()
.description("string")
.folderId("string")
.labels(Map.of("string", "string"))
.locationId("string")
.name("string")
.build());
ydb_database_serverless_resource = yandex.YdbDatabaseServerless("ydbDatabaseServerlessResource",
description="string",
folder_id="string",
labels={
"string": "string",
},
location_id="string",
name="string")
const ydbDatabaseServerlessResource = new yandex.YdbDatabaseServerless("ydbDatabaseServerlessResource", {
description: "string",
folderId: "string",
labels: {
string: "string",
},
locationId: "string",
name: "string",
});
type: yandex:YdbDatabaseServerless
properties:
description: string
folderId: string
labels:
string: string
locationId: string
name: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The YdbDatabaseServerless resource accepts the following input properties:
- Description string
- A description for the Yandex Database serverless cluster.
- Folder
Id 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.
- Location
Id 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.
- Folder
Id 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.
- Location
Id 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.
- folder
Id 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.
- location
Id 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.
- folder
Id 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.
- location
Id 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.
- description String
- A description for the Yandex Database serverless cluster.
- folder
Id 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>
- A set of key/value label pairs to assign to the Yandex Database serverless cluster.
- location
Id String - Location ID for the Yandex Database serverless cluster.
- name String
- 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:
- Created
At string - The Yandex Database serverless cluster creation timestamp.
- Database
Path string - Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
- Document
Api stringEndpoint - 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.
- Tls
Enabled bool - Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
- Ydb
Api stringEndpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- Ydb
Full stringEndpoint - Full endpoint of the Yandex Database serverless cluster.
- Created
At string - The Yandex Database serverless cluster creation timestamp.
- Database
Path string - Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
- Document
Api stringEndpoint - 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.
- Tls
Enabled bool - Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
- Ydb
Api stringEndpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- Ydb
Full stringEndpoint - Full endpoint of the Yandex Database serverless cluster.
- created
At String - The Yandex Database serverless cluster creation timestamp.
- database
Path String - Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
- document
Api StringEndpoint - 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.
- tls
Enabled Boolean - Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Api StringEndpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Full StringEndpoint - Full endpoint of the Yandex Database serverless cluster.
- created
At string - The Yandex Database serverless cluster creation timestamp.
- database
Path string - Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
- document
Api stringEndpoint - 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.
- tls
Enabled boolean - Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Api stringEndpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Full stringEndpoint - 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_ strendpoint - 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_ strendpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb_
full_ strendpoint - Full endpoint of the Yandex Database serverless cluster.
- created
At String - The Yandex Database serverless cluster creation timestamp.
- database
Path String - Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
- document
Api StringEndpoint - 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.
- tls
Enabled Boolean - Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Api StringEndpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Full StringEndpoint - Full endpoint of the Yandex Database serverless cluster.
Look up 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)
public static YdbDatabaseServerless get(String name, Output<String> id, YdbDatabaseServerlessState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Created
At string - The Yandex Database serverless cluster creation timestamp.
- Database
Path string - Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
- Description string
- A description for the Yandex Database serverless cluster.
- Document
Api stringEndpoint - Document API endpoint of the Yandex Database serverless cluster.
- Folder
Id 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.
- Location
Id 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.
- Tls
Enabled bool - Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
- Ydb
Api stringEndpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- Ydb
Full stringEndpoint - Full endpoint of the Yandex Database serverless cluster.
- Created
At string - The Yandex Database serverless cluster creation timestamp.
- Database
Path string - Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
- Description string
- A description for the Yandex Database serverless cluster.
- Document
Api stringEndpoint - Document API endpoint of the Yandex Database serverless cluster.
- Folder
Id 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.
- Location
Id 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.
- Tls
Enabled bool - Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
- Ydb
Api stringEndpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- Ydb
Full stringEndpoint - Full endpoint of the Yandex Database serverless cluster.
- created
At String - The Yandex Database serverless cluster creation timestamp.
- database
Path String - Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
- description String
- A description for the Yandex Database serverless cluster.
- document
Api StringEndpoint - Document API endpoint of the Yandex Database serverless cluster.
- folder
Id 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.
- location
Id 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.
- tls
Enabled Boolean - Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Api StringEndpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Full StringEndpoint - Full endpoint of the Yandex Database serverless cluster.
- created
At string - The Yandex Database serverless cluster creation timestamp.
- database
Path string - Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
- description string
- A description for the Yandex Database serverless cluster.
- document
Api stringEndpoint - Document API endpoint of the Yandex Database serverless cluster.
- folder
Id 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.
- location
Id 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.
- tls
Enabled boolean - Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Api stringEndpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Full stringEndpoint - 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_ strendpoint - 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_ strendpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb_
full_ strendpoint - Full endpoint of the Yandex Database serverless cluster.
- created
At String - The Yandex Database serverless cluster creation timestamp.
- database
Path String - Full database path of the Yandex Database serverless cluster. Useful for SDK configuration.
- description String
- A description for the Yandex Database serverless cluster.
- document
Api StringEndpoint - Document API endpoint of the Yandex Database serverless cluster.
- folder
Id 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>
- A set of key/value label pairs to assign to the Yandex Database serverless cluster.
- location
Id 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.
- tls
Enabled Boolean - Whether TLS is enabled for the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Api StringEndpoint - API endpoint of the Yandex Database serverless cluster. Useful for SDK configuration.
- ydb
Full StringEndpoint - Full endpoint of the Yandex Database serverless cluster.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.