com.pulumi.aws.lex.BotAlias Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.lex;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.lex.BotAliasArgs;
import com.pulumi.aws.lex.inputs.BotAliasState;
import com.pulumi.aws.lex.outputs.BotAliasConversationLogs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Provides an Amazon Lex Bot Alias resource. For more information see
* [Amazon Lex: How It Works](https://docs.aws.amazon.com/lex/latest/dg/how-it-works.html)
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.lex.BotAlias;
* import com.pulumi.aws.lex.BotAliasArgs;
* 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 orderFlowersProd = new BotAlias("orderFlowersProd", BotAliasArgs.builder()
* .botName("OrderFlowers")
* .botVersion("1")
* .description("Production Version of the OrderFlowers Bot.")
* .name("OrderFlowersProd")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import bot aliases using an ID with the format `bot_name:bot_alias_name`. For example:
*
* ```sh
* $ pulumi import aws:lex/botAlias:BotAlias order_flowers_prod OrderFlowers:OrderFlowersProd
* ```
*
*/
@ResourceType(type="aws:lex/botAlias:BotAlias")
public class BotAlias extends com.pulumi.resources.CustomResource {
/**
* The ARN of the bot alias.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return The ARN of the bot alias.
*
*/
public Output arn() {
return this.arn;
}
/**
* The name of the bot.
*
*/
@Export(name="botName", refs={String.class}, tree="[0]")
private Output botName;
/**
* @return The name of the bot.
*
*/
public Output botName() {
return this.botName;
}
/**
* The version of the bot.
*
*/
@Export(name="botVersion", refs={String.class}, tree="[0]")
private Output botVersion;
/**
* @return The version of the bot.
*
*/
public Output botVersion() {
return this.botVersion;
}
/**
* Checksum of the bot alias.
*
*/
@Export(name="checksum", refs={String.class}, tree="[0]")
private Output checksum;
/**
* @return Checksum of the bot alias.
*
*/
public Output checksum() {
return this.checksum;
}
/**
* The settings that determine how Amazon Lex uses conversation logs for the alias. Attributes are documented under conversation_logs.
*
*/
@Export(name="conversationLogs", refs={BotAliasConversationLogs.class}, tree="[0]")
private Output* @Nullable */ BotAliasConversationLogs> conversationLogs;
/**
* @return The settings that determine how Amazon Lex uses conversation logs for the alias. Attributes are documented under conversation_logs.
*
*/
public Output> conversationLogs() {
return Codegen.optional(this.conversationLogs);
}
/**
* The date that the bot alias was created.
*
*/
@Export(name="createdDate", refs={String.class}, tree="[0]")
private Output createdDate;
/**
* @return The date that the bot alias was created.
*
*/
public Output createdDate() {
return this.createdDate;
}
/**
* A description of the alias. Must be less than or equal to 200 characters in length.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return A description of the alias. Must be less than or equal to 200 characters in length.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.
*
*/
@Export(name="lastUpdatedDate", refs={String.class}, tree="[0]")
private Output lastUpdatedDate;
/**
* @return The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.
*
*/
public Output lastUpdatedDate() {
return this.lastUpdatedDate;
}
/**
* The name of the alias. The name is not case sensitive. Must be less than or equal to 100 characters in length.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the alias. The name is not case sensitive. Must be less than or equal to 100 characters in length.
*
*/
public Output name() {
return this.name;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public BotAlias(java.lang.String name) {
this(name, BotAliasArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public BotAlias(java.lang.String name, BotAliasArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public BotAlias(java.lang.String name, BotAliasArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:lex/botAlias:BotAlias", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private BotAlias(java.lang.String name, Output id, @Nullable BotAliasState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:lex/botAlias:BotAlias", name, state, makeResourceOptions(options, id), false);
}
private static BotAliasArgs makeArgs(BotAliasArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? BotAliasArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host 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
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static BotAlias get(java.lang.String name, Output id, @Nullable BotAliasState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new BotAlias(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy