CxVersion

class CxVersion : KotlinCustomResource

You can create multiple versions of your agent flows and deploy them to separate serving environments. When you edit a flow, you are editing a draft flow. At any point, you can save a draft flow as a flow version. A flow version is an immutable snapshot of your flow data and associated agent data like intents, entities, webhooks, pages, route groups, etc. To get more information about Version, see:

Example Usage

Dialogflowcx Version Full

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.diagflow.CxAgent;
import com.pulumi.gcp.diagflow.CxAgentArgs;
import com.pulumi.gcp.diagflow.inputs.CxAgentSpeechToTextSettingsArgs;
import com.pulumi.gcp.diagflow.CxVersion;
import com.pulumi.gcp.diagflow.CxVersionArgs;
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) {
var agent = new CxAgent("agent", CxAgentArgs.builder()
.displayName("dialogflowcx-agent")
.location("global")
.defaultLanguageCode("en")
.supportedLanguageCodes(
"fr",
"de",
"es")
.timeZone("America/New_York")
.description("Example description.")
.avatarUri("https://cloud.google.com/_static/images/cloud/icons/favicons/onecloud/super_cloud.png")
.enableStackdriverLogging(true)
.enableSpellCorrection(true)
.speechToTextSettings(CxAgentSpeechToTextSettingsArgs.builder()
.enableSpeechAdaptation(true)
.build())
.build());
var version1 = new CxVersion("version1", CxVersionArgs.builder()
.parent(agent.startFlow())
.displayName("1.0.0")
.description("version 1.0.0")
.build());
}
}

Import

Version can be imported using any of these accepted formats

$ pulumi import gcp:diagflow/cxVersion:CxVersion default {{parent}}/versions/{{name}}
$ pulumi import gcp:diagflow/cxVersion:CxVersion default {{parent}}/{{name}}

Properties

Link copied to clipboard
val createTime: Output<String>

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Link copied to clipboard
val description: Output<String>?

The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.

Link copied to clipboard
val displayName: Output<String>

The human-readable name of the version. Limit of 64 characters.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.

Link copied to clipboard

The NLU settings of the flow at version creation. Structure is documented below.

Link copied to clipboard
val parent: Output<String>?

The Flow to create an Version for. Format: projects//locations//agents//flows/.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: Output<String>

The state of this version.

Link copied to clipboard
val urn: Output<String>