planetscale 0.6.0 published on Sunday, Apr 27, 2025 by planetscale
planetscale.getBranchSchemaLint
Start a Neo task
Explain and create a planetscale.getBranchSchemaLint resource
planetscale 0.6.0 published on Sunday, Apr 27, 2025 by planetscale
Linting errors for the schema of a PlanetScale branch.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as planetscale from "@pulumi/planetscale";
const example = planetscale.getBranchSchemaLint({
organization: "example.com",
database: "example_db",
branch: "main",
});
export const schemaLint = example;
import pulumi
import pulumi_planetscale as planetscale
example = planetscale.get_branch_schema_lint(organization="example.com",
database="example_db",
branch="main")
pulumi.export("schemaLint", example)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/planetscale/planetscale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := planetscale.GetBranchSchemaLint(ctx, &planetscale.GetBranchSchemaLintArgs{
Organization: "example.com",
Database: "example_db",
Branch: "main",
}, nil)
if err != nil {
return err
}
ctx.Export("schemaLint", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Planetscale = Pulumi.Planetscale;
return await Deployment.RunAsync(() =>
{
var example = Planetscale.GetBranchSchemaLint.Invoke(new()
{
Organization = "example.com",
Database = "example_db",
Branch = "main",
});
return new Dictionary<string, object?>
{
["schemaLint"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.planetscale.PlanetscaleFunctions;
import com.pulumi.planetscale.inputs.GetBranchSchemaLintArgs;
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) {
final var example = PlanetscaleFunctions.getBranchSchemaLint(GetBranchSchemaLintArgs.builder()
.organization("example.com")
.database("example_db")
.branch("main")
.build());
ctx.export("schemaLint", example.applyValue(getBranchSchemaLintResult -> getBranchSchemaLintResult));
}
}
variables:
example:
fn::invoke:
function: planetscale:getBranchSchemaLint
arguments:
organization: example.com
database: example_db
branch: main
outputs:
schemaLint: ${example}
Using getBranchSchemaLint
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBranchSchemaLint(args: GetBranchSchemaLintArgs, opts?: InvokeOptions): Promise<GetBranchSchemaLintResult>
function getBranchSchemaLintOutput(args: GetBranchSchemaLintOutputArgs, opts?: InvokeOptions): Output<GetBranchSchemaLintResult>def get_branch_schema_lint(branch: Optional[str] = None,
database: Optional[str] = None,
organization: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBranchSchemaLintResult
def get_branch_schema_lint_output(branch: Optional[pulumi.Input[str]] = None,
database: Optional[pulumi.Input[str]] = None,
organization: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBranchSchemaLintResult]func GetBranchSchemaLint(ctx *Context, args *GetBranchSchemaLintArgs, opts ...InvokeOption) (*GetBranchSchemaLintResult, error)
func GetBranchSchemaLintOutput(ctx *Context, args *GetBranchSchemaLintOutputArgs, opts ...InvokeOption) GetBranchSchemaLintResultOutput> Note: This function is named GetBranchSchemaLint in the Go SDK.
public static class GetBranchSchemaLint
{
public static Task<GetBranchSchemaLintResult> InvokeAsync(GetBranchSchemaLintArgs args, InvokeOptions? opts = null)
public static Output<GetBranchSchemaLintResult> Invoke(GetBranchSchemaLintInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBranchSchemaLintResult> getBranchSchemaLint(GetBranchSchemaLintArgs args, InvokeOptions options)
public static Output<GetBranchSchemaLintResult> getBranchSchemaLint(GetBranchSchemaLintArgs args, InvokeOptions options)
fn::invoke:
function: planetscale:index/getBranchSchemaLint:getBranchSchemaLint
arguments:
# arguments dictionaryThe following arguments are supported:
- Branch string
- Database string
- Organization string
- Branch string
- Database string
- Organization string
- branch String
- database String
- organization String
- branch string
- database string
- organization string
- branch str
- database str
- organization str
- branch String
- database String
- organization String
getBranchSchemaLint Result
The following output properties are available:
- Branch string
- Database string
- Errors
List<Get
Branch Schema Lint Error> - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- Branch string
- Database string
- Errors
[]Get
Branch Schema Lint Error - Id string
- The provider-assigned unique ID for this managed resource.
- Organization string
- branch String
- database String
- errors
List<Get
Branch Schema Lint Error> - id String
- The provider-assigned unique ID for this managed resource.
- organization String
- branch string
- database string
- errors
Get
Branch Schema Lint Error[] - id string
- The provider-assigned unique ID for this managed resource.
- organization string
- branch str
- database str
- errors
Sequence[Get
Branch Schema Lint Error] - id str
- The provider-assigned unique ID for this managed resource.
- organization str
- branch String
- database String
- errors List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- organization String
Supporting Types
GetBranchSchemaLintError
- Auto
Increment List<string>Column Names - A list of invalid auto-incremented columns.
- Charset
Name string - The charset of the schema.
- Check
Constraint stringName - The name of the invalid check constraint.
- Column
Name string - The column in a table relevant to the error.
- Docs
Url string - A link to the documentation related to the error.
- Engine
Name string - The engine of the schema.
- Enum
Value string - The name of the invalid enum value.
- Error
Description string - A description for the error that occurred.
- Foreign
Key List<string>Column Names - A list of invalid foreign key columns in a table.
- Json
Path string - The path for an invalid JSON column.
- Keyspace
Name string - The keyspace of the schema with the error.
- Lint
Error string - Code representing.
- Partition
Name string - The name of the invalid partition in the schema.
- Partitioning
Type string - The name of the invalid partitioning type.
- Subject
Type string - The subject for the errors.
- Table
Name string - The table with the error.
- Vindex
Name string - The name of the vindex for the schema.
- Auto
Increment []stringColumn Names - A list of invalid auto-incremented columns.
- Charset
Name string - The charset of the schema.
- Check
Constraint stringName - The name of the invalid check constraint.
- Column
Name string - The column in a table relevant to the error.
- Docs
Url string - A link to the documentation related to the error.
- Engine
Name string - The engine of the schema.
- Enum
Value string - The name of the invalid enum value.
- Error
Description string - A description for the error that occurred.
- Foreign
Key []stringColumn Names - A list of invalid foreign key columns in a table.
- Json
Path string - The path for an invalid JSON column.
- Keyspace
Name string - The keyspace of the schema with the error.
- Lint
Error string - Code representing.
- Partition
Name string - The name of the invalid partition in the schema.
- Partitioning
Type string - The name of the invalid partitioning type.
- Subject
Type string - The subject for the errors.
- Table
Name string - The table with the error.
- Vindex
Name string - The name of the vindex for the schema.
- auto
Increment List<String>Column Names - A list of invalid auto-incremented columns.
- charset
Name String - The charset of the schema.
- check
Constraint StringName - The name of the invalid check constraint.
- column
Name String - The column in a table relevant to the error.
- docs
Url String - A link to the documentation related to the error.
- engine
Name String - The engine of the schema.
- enum
Value String - The name of the invalid enum value.
- error
Description String - A description for the error that occurred.
- foreign
Key List<String>Column Names - A list of invalid foreign key columns in a table.
- json
Path String - The path for an invalid JSON column.
- keyspace
Name String - The keyspace of the schema with the error.
- lint
Error String - Code representing.
- partition
Name String - The name of the invalid partition in the schema.
- partitioning
Type String - The name of the invalid partitioning type.
- subject
Type String - The subject for the errors.
- table
Name String - The table with the error.
- vindex
Name String - The name of the vindex for the schema.
- auto
Increment string[]Column Names - A list of invalid auto-incremented columns.
- charset
Name string - The charset of the schema.
- check
Constraint stringName - The name of the invalid check constraint.
- column
Name string - The column in a table relevant to the error.
- docs
Url string - A link to the documentation related to the error.
- engine
Name string - The engine of the schema.
- enum
Value string - The name of the invalid enum value.
- error
Description string - A description for the error that occurred.
- foreign
Key string[]Column Names - A list of invalid foreign key columns in a table.
- json
Path string - The path for an invalid JSON column.
- keyspace
Name string - The keyspace of the schema with the error.
- lint
Error string - Code representing.
- partition
Name string - The name of the invalid partition in the schema.
- partitioning
Type string - The name of the invalid partitioning type.
- subject
Type string - The subject for the errors.
- table
Name string - The table with the error.
- vindex
Name string - The name of the vindex for the schema.
- auto_
increment_ Sequence[str]column_ names - A list of invalid auto-incremented columns.
- charset_
name str - The charset of the schema.
- check_
constraint_ strname - The name of the invalid check constraint.
- column_
name str - The column in a table relevant to the error.
- docs_
url str - A link to the documentation related to the error.
- engine_
name str - The engine of the schema.
- enum_
value str - The name of the invalid enum value.
- error_
description str - A description for the error that occurred.
- foreign_
key_ Sequence[str]column_ names - A list of invalid foreign key columns in a table.
- json_
path str - The path for an invalid JSON column.
- keyspace_
name str - The keyspace of the schema with the error.
- lint_
error str - Code representing.
- partition_
name str - The name of the invalid partition in the schema.
- partitioning_
type str - The name of the invalid partitioning type.
- subject_
type str - The subject for the errors.
- table_
name str - The table with the error.
- vindex_
name str - The name of the vindex for the schema.
- auto
Increment List<String>Column Names - A list of invalid auto-incremented columns.
- charset
Name String - The charset of the schema.
- check
Constraint StringName - The name of the invalid check constraint.
- column
Name String - The column in a table relevant to the error.
- docs
Url String - A link to the documentation related to the error.
- engine
Name String - The engine of the schema.
- enum
Value String - The name of the invalid enum value.
- error
Description String - A description for the error that occurred.
- foreign
Key List<String>Column Names - A list of invalid foreign key columns in a table.
- json
Path String - The path for an invalid JSON column.
- keyspace
Name String - The keyspace of the schema with the error.
- lint
Error String - Code representing.
- partition
Name String - The name of the invalid partition in the schema.
- partitioning
Type String - The name of the invalid partitioning type.
- subject
Type String - The subject for the errors.
- table
Name String - The table with the error.
- vindex
Name String - The name of the vindex for the schema.
Package Details
- Repository
- planetscale planetscale/terraform-provider-planetscale
- License
- Notes
- This Pulumi package is based on the
planetscaleTerraform Provider.
planetscale 0.6.0 published on Sunday, Apr 27, 2025 by planetscale
