1. Packages
  2. Turso Provider
  3. API Docs
  4. Group
turso 0.2.3 published on Friday, Mar 7, 2025 by celest-dev

turso.Group

Explore with Pulumi AI

Create Group Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Group(name: string, args: GroupArgs, opts?: CustomResourceOptions);
@overload
def Group(resource_name: str,
          args: GroupArgs,
          opts: Optional[ResourceOptions] = None)

@overload
def Group(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          locations: Optional[Sequence[str]] = None,
          primary: Optional[str] = None,
          extensions: Optional[str] = None,
          group_id: Optional[str] = None,
          name: Optional[str] = None)
func NewGroup(ctx *Context, name string, args GroupArgs, opts ...ResourceOption) (*Group, error)
public Group(string name, GroupArgs args, CustomResourceOptions? opts = null)
public Group(String name, GroupArgs args)
public Group(String name, GroupArgs args, CustomResourceOptions options)
type: turso:Group
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GroupArgs
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 groupResource = new Turso.Group("groupResource", new()
{
    Locations = new[]
    {
        "string",
    },
    Primary = "string",
    Extensions = "string",
    GroupId = "string",
    Name = "string",
});
Copy
example, err := turso.NewGroup(ctx, "groupResource", &turso.GroupArgs{
	Locations: pulumi.StringArray{
		pulumi.String("string"),
	},
	Primary:    pulumi.String("string"),
	Extensions: pulumi.String("string"),
	GroupId:    pulumi.String("string"),
	Name:       pulumi.String("string"),
})
Copy
var groupResource = new Group("groupResource", GroupArgs.builder()
    .locations("string")
    .primary("string")
    .extensions("string")
    .groupId("string")
    .name("string")
    .build());
Copy
group_resource = turso.Group("groupResource",
    locations=["string"],
    primary="string",
    extensions="string",
    group_id="string",
    name="string")
Copy
const groupResource = new turso.Group("groupResource", {
    locations: ["string"],
    primary: "string",
    extensions: "string",
    groupId: "string",
    name: "string",
});
Copy
type: turso:Group
properties:
    extensions: string
    groupId: string
    locations:
        - string
    name: string
    primary: string
Copy

Group 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 Group resource accepts the following input properties:

Locations This property is required. List<string>
All locations for the new group.
Primary This property is required. string
The primary location key for the new group.
Extensions string
Set to all to enable all extensions.
GroupId string
The name of the group.
Name string
The name of the new group.
Locations This property is required. []string
All locations for the new group.
Primary This property is required. string
The primary location key for the new group.
Extensions string
Set to all to enable all extensions.
GroupId string
The name of the group.
Name string
The name of the new group.
locations This property is required. List<String>
All locations for the new group.
primary This property is required. String
The primary location key for the new group.
extensions String
Set to all to enable all extensions.
groupId String
The name of the group.
name String
The name of the new group.
locations This property is required. string[]
All locations for the new group.
primary This property is required. string
The primary location key for the new group.
extensions string
Set to all to enable all extensions.
groupId string
The name of the group.
name string
The name of the new group.
locations This property is required. Sequence[str]
All locations for the new group.
primary This property is required. str
The primary location key for the new group.
extensions str
Set to all to enable all extensions.
group_id str
The name of the group.
name str
The name of the new group.
locations This property is required. List<String>
All locations for the new group.
primary This property is required. String
The primary location key for the new group.
extensions String
Set to all to enable all extensions.
groupId String
The name of the group.
name String
The name of the new group.

Outputs

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

Group GroupGroup
Id string
The provider-assigned unique ID for this managed resource.
Group GroupGroup
Id string
The provider-assigned unique ID for this managed resource.
group GroupGroup
id String
The provider-assigned unique ID for this managed resource.
group GroupGroup
id string
The provider-assigned unique ID for this managed resource.
group GroupGroup
id str
The provider-assigned unique ID for this managed resource.
group Property Map
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Group Resource

Get an existing Group 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?: GroupState, opts?: CustomResourceOptions): Group
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        extensions: Optional[str] = None,
        group: Optional[GroupGroupArgs] = None,
        group_id: Optional[str] = None,
        locations: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        primary: Optional[str] = None) -> Group
func GetGroup(ctx *Context, name string, id IDInput, state *GroupState, opts ...ResourceOption) (*Group, error)
public static Group Get(string name, Input<string> id, GroupState? state, CustomResourceOptions? opts = null)
public static Group get(String name, Output<String> id, GroupState state, CustomResourceOptions options)
resources:  _:    type: turso:Group    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Extensions string
Set to all to enable all extensions.
Group GroupGroup
GroupId string
The name of the group.
Locations List<string>
All locations for the new group.
Name string
The name of the new group.
Primary string
The primary location key for the new group.
Extensions string
Set to all to enable all extensions.
Group GroupGroupArgs
GroupId string
The name of the group.
Locations []string
All locations for the new group.
Name string
The name of the new group.
Primary string
The primary location key for the new group.
extensions String
Set to all to enable all extensions.
group GroupGroup
groupId String
The name of the group.
locations List<String>
All locations for the new group.
name String
The name of the new group.
primary String
The primary location key for the new group.
extensions string
Set to all to enable all extensions.
group GroupGroup
groupId string
The name of the group.
locations string[]
All locations for the new group.
name string
The name of the new group.
primary string
The primary location key for the new group.
extensions str
Set to all to enable all extensions.
group GroupGroupArgs
group_id str
The name of the group.
locations Sequence[str]
All locations for the new group.
name str
The name of the new group.
primary str
The primary location key for the new group.
extensions String
Set to all to enable all extensions.
group Property Map
groupId String
The name of the group.
locations List<String>
All locations for the new group.
name String
The name of the new group.
primary String
The primary location key for the new group.

Supporting Types

GroupGroup
, GroupGroupArgs

Archived bool
Groups on the free tier get archived after some inactivity.
Locations List<string>
An array of location keys the group is located.
Name string
The group name, unique across your organization.
Primary string
The primary location key.
Uuid string
The group universal unique identifier (UUID).
Version string
The current libSQL server version the databases in that group are running.
Archived bool
Groups on the free tier get archived after some inactivity.
Locations []string
An array of location keys the group is located.
Name string
The group name, unique across your organization.
Primary string
The primary location key.
Uuid string
The group universal unique identifier (UUID).
Version string
The current libSQL server version the databases in that group are running.
archived Boolean
Groups on the free tier get archived after some inactivity.
locations List<String>
An array of location keys the group is located.
name String
The group name, unique across your organization.
primary String
The primary location key.
uuid String
The group universal unique identifier (UUID).
version String
The current libSQL server version the databases in that group are running.
archived boolean
Groups on the free tier get archived after some inactivity.
locations string[]
An array of location keys the group is located.
name string
The group name, unique across your organization.
primary string
The primary location key.
uuid string
The group universal unique identifier (UUID).
version string
The current libSQL server version the databases in that group are running.
archived bool
Groups on the free tier get archived after some inactivity.
locations Sequence[str]
An array of location keys the group is located.
name str
The group name, unique across your organization.
primary str
The primary location key.
uuid str
The group universal unique identifier (UUID).
version str
The current libSQL server version the databases in that group are running.
archived Boolean
Groups on the free tier get archived after some inactivity.
locations List<String>
An array of location keys the group is located.
name String
The group name, unique across your organization.
primary String
The primary location key.
uuid String
The group universal unique identifier (UUID).
version String
The current libSQL server version the databases in that group are running.

Package Details

Repository
turso celest-dev/terraform-provider-turso
License
Notes
This Pulumi package is based on the turso Terraform Provider.