// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; export class Schema extends pulumi.CustomResource { /** * Get an existing Schema resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. */ public static get(name: string, id: pulumi.Input, state?: SchemaState, opts?: pulumi.CustomResourceOptions): Schema { return new Schema(name, state, { ...opts, id: id }); } /** * When true, use the existing schema if it exists */ public readonly ifNotExists: pulumi.Output; /** * The name of the schema */ public readonly name: pulumi.Output; /** * The ROLE name who owns the schema */ public readonly owner: pulumi.Output; public readonly policies: pulumi.Output<{ create?: boolean, createWithGrant?: boolean, role?: string, usage?: boolean, usageWithGrant?: boolean }[]>; /** * Create a Schema resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: SchemaArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: SchemaArgs | SchemaState, opts?: pulumi.CustomResourceOptions) { let inputs: pulumi.Inputs = {}; if (opts && opts.id) { const state: SchemaState = argsOrState as SchemaState | undefined; inputs["ifNotExists"] = state ? state.ifNotExists : undefined; inputs["name"] = state ? state.name : undefined; inputs["owner"] = state ? state.owner : undefined; inputs["policies"] = state ? state.policies : undefined; } else { const args = argsOrState as SchemaArgs | undefined; inputs["ifNotExists"] = args ? args.ifNotExists : undefined; inputs["name"] = args ? args.name : undefined; inputs["owner"] = args ? args.owner : undefined; inputs["policies"] = args ? args.policies : undefined; } super("postgresql:schema/schema:Schema", name, inputs, opts); } } /** * Input properties used for looking up and filtering Schema resources. */ export interface SchemaState { /** * When true, use the existing schema if it exists */ readonly ifNotExists?: pulumi.Input; /** * The name of the schema */ readonly name?: pulumi.Input; /** * The ROLE name who owns the schema */ readonly owner?: pulumi.Input; readonly policies?: pulumi.Input, createWithGrant?: pulumi.Input, role?: pulumi.Input, usage?: pulumi.Input, usageWithGrant?: pulumi.Input }>[]>; } /** * The set of arguments for constructing a Schema resource. */ export interface SchemaArgs { /** * When true, use the existing schema if it exists */ readonly ifNotExists?: pulumi.Input; /** * The name of the schema */ readonly name?: pulumi.Input; /** * The ROLE name who owns the schema */ readonly owner?: pulumi.Input; readonly policies?: pulumi.Input, createWithGrant?: pulumi.Input, role?: pulumi.Input, usage?: pulumi.Input, usageWithGrant?: pulumi.Input }>[]>; }