UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

177 lines 6.74 kB
import * as pulumi from "@pulumi/pulumi"; /** * You can create multiple versions of your agent and publish them to separate environments. * * To get more information about Version, see: * * * [API documentation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.versions) * * How-to Guides * * [Official Documentation](https://cloud.google.com/dialogflow/docs/) * * ## Example Usage * * ### Dialogflow Version Full * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * import * as time from "@pulumiverse/time"; * * const project = new gcp.organizations.Project("project", { * projectId: "my-proj", * name: "my-proj", * orgId: "123456789", * billingAccount: "000000-0000000-0000000-000000", * deletionPolicy: "DELETE", * }); * const dialogflow = new gcp.projects.Service("dialogflow", { * project: project.projectId, * service: "dialogflow.googleapis.com", * }); * const waitEnableServiceApi = new time.Sleep("wait_enable_service_api", {createDuration: "30s"}, { * dependsOn: [dialogflow], * }); * const basicAgent = new gcp.diagflow.Agent("basic_agent", { * displayName: "example_agent", * defaultLanguageCode: "en", * timeZone: "America/New_York", * project: project.projectId, * }, { * dependsOn: [waitEnableServiceApi], * }); * const fullVersion = new gcp.diagflow.Version("full_version", { * description: "Dialogflow Version", * parent: pulumi.interpolate`projects/${project.projectId}/agent`, * }, { * dependsOn: [basicAgent], * }); * ``` * * ## Import * * Version can be imported using any of these accepted formats: * * * `{{parent}}/versions/{{name}}` * * `{{parent}}/{{name}}` * * When using the `pulumi import` command, Version can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:diagflow/version:Version default {{parent}}/versions/{{name}} * $ pulumi import gcp:diagflow/version:Version default {{parent}}/{{name}} * ``` */ export declare class Version extends pulumi.CustomResource { /** * Get an existing Version 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. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VersionState, opts?: pulumi.CustomResourceOptions): Version; /** * Returns true if the given object is an instance of Version. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Version; /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ readonly deletionPolicy: pulumi.Output<string>; /** * The developer-provided description of this version. */ readonly description: pulumi.Output<string | undefined>; /** * The unique identifier of this agent version. */ readonly name: pulumi.Output<string>; /** * The Flow to create an Version for. * Format: projects/<Project ID>/agent. */ readonly parent: pulumi.Output<string | undefined>; /** * The status of this version. */ readonly status: pulumi.Output<string>; /** * The sequential number of this version. */ readonly versionNumber: pulumi.Output<number>; /** * Create a Version 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?: VersionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Version resources. */ export interface VersionState { /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ deletionPolicy?: pulumi.Input<string | undefined>; /** * The developer-provided description of this version. */ description?: pulumi.Input<string | undefined>; /** * The unique identifier of this agent version. */ name?: pulumi.Input<string | undefined>; /** * The Flow to create an Version for. * Format: projects/<Project ID>/agent. */ parent?: pulumi.Input<string | undefined>; /** * The status of this version. */ status?: pulumi.Input<string | undefined>; /** * The sequential number of this version. */ versionNumber?: pulumi.Input<number | undefined>; } /** * The set of arguments for constructing a Version resource. */ export interface VersionArgs { /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ deletionPolicy?: pulumi.Input<string | undefined>; /** * The developer-provided description of this version. */ description?: pulumi.Input<string | undefined>; /** * The Flow to create an Version for. * Format: projects/<Project ID>/agent. */ parent?: pulumi.Input<string | undefined>; } //# sourceMappingURL=version.d.ts.map