1. Packages
  2. AWS
  3. API Docs
  4. lex
  5. getIntent
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.lex.getIntent

Explore with Pulumi AI

AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

Provides details about a specific Amazon Lex Intent.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const orderFlowers = aws.lex.getIntent({
    name: "OrderFlowers",
    version: "$LATEST",
});
Copy
import pulumi
import pulumi_aws as aws

order_flowers = aws.lex.get_intent(name="OrderFlowers",
    version="$LATEST")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lex.LookupIntent(ctx, &lex.LookupIntentArgs{
			Name:    "OrderFlowers",
			Version: pulumi.StringRef("$LATEST"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var orderFlowers = Aws.Lex.GetIntent.Invoke(new()
    {
        Name = "OrderFlowers",
        Version = "$LATEST",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lex.LexFunctions;
import com.pulumi.aws.lex.inputs.GetIntentArgs;
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) {
        final var orderFlowers = LexFunctions.getIntent(GetIntentArgs.builder()
            .name("OrderFlowers")
            .version("$LATEST")
            .build());

    }
}
Copy
variables:
  orderFlowers:
    fn::invoke:
      function: aws:lex:getIntent
      arguments:
        name: OrderFlowers
        version: $LATEST
Copy

Using getIntent

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 getIntent(args: GetIntentArgs, opts?: InvokeOptions): Promise<GetIntentResult>
function getIntentOutput(args: GetIntentOutputArgs, opts?: InvokeOptions): Output<GetIntentResult>
Copy
def get_intent(name: Optional[str] = None,
               version: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetIntentResult
def get_intent_output(name: Optional[pulumi.Input[str]] = None,
               version: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetIntentResult]
Copy
func LookupIntent(ctx *Context, args *LookupIntentArgs, opts ...InvokeOption) (*LookupIntentResult, error)
func LookupIntentOutput(ctx *Context, args *LookupIntentOutputArgs, opts ...InvokeOption) LookupIntentResultOutput
Copy

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

public static class GetIntent 
{
    public static Task<GetIntentResult> InvokeAsync(GetIntentArgs args, InvokeOptions? opts = null)
    public static Output<GetIntentResult> Invoke(GetIntentInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIntentResult> getIntent(GetIntentArgs args, InvokeOptions options)
public static Output<GetIntentResult> getIntent(GetIntentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:lex/getIntent:getIntent
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the intent. The name is case sensitive.
Version string
Version of the intent.
Name This property is required. string
Name of the intent. The name is case sensitive.
Version string
Version of the intent.
name This property is required. String
Name of the intent. The name is case sensitive.
version String
Version of the intent.
name This property is required. string
Name of the intent. The name is case sensitive.
version string
Version of the intent.
name This property is required. str
Name of the intent. The name is case sensitive.
version str
Version of the intent.
name This property is required. String
Name of the intent. The name is case sensitive.
version String
Version of the intent.

getIntent Result

The following output properties are available:

Arn string
ARN of the Lex intent.
Checksum string
Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.
CreatedDate string
Date when the intent version was created.
Description string
Description of the intent.
Id string
The provider-assigned unique ID for this managed resource.
LastUpdatedDate string
Date when the $LATEST version of this intent was updated.
Name string
Name of the intent, not case sensitive.
ParentIntentSignature string
A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.
Version string
Version of the bot.
Arn string
ARN of the Lex intent.
Checksum string
Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.
CreatedDate string
Date when the intent version was created.
Description string
Description of the intent.
Id string
The provider-assigned unique ID for this managed resource.
LastUpdatedDate string
Date when the $LATEST version of this intent was updated.
Name string
Name of the intent, not case sensitive.
ParentIntentSignature string
A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.
Version string
Version of the bot.
arn String
ARN of the Lex intent.
checksum String
Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.
createdDate String
Date when the intent version was created.
description String
Description of the intent.
id String
The provider-assigned unique ID for this managed resource.
lastUpdatedDate String
Date when the $LATEST version of this intent was updated.
name String
Name of the intent, not case sensitive.
parentIntentSignature String
A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.
version String
Version of the bot.
arn string
ARN of the Lex intent.
checksum string
Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.
createdDate string
Date when the intent version was created.
description string
Description of the intent.
id string
The provider-assigned unique ID for this managed resource.
lastUpdatedDate string
Date when the $LATEST version of this intent was updated.
name string
Name of the intent, not case sensitive.
parentIntentSignature string
A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.
version string
Version of the bot.
arn str
ARN of the Lex intent.
checksum str
Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.
created_date str
Date when the intent version was created.
description str
Description of the intent.
id str
The provider-assigned unique ID for this managed resource.
last_updated_date str
Date when the $LATEST version of this intent was updated.
name str
Name of the intent, not case sensitive.
parent_intent_signature str
A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.
version str
Version of the bot.
arn String
ARN of the Lex intent.
checksum String
Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.
createdDate String
Date when the intent version was created.
description String
Description of the intent.
id String
The provider-assigned unique ID for this managed resource.
lastUpdatedDate String
Date when the $LATEST version of this intent was updated.
name String
Name of the intent, not case sensitive.
parentIntentSignature String
A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.
version String
Version of the bot.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi