pub struct Client { /* private fields */ }
Expand description

Client for Amazon Lex Model Building V2

Client for invoking operations on Amazon Lex Model Building V2. Each operation on Amazon Lex Model Building V2 is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_lexmodelsv2::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::retry::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_lexmodelsv2::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_lexmodelsv2::Client::from_conf(config);

Implementations§

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the BatchCreateCustomVocabularyItem operation.

Constructs a fluent builder for the BatchDeleteCustomVocabularyItem operation.

Constructs a fluent builder for the BatchUpdateCustomVocabularyItem operation.

Constructs a fluent builder for the BuildBotLocale operation.

Constructs a fluent builder for the CreateBot operation.

Constructs a fluent builder for the CreateBotAlias operation.

Constructs a fluent builder for the CreateBotLocale operation.

Constructs a fluent builder for the CreateBotVersion operation.

Constructs a fluent builder for the CreateExport operation.

Constructs a fluent builder for the CreateIntent operation.

Constructs a fluent builder for the CreateResourcePolicy operation.

Constructs a fluent builder for the CreateResourcePolicyStatement operation.

Constructs a fluent builder for the CreateSlot operation.

Constructs a fluent builder for the CreateSlotType operation.

Constructs a fluent builder for the CreateUploadUrl operation.

Constructs a fluent builder for the DeleteBot operation.

Constructs a fluent builder for the DeleteBotAlias operation.

Constructs a fluent builder for the DeleteBotLocale operation.

Constructs a fluent builder for the DeleteBotVersion operation.

Constructs a fluent builder for the DeleteCustomVocabulary operation.

Constructs a fluent builder for the DeleteExport operation.

Constructs a fluent builder for the DeleteImport operation.

Constructs a fluent builder for the DeleteIntent operation.

Constructs a fluent builder for the DeleteResourcePolicy operation.

Constructs a fluent builder for the DeleteResourcePolicyStatement operation.

Constructs a fluent builder for the DeleteSlot operation.

Constructs a fluent builder for the DeleteSlotType operation.

Constructs a fluent builder for the DeleteUtterances operation.

Constructs a fluent builder for the DescribeBot operation.

Constructs a fluent builder for the DescribeBotAlias operation.

Constructs a fluent builder for the DescribeBotLocale operation.

Constructs a fluent builder for the DescribeBotRecommendation operation.

Constructs a fluent builder for the DescribeBotVersion operation.

Constructs a fluent builder for the DescribeCustomVocabularyMetadata operation.

Constructs a fluent builder for the DescribeExport operation.

Constructs a fluent builder for the DescribeImport operation.

Constructs a fluent builder for the DescribeIntent operation.

Constructs a fluent builder for the DescribeResourcePolicy operation.

Constructs a fluent builder for the DescribeSlot operation.

Constructs a fluent builder for the DescribeSlotType operation.

Constructs a fluent builder for the ListAggregatedUtterances operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListBotAliases operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListBotLocales operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListBotRecommendations operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListBots operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • sort_by(BotSortBy) / set_sort_by(Option<BotSortBy>):

      Specifies sorting parameters for the list of bots. You can specify that the list be sorted by bot name in ascending or descending order.

    • filters(Vec<BotFilter>) / set_filters(Option<Vec<BotFilter>>):

      Provides the specification of a filter used to limit the bots in the response to only those that match the filter specification. You can only specify one filter and one string to filter on.

    • max_results(i32) / set_max_results(Option<i32>):

      The maximum number of bots to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned.

    • next_token(impl Into<String>) / set_next_token(Option<String>):

      If the response from the ListBots operation contains more results than specified in the maxResults parameter, a token is returned in the response.

      Use the returned token in the nextToken parameter of a ListBots request to return the next page of results. For a complete set of results, call the ListBots operation until the nextToken returned in the response is null.

  • On success, responds with ListBotsOutput with field(s):
    • bot_summaries(Option<Vec<BotSummary>>):

      Summary information for the bots that meet the filter criteria specified in the request. The length of the list is specified in the maxResults parameter of the request. If there are more bots available, the nextToken field contains a token to the next page of results.

    • next_token(Option<String>):

      A token that indicates whether there are more results to return in a response to the ListBots operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListBots operation request to get the next page of results.

  • On failure, responds with SdkError<ListBotsError>

Constructs a fluent builder for the ListBotVersions operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListBuiltInIntents operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListBuiltInSlotTypes operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListCustomVocabularyItems operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListExports operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListImports operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListIntents operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListRecommendedIntents operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListSlots operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListSlotTypes operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the SearchAssociatedTranscripts operation.

Constructs a fluent builder for the StartBotRecommendation operation.

Constructs a fluent builder for the StartImport operation.

Constructs a fluent builder for the StopBotRecommendation operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the UntagResource operation.

Constructs a fluent builder for the UpdateBot operation.

Constructs a fluent builder for the UpdateBotAlias operation.

Constructs a fluent builder for the UpdateBotLocale operation.

Constructs a fluent builder for the UpdateBotRecommendation operation.

Constructs a fluent builder for the UpdateExport operation.

Constructs a fluent builder for the UpdateIntent operation.

Constructs a fluent builder for the UpdateResourcePolicy operation.

Constructs a fluent builder for the UpdateSlot operation.

Constructs a fluent builder for the UpdateSlotType operation.

Creates a new client from an SDK Config.

Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Creates a new client from the service Config.

Panics
  • This method will panic if the conf is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the conf is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more