AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getBotAlias

Provides details about a specific Amazon Lex Bot Alias.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var orderFlowersProd = Output.Create(Aws.Lex.GetBotAlias.InvokeAsync(new Aws.Lex.GetBotAliasArgs
        {
            BotName = "OrderFlowers",
            Name = "OrderFlowersProd",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lex.LookupBotAlias(ctx, &lex.LookupBotAliasArgs{
			BotName: "OrderFlowers",
			Name:    "OrderFlowersProd",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var orderFlowersProd = Output.of(LexFunctions.getBotAlias(GetBotAliasArgs.builder()
            .botName("OrderFlowers")
            .name("OrderFlowersProd")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

order_flowers_prod = aws.lex.get_bot_alias(bot_name="OrderFlowers",
    name="OrderFlowersProd")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const orderFlowersProd = pulumi.output(aws.lex.getBotAlias({
    botName: "OrderFlowers",
    name: "OrderFlowersProd",
}));
variables:
  orderFlowersProd:
    Fn::Invoke:
      Function: aws:lex:getBotAlias
      Arguments:
        botName: OrderFlowers
        name: OrderFlowersProd

Using getBotAlias

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 getBotAlias(args: GetBotAliasArgs, opts?: InvokeOptions): Promise<GetBotAliasResult>
function getBotAliasOutput(args: GetBotAliasOutputArgs, opts?: InvokeOptions): Output<GetBotAliasResult>
def get_bot_alias(bot_name: Optional[str] = None,
                  name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetBotAliasResult
def get_bot_alias_output(bot_name: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetBotAliasResult]
func LookupBotAlias(ctx *Context, args *LookupBotAliasArgs, opts ...InvokeOption) (*LookupBotAliasResult, error)
func LookupBotAliasOutput(ctx *Context, args *LookupBotAliasOutputArgs, opts ...InvokeOption) LookupBotAliasResultOutput

> Note: This function is named LookupBotAlias in the Go SDK.

public static class GetBotAlias 
{
    public static Task<GetBotAliasResult> InvokeAsync(GetBotAliasArgs args, InvokeOptions? opts = null)
    public static Output<GetBotAliasResult> Invoke(GetBotAliasInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBotAliasResult> getBotAlias(GetBotAliasArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:lex/getBotAlias:getBotAlias
  Arguments:
    # Arguments dictionary

The following arguments are supported:

BotName string

The name of the bot.

Name string

The name of the bot alias. The name is case sensitive.

BotName string

The name of the bot.

Name string

The name of the bot alias. The name is case sensitive.

botName String

The name of the bot.

name String

The name of the bot alias. The name is case sensitive.

botName string

The name of the bot.

name string

The name of the bot alias. The name is case sensitive.

bot_name str

The name of the bot.

name str

The name of the bot alias. The name is case sensitive.

botName String

The name of the bot.

name String

The name of the bot alias. The name is case sensitive.

getBotAlias Result

The following output properties are available:

Arn string

The ARN of the bot alias.

BotName string

The name of the bot.

BotVersion string

The version of the bot that the alias points to.

Checksum string

Checksum of the bot alias.

CreatedDate string

The date that the bot alias was created.

Description string

A description of the alias.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.

Name string

The name of the alias. The name is not case sensitive.

Arn string

The ARN of the bot alias.

BotName string

The name of the bot.

BotVersion string

The version of the bot that the alias points to.

Checksum string

Checksum of the bot alias.

CreatedDate string

The date that the bot alias was created.

Description string

A description of the alias.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.

Name string

The name of the alias. The name is not case sensitive.

arn String

The ARN of the bot alias.

botName String

The name of the bot.

botVersion String

The version of the bot that the alias points to.

checksum String

Checksum of the bot alias.

createdDate String

The date that the bot alias was created.

description String

A description of the alias.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.

name String

The name of the alias. The name is not case sensitive.

arn string

The ARN of the bot alias.

botName string

The name of the bot.

botVersion string

The version of the bot that the alias points to.

checksum string

Checksum of the bot alias.

createdDate string

The date that the bot alias was created.

description string

A description of the alias.

id string

The provider-assigned unique ID for this managed resource.

lastUpdatedDate string

The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.

name string

The name of the alias. The name is not case sensitive.

arn str

The ARN of the bot alias.

bot_name str

The name of the bot.

bot_version str

The version of the bot that the alias points to.

checksum str

Checksum of the bot alias.

created_date str

The date that the bot alias was created.

description str

A description of the alias.

id str

The provider-assigned unique ID for this managed resource.

last_updated_date str

The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.

name str

The name of the alias. The name is not case sensitive.

arn String

The ARN of the bot alias.

botName String

The name of the bot.

botVersion String

The version of the bot that the alias points to.

checksum String

Checksum of the bot alias.

createdDate String

The date that the bot alias was created.

description String

A description of the alias.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same.

name String

The name of the alias. The name is not case sensitive.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.