Struct aws_sdk_bedrockagent::Client
source · pub struct Client { /* private fields */ }Expand description
Client for Agents for Amazon Bedrock
Client for invoking operations on Agents for Amazon Bedrock. Each operation on Agents for Amazon Bedrock is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_bedrockagent::Client::new(&config);Occasionally, SDKs may have additional service-specific values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Builder struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_bedrockagent::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
Implementations§
source§impl Client
impl Client
sourcepub fn associate_agent_knowledge_base(
&self,
) -> AssociateAgentKnowledgeBaseFluentBuilder
pub fn associate_agent_knowledge_base( &self, ) -> AssociateAgentKnowledgeBaseFluentBuilder
Constructs a fluent builder for the AssociateAgentKnowledgeBase operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent with which you want to associate the knowledge base.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent with which you want to associate the knowledge base.
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base to associate with the agent.
description(impl Into<String>)/set_description(Option<String>):
required: trueA description of what the agent should use the knowledge base for.
knowledge_base_state(KnowledgeBaseState)/set_knowledge_base_state(Option<KnowledgeBaseState>):
required: falseSpecifies whether to use the knowledge base or not when sending an InvokeAgent request.
- On success, responds with
AssociateAgentKnowledgeBaseOutputwith field(s):agent_knowledge_base(Option<AgentKnowledgeBase>):Contains details about the knowledge base that has been associated with the agent.
- On failure, responds with
SdkError<AssociateAgentKnowledgeBaseError>
source§impl Client
impl Client
sourcepub fn create_agent(&self) -> CreateAgentFluentBuilder
pub fn create_agent(&self) -> CreateAgentFluentBuilder
Constructs a fluent builder for the CreateAgent operation.
- The fluent builder is configurable:
agent_name(impl Into<String>)/set_agent_name(Option<String>):
required: trueA name for the agent that you create.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
instruction(impl Into<String>)/set_instruction(Option<String>):
required: falseInstructions that tell the agent what it should do and how it should interact with users.
foundation_model(impl Into<String>)/set_foundation_model(Option<String>):
required: falseThe foundation model to be used for orchestration by the agent you create.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the agent.
idle_session_ttl_in_seconds(i32)/set_idle_session_ttl_in_seconds(Option<i32>):
required: falseThe number of seconds for which Amazon Bedrock keeps information about a user’s conversation with the agent.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
agent_resource_role_arn(impl Into<String>)/set_agent_resource_role_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
customer_encryption_key_arn(impl Into<String>)/set_customer_encryption_key_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseAny tags that you want to attach to the agent.
prompt_override_configuration(PromptOverrideConfiguration)/set_prompt_override_configuration(Option<PromptOverrideConfiguration>):
required: falseContains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.
guardrail_configuration(GuardrailConfiguration)/set_guardrail_configuration(Option<GuardrailConfiguration>):
required: falseThe unique Guardrail configuration assigned to the agent when it is created.
memory_configuration(MemoryConfiguration)/set_memory_configuration(Option<MemoryConfiguration>):
required: falseContains the details of the memory configured for the agent.
- On success, responds with
CreateAgentOutputwith field(s):agent(Option<Agent>):Contains details about the agent created.
- On failure, responds with
SdkError<CreateAgentError>
source§impl Client
impl Client
sourcepub fn create_agent_action_group(&self) -> CreateAgentActionGroupFluentBuilder
pub fn create_agent_action_group(&self) -> CreateAgentActionGroupFluentBuilder
Constructs a fluent builder for the CreateAgentActionGroup operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent for which to create the action group.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent for which to create the action group.
action_group_name(impl Into<String>)/set_action_group_name(Option<String>):
required: trueThe name to give the action group.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the action group.
parent_action_group_signature(ActionGroupSignature)/set_parent_action_group_signature(Option<ActionGroupSignature>):
required: falseTo allow your agent to request the user for additional information when trying to complete a task, set this field to
AMAZON.UserInput. You must leave thedescription,apiSchema, andactionGroupExecutorfields blank for this action group.To allow your agent to generate, run, and troubleshoot code when trying to complete a task, set this field to
AMAZON.CodeInterpreter. You must leave thedescription,apiSchema, andactionGroupExecutorfields blank for this action group.During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn’t have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
action_group_executor(ActionGroupExecutor)/set_action_group_executor(Option<ActionGroupExecutor>):
required: falseThe Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
api_schema(ApiSchema)/set_api_schema(Option<ApiSchema>):
required: falseContains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas.
action_group_state(ActionGroupState)/set_action_group_state(Option<ActionGroupState>):
required: falseSpecifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
function_schema(FunctionSchema)/set_function_schema(Option<FunctionSchema>):
required: falseContains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
- On success, responds with
CreateAgentActionGroupOutputwith field(s):agent_action_group(Option<AgentActionGroup>):Contains details about the action group that was created.
- On failure, responds with
SdkError<CreateAgentActionGroupError>
source§impl Client
impl Client
sourcepub fn create_agent_alias(&self) -> CreateAgentAliasFluentBuilder
pub fn create_agent_alias(&self) -> CreateAgentAliasFluentBuilder
Constructs a fluent builder for the CreateAgentAlias operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent.
agent_alias_name(impl Into<String>)/set_agent_alias_name(Option<String>):
required: trueThe name of the alias.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the alias of the agent.
routing_configuration(AgentAliasRoutingConfigurationListItem)/set_routing_configuration(Option<Vec::<AgentAliasRoutingConfigurationListItem>>):
required: falseContains details about the routing configuration of the alias.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseAny tags that you want to attach to the alias of the agent.
- On success, responds with
CreateAgentAliasOutputwith field(s):agent_alias(Option<AgentAlias>):Contains details about the alias that was created.
- On failure, responds with
SdkError<CreateAgentAliasError>
source§impl Client
impl Client
sourcepub fn create_data_source(&self) -> CreateDataSourceFluentBuilder
pub fn create_data_source(&self) -> CreateDataSourceFluentBuilder
Constructs a fluent builder for the CreateDataSource operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base to which to add the data source.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the data source.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the data source.
data_source_configuration(DataSourceConfiguration)/set_data_source_configuration(Option<DataSourceConfiguration>):
required: trueThe connection configuration for the data source.
data_deletion_policy(DataDeletionPolicy)/set_data_deletion_policy(Option<DataDeletionPolicy>):
required: falseThe data deletion policy for the data source.
You can set the data deletion policy to:
-
DELETE: Deletes all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted, only the data. This flag is ignored if an Amazon Web Services account is deleted.
-
RETAIN: Retains all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted if you delete a knowledge base or data source resource.
-
server_side_encryption_configuration(ServerSideEncryptionConfiguration)/set_server_side_encryption_configuration(Option<ServerSideEncryptionConfiguration>):
required: falseContains details about the server-side encryption for the data source.
vector_ingestion_configuration(VectorIngestionConfiguration)/set_vector_ingestion_configuration(Option<VectorIngestionConfiguration>):
required: falseContains details about how to ingest the documents in the data source.
- On success, responds with
CreateDataSourceOutputwith field(s):data_source(Option<DataSource>):Contains details about the data source.
- On failure, responds with
SdkError<CreateDataSourceError>
source§impl Client
impl Client
sourcepub fn create_flow(&self) -> CreateFlowFluentBuilder
pub fn create_flow(&self) -> CreateFlowFluentBuilder
Constructs a fluent builder for the CreateFlow operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueA name for the flow.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description for the flow.
execution_role_arn(impl Into<String>)/set_execution_role_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.
customer_encryption_key_arn(impl Into<String>)/set_customer_encryption_key_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
definition(FlowDefinition)/set_definition(Option<FlowDefinition>):
required: falseA definition of the nodes and connections between nodes in the flow.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseAny tags that you want to attach to the flow. For more information, see Tagging resources in Amazon Bedrock.
- On success, responds with
CreateFlowOutputwith field(s):name(String):The name of the flow.
description(Option<String>):The description of the flow.
execution_role_arn(String):The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.
customer_encryption_key_arn(Option<String>):The Amazon Resource Name (ARN) of the KMS key that you encrypted the flow with.
id(String):The unique identifier of the flow.
arn(String):The Amazon Resource Name (ARN) of the flow.
status(FlowStatus):The status of the flow. When you submit this request, the status will be
NotPrepared. If creation fails, the status becomesFailed.created_at(DateTime):The time at which the flow was created.
updated_at(DateTime):The time at which the flow was last updated.
version(String):The version of the flow. When you create a flow, the version created is the
DRAFTversion.definition(Option<FlowDefinition>):A definition of the nodes and connections between nodes in the flow.
- On failure, responds with
SdkError<CreateFlowError>
source§impl Client
impl Client
sourcepub fn create_flow_alias(&self) -> CreateFlowAliasFluentBuilder
pub fn create_flow_alias(&self) -> CreateFlowAliasFluentBuilder
Constructs a fluent builder for the CreateFlowAlias operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueA name for the alias.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description for the alias.
routing_configuration(FlowAliasRoutingConfigurationListItem)/set_routing_configuration(Option<Vec::<FlowAliasRoutingConfigurationListItem>>):
required: trueContains information about the version to which to map the alias.
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow for which to create an alias.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseAny tags that you want to attach to the alias of the flow. For more information, see Tagging resources in Amazon Bedrock.
- On success, responds with
CreateFlowAliasOutputwith field(s):name(String):The name of the alias.
description(Option<String>):The description of the alias.
routing_configuration(Vec::<FlowAliasRoutingConfigurationListItem>):Contains information about the version that the alias is mapped to.
flow_id(String):The unique identifier of the flow that the alias belongs to.
id(String):The unique identifier of the alias.
arn(String):The Amazon Resource Name (ARN) of the alias.
created_at(DateTime):The time at which the alias was created.
updated_at(DateTime):The time at which the alias of the flow was last updated.
- On failure, responds with
SdkError<CreateFlowAliasError>
source§impl Client
impl Client
sourcepub fn create_flow_version(&self) -> CreateFlowVersionFluentBuilder
pub fn create_flow_version(&self) -> CreateFlowVersionFluentBuilder
Constructs a fluent builder for the CreateFlowVersion operation.
- The fluent builder is configurable:
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow that you want to create a version of.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the version of the flow.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- On success, responds with
CreateFlowVersionOutputwith field(s):name(String):The name of the version.
description(Option<String>):The description of the version.
execution_role_arn(String):The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.
customer_encryption_key_arn(Option<String>):The KMS key that the flow is encrypted with.
id(String):The unique identifier of the flow.
arn(String):The Amazon Resource Name (ARN) of the flow.
status(FlowStatus):The status of the flow.
created_at(DateTime):The time at which the flow was created.
version(String):The version of the flow that was created. Versions are numbered incrementally, starting from 1.
definition(Option<FlowDefinition>):A definition of the nodes and connections in the flow.
- On failure, responds with
SdkError<CreateFlowVersionError>
source§impl Client
impl Client
sourcepub fn create_knowledge_base(&self) -> CreateKnowledgeBaseFluentBuilder
pub fn create_knowledge_base(&self) -> CreateKnowledgeBaseFluentBuilder
Constructs a fluent builder for the CreateKnowledgeBase operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
name(impl Into<String>)/set_name(Option<String>):
required: trueA name for the knowledge base.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the knowledge base.
role_arn(impl Into<String>)/set_role_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
knowledge_base_configuration(KnowledgeBaseConfiguration)/set_knowledge_base_configuration(Option<KnowledgeBaseConfiguration>):
required: trueContains details about the embeddings model used for the knowledge base.
storage_configuration(StorageConfiguration)/set_storage_configuration(Option<StorageConfiguration>):
required: trueContains details about the configuration of the vector database used for the knowledge base.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseSpecify the key-value pairs for the tags that you want to attach to your knowledge base in this object.
- On success, responds with
CreateKnowledgeBaseOutputwith field(s):knowledge_base(Option<KnowledgeBase>):Contains details about the knowledge base.
- On failure, responds with
SdkError<CreateKnowledgeBaseError>
source§impl Client
impl Client
sourcepub fn create_prompt(&self) -> CreatePromptFluentBuilder
pub fn create_prompt(&self) -> CreatePromptFluentBuilder
Constructs a fluent builder for the CreatePrompt operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueA name for the prompt.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description for the prompt.
customer_encryption_key_arn(impl Into<String>)/set_customer_encryption_key_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
default_variant(impl Into<String>)/set_default_variant(Option<String>):
required: falseThe name of the default variant for the prompt. This value must match the
namefield in the relevant PromptVariant object.variants(PromptVariant)/set_variants(Option<Vec::<PromptVariant>>):
required: falseA list of objects, each containing details about a variant of the prompt.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseAny tags that you want to attach to the prompt. For more information, see Tagging resources in Amazon Bedrock.
- On success, responds with
CreatePromptOutputwith field(s):name(String):The name of the prompt.
description(Option<String>):The description of the prompt.
customer_encryption_key_arn(Option<String>):The Amazon Resource Name (ARN) of the KMS key that you encrypted the prompt with.
default_variant(Option<String>):The name of the default variant for your prompt.
variants(Option<Vec::<PromptVariant>>):A list of objects, each containing details about a variant of the prompt.
id(String):The unique identifier of the prompt.
arn(String):The Amazon Resource Name (ARN) of the prompt.
version(String):The version of the prompt. When you create a prompt, the version created is the
DRAFTversion.created_at(DateTime):The time at which the prompt was created.
updated_at(DateTime):The time at which the prompt was last updated.
- On failure, responds with
SdkError<CreatePromptError>
source§impl Client
impl Client
sourcepub fn create_prompt_version(&self) -> CreatePromptVersionFluentBuilder
pub fn create_prompt_version(&self) -> CreatePromptVersionFluentBuilder
Constructs a fluent builder for the CreatePromptVersion operation.
- The fluent builder is configurable:
prompt_identifier(impl Into<String>)/set_prompt_identifier(Option<String>):
required: trueThe unique identifier of the prompt that you want to create a version of.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description for the version of the prompt.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseAny tags that you want to attach to the version of the prompt. For more information, see Tagging resources in Amazon Bedrock.
- On success, responds with
CreatePromptVersionOutputwith field(s):name(String):The name of the prompt.
description(Option<String>):A description for the version.
customer_encryption_key_arn(Option<String>):The Amazon Resource Name (ARN) of the KMS key to encrypt the version of the prompt.
default_variant(Option<String>):The name of the default variant for the prompt. This value must match the
namefield in the relevant PromptVariant object.variants(Option<Vec::<PromptVariant>>):A list of objects, each containing details about a variant of the prompt.
id(String):The unique identifier of the prompt.
arn(String):The Amazon Resource Name (ARN) of the version of the prompt.
version(String):The version of the prompt that was created. Versions are numbered incrementally, starting from 1.
created_at(DateTime):The time at which the prompt was created.
updated_at(DateTime):The time at which the prompt was last updated.
- On failure, responds with
SdkError<CreatePromptVersionError>
source§impl Client
impl Client
sourcepub fn delete_agent(&self) -> DeleteAgentFluentBuilder
pub fn delete_agent(&self) -> DeleteAgentFluentBuilder
Constructs a fluent builder for the DeleteAgent operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent to delete.
skip_resource_in_use_check(bool)/set_skip_resource_in_use_check(Option<bool>):
required: falseBy default, this value is
falseand deletion is stopped if the resource is in use. If you set it totrue, the resource will be deleted even if the resource is in use.
- On success, responds with
DeleteAgentOutputwith field(s):agent_id(String):The unique identifier of the agent that was deleted.
agent_status(AgentStatus):The status of the agent.
- On failure, responds with
SdkError<DeleteAgentError>
source§impl Client
impl Client
sourcepub fn delete_agent_action_group(&self) -> DeleteAgentActionGroupFluentBuilder
pub fn delete_agent_action_group(&self) -> DeleteAgentActionGroupFluentBuilder
Constructs a fluent builder for the DeleteAgentActionGroup operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent that the action group belongs to.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent that the action group belongs to.
action_group_id(impl Into<String>)/set_action_group_id(Option<String>):
required: trueThe unique identifier of the action group to delete.
skip_resource_in_use_check(bool)/set_skip_resource_in_use_check(Option<bool>):
required: falseBy default, this value is
falseand deletion is stopped if the resource is in use. If you set it totrue, the resource will be deleted even if the resource is in use.
- On success, responds with
DeleteAgentActionGroupOutput - On failure, responds with
SdkError<DeleteAgentActionGroupError>
source§impl Client
impl Client
sourcepub fn delete_agent_alias(&self) -> DeleteAgentAliasFluentBuilder
pub fn delete_agent_alias(&self) -> DeleteAgentAliasFluentBuilder
Constructs a fluent builder for the DeleteAgentAlias operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent that the alias belongs to.
agent_alias_id(impl Into<String>)/set_agent_alias_id(Option<String>):
required: trueThe unique identifier of the alias to delete.
- On success, responds with
DeleteAgentAliasOutputwith field(s):agent_id(String):The unique identifier of the agent that the alias belongs to.
agent_alias_id(String):The unique identifier of the alias that was deleted.
agent_alias_status(AgentAliasStatus):The status of the alias.
- On failure, responds with
SdkError<DeleteAgentAliasError>
source§impl Client
impl Client
sourcepub fn delete_agent_version(&self) -> DeleteAgentVersionFluentBuilder
pub fn delete_agent_version(&self) -> DeleteAgentVersionFluentBuilder
Constructs a fluent builder for the DeleteAgentVersion operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent that the version belongs to.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent to delete.
skip_resource_in_use_check(bool)/set_skip_resource_in_use_check(Option<bool>):
required: falseBy default, this value is
falseand deletion is stopped if the resource is in use. If you set it totrue, the resource will be deleted even if the resource is in use.
- On success, responds with
DeleteAgentVersionOutputwith field(s):agent_id(String):The unique identifier of the agent that the version belongs to.
agent_version(String):The version that was deleted.
agent_status(AgentStatus):The status of the agent version.
- On failure, responds with
SdkError<DeleteAgentVersionError>
source§impl Client
impl Client
sourcepub fn delete_data_source(&self) -> DeleteDataSourceFluentBuilder
pub fn delete_data_source(&self) -> DeleteDataSourceFluentBuilder
Constructs a fluent builder for the DeleteDataSource operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base from which to delete the data source.
data_source_id(impl Into<String>)/set_data_source_id(Option<String>):
required: trueThe unique identifier of the data source to delete.
- On success, responds with
DeleteDataSourceOutputwith field(s):knowledge_base_id(String):The unique identifier of the knowledge base to which the data source that was deleted belonged.
data_source_id(String):The unique identifier of the data source that was deleted.
status(DataSourceStatus):The status of the data source.
- On failure, responds with
SdkError<DeleteDataSourceError>
source§impl Client
impl Client
sourcepub fn delete_flow(&self) -> DeleteFlowFluentBuilder
pub fn delete_flow(&self) -> DeleteFlowFluentBuilder
Constructs a fluent builder for the DeleteFlow operation.
- The fluent builder is configurable:
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow.
skip_resource_in_use_check(bool)/set_skip_resource_in_use_check(Option<bool>):
required: falseBy default, this value is
falseand deletion is stopped if the resource is in use. If you set it totrue, the resource will be deleted even if the resource is in use.
- On success, responds with
DeleteFlowOutputwith field(s):id(String):The unique identifier of the flow.
- On failure, responds with
SdkError<DeleteFlowError>
source§impl Client
impl Client
sourcepub fn delete_flow_alias(&self) -> DeleteFlowAliasFluentBuilder
pub fn delete_flow_alias(&self) -> DeleteFlowAliasFluentBuilder
Constructs a fluent builder for the DeleteFlowAlias operation.
- The fluent builder is configurable:
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow that the alias belongs to.
alias_identifier(impl Into<String>)/set_alias_identifier(Option<String>):
required: trueThe unique identifier of the alias to be deleted.
- On success, responds with
DeleteFlowAliasOutputwith field(s):flow_id(String):The unique identifier of the flow that the alias belongs to.
id(String):The unique identifier of the flow.
- On failure, responds with
SdkError<DeleteFlowAliasError>
source§impl Client
impl Client
sourcepub fn delete_flow_version(&self) -> DeleteFlowVersionFluentBuilder
pub fn delete_flow_version(&self) -> DeleteFlowVersionFluentBuilder
Constructs a fluent builder for the DeleteFlowVersion operation.
- The fluent builder is configurable:
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow whose version that you want to delete
flow_version(impl Into<String>)/set_flow_version(Option<String>):
required: trueThe version of the flow that you want to delete.
skip_resource_in_use_check(bool)/set_skip_resource_in_use_check(Option<bool>):
required: falseBy default, this value is
falseand deletion is stopped if the resource is in use. If you set it totrue, the resource will be deleted even if the resource is in use.
- On success, responds with
DeleteFlowVersionOutputwith field(s):id(String):The unique identifier of the flow.
version(String):The version of the flow being deleted.
- On failure, responds with
SdkError<DeleteFlowVersionError>
source§impl Client
impl Client
sourcepub fn delete_knowledge_base(&self) -> DeleteKnowledgeBaseFluentBuilder
pub fn delete_knowledge_base(&self) -> DeleteKnowledgeBaseFluentBuilder
Constructs a fluent builder for the DeleteKnowledgeBase operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base to delete.
- On success, responds with
DeleteKnowledgeBaseOutputwith field(s):knowledge_base_id(String):The unique identifier of the knowledge base that was deleted.
status(KnowledgeBaseStatus):The status of the knowledge base and whether it has been successfully deleted.
- On failure, responds with
SdkError<DeleteKnowledgeBaseError>
source§impl Client
impl Client
sourcepub fn delete_prompt(&self) -> DeletePromptFluentBuilder
pub fn delete_prompt(&self) -> DeletePromptFluentBuilder
Constructs a fluent builder for the DeletePrompt operation.
- The fluent builder is configurable:
prompt_identifier(impl Into<String>)/set_prompt_identifier(Option<String>):
required: trueThe unique identifier of the prompt.
prompt_version(impl Into<String>)/set_prompt_version(Option<String>):
required: falseThe version of the prompt to delete. To delete the prompt, omit this field.
- On success, responds with
DeletePromptOutputwith field(s):id(String):The unique identifier of the prompt that was deleted.
version(Option<String>):The version of the prompt that was deleted.
- On failure, responds with
SdkError<DeletePromptError>
source§impl Client
impl Client
sourcepub fn disassociate_agent_knowledge_base(
&self,
) -> DisassociateAgentKnowledgeBaseFluentBuilder
pub fn disassociate_agent_knowledge_base( &self, ) -> DisassociateAgentKnowledgeBaseFluentBuilder
Constructs a fluent builder for the DisassociateAgentKnowledgeBase operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent from which to disassociate the knowledge base.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent from which to disassociate the knowledge base.
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base to disassociate.
- On success, responds with
DisassociateAgentKnowledgeBaseOutput - On failure, responds with
SdkError<DisassociateAgentKnowledgeBaseError>
source§impl Client
impl Client
sourcepub fn get_agent(&self) -> GetAgentFluentBuilder
pub fn get_agent(&self) -> GetAgentFluentBuilder
Constructs a fluent builder for the GetAgent operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent.
- On success, responds with
GetAgentOutputwith field(s):agent(Option<Agent>):Contains details about the agent.
- On failure, responds with
SdkError<GetAgentError>
source§impl Client
impl Client
sourcepub fn get_agent_action_group(&self) -> GetAgentActionGroupFluentBuilder
pub fn get_agent_action_group(&self) -> GetAgentActionGroupFluentBuilder
Constructs a fluent builder for the GetAgentActionGroup operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent that the action group belongs to.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent that the action group belongs to.
action_group_id(impl Into<String>)/set_action_group_id(Option<String>):
required: trueThe unique identifier of the action group for which to get information.
- On success, responds with
GetAgentActionGroupOutputwith field(s):agent_action_group(Option<AgentActionGroup>):Contains details about the action group.
- On failure, responds with
SdkError<GetAgentActionGroupError>
source§impl Client
impl Client
sourcepub fn get_agent_alias(&self) -> GetAgentAliasFluentBuilder
pub fn get_agent_alias(&self) -> GetAgentAliasFluentBuilder
Constructs a fluent builder for the GetAgentAlias operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent to which the alias to get information belongs.
agent_alias_id(impl Into<String>)/set_agent_alias_id(Option<String>):
required: trueThe unique identifier of the alias for which to get information.
- On success, responds with
GetAgentAliasOutputwith field(s):agent_alias(Option<AgentAlias>):Contains information about the alias.
- On failure, responds with
SdkError<GetAgentAliasError>
source§impl Client
impl Client
sourcepub fn get_agent_knowledge_base(&self) -> GetAgentKnowledgeBaseFluentBuilder
pub fn get_agent_knowledge_base(&self) -> GetAgentKnowledgeBaseFluentBuilder
Constructs a fluent builder for the GetAgentKnowledgeBase operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent with which the knowledge base is associated.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent with which the knowledge base is associated.
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base associated with the agent.
- On success, responds with
GetAgentKnowledgeBaseOutputwith field(s):agent_knowledge_base(Option<AgentKnowledgeBase>):Contains details about a knowledge base attached to an agent.
- On failure, responds with
SdkError<GetAgentKnowledgeBaseError>
source§impl Client
impl Client
sourcepub fn get_agent_version(&self) -> GetAgentVersionFluentBuilder
pub fn get_agent_version(&self) -> GetAgentVersionFluentBuilder
Constructs a fluent builder for the GetAgentVersion operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent.
- On success, responds with
GetAgentVersionOutputwith field(s):agent_version(Option<AgentVersion>):Contains details about the version of the agent.
- On failure, responds with
SdkError<GetAgentVersionError>
source§impl Client
impl Client
sourcepub fn get_data_source(&self) -> GetDataSourceFluentBuilder
pub fn get_data_source(&self) -> GetDataSourceFluentBuilder
Constructs a fluent builder for the GetDataSource operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base that the data source was added to.
data_source_id(impl Into<String>)/set_data_source_id(Option<String>):
required: trueThe unique identifier of the data source.
- On success, responds with
GetDataSourceOutputwith field(s):data_source(Option<DataSource>):Contains details about the data source.
- On failure, responds with
SdkError<GetDataSourceError>
source§impl Client
impl Client
sourcepub fn get_flow(&self) -> GetFlowFluentBuilder
pub fn get_flow(&self) -> GetFlowFluentBuilder
Constructs a fluent builder for the GetFlow operation.
- The fluent builder is configurable:
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow.
- On success, responds with
GetFlowOutputwith field(s):name(String):The name of the flow.
description(Option<String>):The description of the flow.
execution_role_arn(String):The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see Create a service row for flows in the Amazon Bedrock User Guide.
customer_encryption_key_arn(Option<String>):The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with.
id(String):The unique identifier of the flow.
arn(String):The Amazon Resource Name (ARN) of the flow.
status(FlowStatus):The status of the flow. The following statuses are possible:
-
NotPrepared – The flow has been created or updated, but hasn’t been prepared. If you just created the flow, you can’t test it. If you updated the flow, the
DRAFTversion won’t contain the latest changes for testing. Send a PrepareFlow request to package the latest changes into theDRAFTversion. -
Preparing – The flow is being prepared so that the
DRAFTversion contains the latest changes for testing. -
Prepared – The flow is prepared and the
DRAFTversion contains the latest changes for testing. -
Failed – The last API operation that you invoked on the flow failed. Send a GetFlow request and check the error message in the
validationsfield.
-
created_at(DateTime):The time at which the flow was created.
updated_at(DateTime):The time at which the flow was last updated.
version(String):The version of the flow for which information was retrieved.
definition(Option<FlowDefinition>):The definition of the nodes and connections between the nodes in the flow.
validations(Option<Vec::<FlowValidation>>):A list of validation error messages related to the last failed operation on the flow.
- On failure, responds with
SdkError<GetFlowError>
source§impl Client
impl Client
sourcepub fn get_flow_alias(&self) -> GetFlowAliasFluentBuilder
pub fn get_flow_alias(&self) -> GetFlowAliasFluentBuilder
Constructs a fluent builder for the GetFlowAlias operation.
- The fluent builder is configurable:
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow that the alias belongs to.
alias_identifier(impl Into<String>)/set_alias_identifier(Option<String>):
required: trueThe unique identifier of the alias for which to retrieve information.
- On success, responds with
GetFlowAliasOutputwith field(s):name(String):The name of the alias.
description(Option<String>):The description of the flow.
routing_configuration(Vec::<FlowAliasRoutingConfigurationListItem>):Contains information about the version that the alias is mapped to.
flow_id(String):The unique identifier of the flow that the alias belongs to.
id(String):The unique identifier of the alias of the flow.
arn(String):The Amazon Resource Name (ARN) of the flow.
created_at(DateTime):The time at which the flow was created.
updated_at(DateTime):The time at which the alias was last updated.
- On failure, responds with
SdkError<GetFlowAliasError>
source§impl Client
impl Client
sourcepub fn get_flow_version(&self) -> GetFlowVersionFluentBuilder
pub fn get_flow_version(&self) -> GetFlowVersionFluentBuilder
Constructs a fluent builder for the GetFlowVersion operation.
- The fluent builder is configurable:
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow for which to get information.
flow_version(impl Into<String>)/set_flow_version(Option<String>):
required: trueThe version of the flow for which to get information.
- On success, responds with
GetFlowVersionOutputwith field(s):name(String):The name of the version.
description(Option<String>):The description of the flow.
execution_role_arn(String):The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.
customer_encryption_key_arn(Option<String>):The Amazon Resource Name (ARN) of the KMS key that the version of the flow is encrypted with.
id(String):The unique identifier of the flow.
arn(String):The Amazon Resource Name (ARN) of the flow.
status(FlowStatus):The status of the flow.
created_at(DateTime):The time at which the flow was created.
version(String):The version of the flow for which information was retrieved.
definition(Option<FlowDefinition>):The definition of the nodes and connections between nodes in the flow.
- On failure, responds with
SdkError<GetFlowVersionError>
source§impl Client
impl Client
sourcepub fn get_ingestion_job(&self) -> GetIngestionJobFluentBuilder
pub fn get_ingestion_job(&self) -> GetIngestionJobFluentBuilder
Constructs a fluent builder for the GetIngestionJob operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base for which the ingestion job applies.
data_source_id(impl Into<String>)/set_data_source_id(Option<String>):
required: trueThe unique identifier of the data source in the ingestion job.
ingestion_job_id(impl Into<String>)/set_ingestion_job_id(Option<String>):
required: trueThe unique identifier of the ingestion job.
- On success, responds with
GetIngestionJobOutputwith field(s):ingestion_job(Option<IngestionJob>):Contains details about the ingestion job.
- On failure, responds with
SdkError<GetIngestionJobError>
source§impl Client
impl Client
sourcepub fn get_knowledge_base(&self) -> GetKnowledgeBaseFluentBuilder
pub fn get_knowledge_base(&self) -> GetKnowledgeBaseFluentBuilder
Constructs a fluent builder for the GetKnowledgeBase operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base for which to get information.
- On success, responds with
GetKnowledgeBaseOutputwith field(s):knowledge_base(Option<KnowledgeBase>):Contains details about the knowledge base.
- On failure, responds with
SdkError<GetKnowledgeBaseError>
source§impl Client
impl Client
sourcepub fn get_prompt(&self) -> GetPromptFluentBuilder
pub fn get_prompt(&self) -> GetPromptFluentBuilder
Constructs a fluent builder for the GetPrompt operation.
- The fluent builder is configurable:
prompt_identifier(impl Into<String>)/set_prompt_identifier(Option<String>):
required: trueThe unique identifier of the prompt.
prompt_version(impl Into<String>)/set_prompt_version(Option<String>):
required: falseThe version of the prompt about which you want to retrieve information. Omit this field to return information about the working draft of the prompt.
- On success, responds with
GetPromptOutputwith field(s):name(String):The name of the prompt.
description(Option<String>):The descriptino of the prompt.
customer_encryption_key_arn(Option<String>):The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.
default_variant(Option<String>):The name of the default variant for the prompt. This value must match the
namefield in the relevant PromptVariant object.variants(Option<Vec::<PromptVariant>>):A list of objects, each containing details about a variant of the prompt.
id(String):The unique identifier of the prompt.
arn(String):The Amazon Resource Name (ARN) of the prompt or the prompt version (if you specified a version in the request).
version(String):The version of the prompt.
created_at(DateTime):The time at which the prompt was created.
updated_at(DateTime):The time at which the prompt was last updated.
- On failure, responds with
SdkError<GetPromptError>
source§impl Client
impl Client
sourcepub fn list_agent_action_groups(&self) -> ListAgentActionGroupsFluentBuilder
pub fn list_agent_action_groups(&self) -> ListAgentActionGroupsFluentBuilder
Constructs a fluent builder for the ListAgentActionGroups operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListAgentActionGroupsOutputwith field(s):action_group_summaries(Vec::<ActionGroupSummary>):A list of objects, each of which contains information about an action group.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListAgentActionGroupsError>
source§impl Client
impl Client
sourcepub fn list_agent_aliases(&self) -> ListAgentAliasesFluentBuilder
pub fn list_agent_aliases(&self) -> ListAgentAliasesFluentBuilder
Constructs a fluent builder for the ListAgentAliases operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListAgentAliasesOutputwith field(s):agent_alias_summaries(Vec::<AgentAliasSummary>):A list of objects, each of which contains information about an alias of the agent.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListAgentAliasesError>
source§impl Client
impl Client
sourcepub fn list_agent_knowledge_bases(&self) -> ListAgentKnowledgeBasesFluentBuilder
pub fn list_agent_knowledge_bases(&self) -> ListAgentKnowledgeBasesFluentBuilder
Constructs a fluent builder for the ListAgentKnowledgeBases operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent for which to return information about knowledge bases associated with it.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent for which to return information about knowledge bases associated with it.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListAgentKnowledgeBasesOutputwith field(s):agent_knowledge_base_summaries(Vec::<AgentKnowledgeBaseSummary>):A list of objects, each of which contains information about a knowledge base associated with the agent.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListAgentKnowledgeBasesError>
source§impl Client
impl Client
sourcepub fn list_agent_versions(&self) -> ListAgentVersionsFluentBuilder
pub fn list_agent_versions(&self) -> ListAgentVersionsFluentBuilder
Constructs a fluent builder for the ListAgentVersions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListAgentVersionsOutputwith field(s):agent_version_summaries(Vec::<AgentVersionSummary>):A list of objects, each of which contains information about a version of the agent.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListAgentVersionsError>
source§impl Client
impl Client
sourcepub fn list_agents(&self) -> ListAgentsFluentBuilder
pub fn list_agents(&self) -> ListAgentsFluentBuilder
Constructs a fluent builder for the ListAgents operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListAgentsOutputwith field(s):agent_summaries(Vec::<AgentSummary>):A list of objects, each of which contains information about an agent.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListAgentsError>
source§impl Client
impl Client
sourcepub fn list_data_sources(&self) -> ListDataSourcesFluentBuilder
pub fn list_data_sources(&self) -> ListDataSourcesFluentBuilder
Constructs a fluent builder for the ListDataSources operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base for which to return a list of information.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListDataSourcesOutputwith field(s):data_source_summaries(Vec::<DataSourceSummary>):A list of objects, each of which contains information about a data source.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListDataSourcesError>
source§impl Client
impl Client
sourcepub fn list_flow_aliases(&self) -> ListFlowAliasesFluentBuilder
pub fn list_flow_aliases(&self) -> ListFlowAliasesFluentBuilder
Constructs a fluent builder for the ListFlowAliases operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow for which aliases are being returned.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListFlowAliasesOutputwith field(s):flow_alias_summaries(Vec::<FlowAliasSummary>):A list, each member of which contains information about an alias.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListFlowAliasesError>
source§impl Client
impl Client
sourcepub fn list_flow_versions(&self) -> ListFlowVersionsFluentBuilder
pub fn list_flow_versions(&self) -> ListFlowVersionsFluentBuilder
Constructs a fluent builder for the ListFlowVersions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListFlowVersionsOutputwith field(s):flow_version_summaries(Vec::<FlowVersionSummary>):A list, each member of which contains information about a flow.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListFlowVersionsError>
source§impl Client
impl Client
sourcepub fn list_flows(&self) -> ListFlowsFluentBuilder
pub fn list_flows(&self) -> ListFlowsFluentBuilder
Constructs a fluent builder for the ListFlows operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListFlowsOutputwith field(s):flow_summaries(Vec::<FlowSummary>):A list, each member of which contains information about a flow.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListFlowsError>
source§impl Client
impl Client
sourcepub fn list_ingestion_jobs(&self) -> ListIngestionJobsFluentBuilder
pub fn list_ingestion_jobs(&self) -> ListIngestionJobsFluentBuilder
Constructs a fluent builder for the ListIngestionJobs operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base for which to return ingestion jobs.
data_source_id(impl Into<String>)/set_data_source_id(Option<String>):
required: trueThe unique identifier of the data source for which to return ingestion jobs.
filters(IngestionJobFilter)/set_filters(Option<Vec::<IngestionJobFilter>>):
required: falseContains a definition of a filter for which to filter the results.
sort_by(IngestionJobSortBy)/set_sort_by(Option<IngestionJobSortBy>):
required: falseContains details about how to sort the results.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListIngestionJobsOutputwith field(s):ingestion_job_summaries(Vec::<IngestionJobSummary>):A list of objects, each of which contains information about an ingestion job.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListIngestionJobsError>
source§impl Client
impl Client
sourcepub fn list_knowledge_bases(&self) -> ListKnowledgeBasesFluentBuilder
pub fn list_knowledge_bases(&self) -> ListKnowledgeBasesFluentBuilder
Constructs a fluent builder for the ListKnowledgeBases operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListKnowledgeBasesOutputwith field(s):knowledge_base_summaries(Vec::<KnowledgeBaseSummary>):A list of objects, each of which contains information about a knowledge base.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListKnowledgeBasesError>
source§impl Client
impl Client
sourcepub fn list_prompts(&self) -> ListPromptsFluentBuilder
pub fn list_prompts(&self) -> ListPromptsFluentBuilder
Constructs a fluent builder for the ListPrompts operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
prompt_identifier(impl Into<String>)/set_prompt_identifier(Option<String>):
required: falseThe unique identifier of the prompt for whose versions you want to return information. Omit this field to list information about all prompts in an account.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- On success, responds with
ListPromptsOutputwith field(s):prompt_summaries(Vec::<PromptSummary>):A list, each member of which contains information about a prompt using Prompt management.
next_token(Option<String>):If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
- On failure, responds with
SdkError<ListPromptsError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource for which to list tags.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap::<String, String>>):The key-value pairs for the tags associated with the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn prepare_agent(&self) -> PrepareAgentFluentBuilder
pub fn prepare_agent(&self) -> PrepareAgentFluentBuilder
Constructs a fluent builder for the PrepareAgent operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent for which to create a
DRAFTversion.
- On success, responds with
PrepareAgentOutputwith field(s):agent_id(String):The unique identifier of the agent for which the
DRAFTversion was created.agent_status(AgentStatus):The status of the
DRAFTversion and whether it is ready for use.agent_version(String):The version of the agent.
prepared_at(DateTime):The time at which the
DRAFTversion of the agent was last prepared.
- On failure, responds with
SdkError<PrepareAgentError>
source§impl Client
impl Client
sourcepub fn prepare_flow(&self) -> PrepareFlowFluentBuilder
pub fn prepare_flow(&self) -> PrepareFlowFluentBuilder
Constructs a fluent builder for the PrepareFlow operation.
- The fluent builder is configurable:
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow.
- On success, responds with
PrepareFlowOutputwith field(s):id(String):The unique identifier of the flow.
status(FlowStatus):The status of the flow. When you submit this request, the status will be
NotPrepared. If preparation succeeds, the status becomesPrepared. If it fails, the status becomesFAILED.
- On failure, responds with
SdkError<PrepareFlowError>
source§impl Client
impl Client
sourcepub fn start_ingestion_job(&self) -> StartIngestionJobFluentBuilder
pub fn start_ingestion_job(&self) -> StartIngestionJobFluentBuilder
Constructs a fluent builder for the StartIngestionJob operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base to which to add the data source.
data_source_id(impl Into<String>)/set_data_source_id(Option<String>):
required: trueThe unique identifier of the data source to ingest.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the ingestion job.
- On success, responds with
StartIngestionJobOutputwith field(s):ingestion_job(Option<IngestionJob>):An object containing information about the ingestion job.
- On failure, responds with
SdkError<StartIngestionJobError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource to tag.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: trueAn object containing key-value pairs that define the tags to attach to the resource.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource from which to remove tags.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueA list of keys of the tags to remove from the resource.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_agent(&self) -> UpdateAgentFluentBuilder
pub fn update_agent(&self) -> UpdateAgentFluentBuilder
Constructs a fluent builder for the UpdateAgent operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent.
agent_name(impl Into<String>)/set_agent_name(Option<String>):
required: trueSpecifies a new name for the agent.
instruction(impl Into<String>)/set_instruction(Option<String>):
required: falseSpecifies new instructions that tell the agent what it should do and how it should interact with users.
foundation_model(impl Into<String>)/set_foundation_model(Option<String>):
required: trueSpecifies a new foundation model to be used for orchestration by the agent.
description(impl Into<String>)/set_description(Option<String>):
required: falseSpecifies a new description of the agent.
idle_session_ttl_in_seconds(i32)/set_idle_session_ttl_in_seconds(Option<i32>):
required: falseThe number of seconds for which Amazon Bedrock keeps information about a user’s conversation with the agent.
A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
agent_resource_role_arn(impl Into<String>)/set_agent_resource_role_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.
customer_encryption_key_arn(impl Into<String>)/set_customer_encryption_key_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.
prompt_override_configuration(PromptOverrideConfiguration)/set_prompt_override_configuration(Option<PromptOverrideConfiguration>):
required: falseContains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.
guardrail_configuration(GuardrailConfiguration)/set_guardrail_configuration(Option<GuardrailConfiguration>):
required: falseThe unique Guardrail configuration assigned to the agent when it is updated.
memory_configuration(MemoryConfiguration)/set_memory_configuration(Option<MemoryConfiguration>):
required: falseSpecifies the new memory configuration for the agent.
- On success, responds with
UpdateAgentOutputwith field(s):agent(Option<Agent>):Contains details about the agent that was updated.
- On failure, responds with
SdkError<UpdateAgentError>
source§impl Client
impl Client
sourcepub fn update_agent_action_group(&self) -> UpdateAgentActionGroupFluentBuilder
pub fn update_agent_action_group(&self) -> UpdateAgentActionGroupFluentBuilder
Constructs a fluent builder for the UpdateAgentActionGroup operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent for which to update the action group.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe unique identifier of the agent version for which to update the action group.
action_group_id(impl Into<String>)/set_action_group_id(Option<String>):
required: trueThe unique identifier of the action group.
action_group_name(impl Into<String>)/set_action_group_name(Option<String>):
required: trueSpecifies a new name for the action group.
description(impl Into<String>)/set_description(Option<String>):
required: falseSpecifies a new name for the action group.
parent_action_group_signature(ActionGroupSignature)/set_parent_action_group_signature(Option<ActionGroupSignature>):
required: falseTo allow your agent to request the user for additional information when trying to complete a task, set this field to
AMAZON.UserInput. You must leave thedescription,apiSchema, andactionGroupExecutorfields blank for this action group.During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn’t have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
action_group_executor(ActionGroupExecutor)/set_action_group_executor(Option<ActionGroupExecutor>):
required: falseThe Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
action_group_state(ActionGroupState)/set_action_group_state(Option<ActionGroupState>):
required: falseSpecifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
api_schema(ApiSchema)/set_api_schema(Option<ApiSchema>):
required: falseContains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas.
function_schema(FunctionSchema)/set_function_schema(Option<FunctionSchema>):
required: falseContains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
- On success, responds with
UpdateAgentActionGroupOutputwith field(s):agent_action_group(Option<AgentActionGroup>):Contains details about the action group that was updated.
- On failure, responds with
SdkError<UpdateAgentActionGroupError>
source§impl Client
impl Client
sourcepub fn update_agent_alias(&self) -> UpdateAgentAliasFluentBuilder
pub fn update_agent_alias(&self) -> UpdateAgentAliasFluentBuilder
Constructs a fluent builder for the UpdateAgentAlias operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent.
agent_alias_id(impl Into<String>)/set_agent_alias_id(Option<String>):
required: trueThe unique identifier of the alias.
agent_alias_name(impl Into<String>)/set_agent_alias_name(Option<String>):
required: trueSpecifies a new name for the alias.
description(impl Into<String>)/set_description(Option<String>):
required: falseSpecifies a new description for the alias.
routing_configuration(AgentAliasRoutingConfigurationListItem)/set_routing_configuration(Option<Vec::<AgentAliasRoutingConfigurationListItem>>):
required: falseContains details about the routing configuration of the alias.
- On success, responds with
UpdateAgentAliasOutputwith field(s):agent_alias(Option<AgentAlias>):Contains details about the alias that was updated.
- On failure, responds with
SdkError<UpdateAgentAliasError>
source§impl Client
impl Client
sourcepub fn update_agent_knowledge_base(
&self,
) -> UpdateAgentKnowledgeBaseFluentBuilder
pub fn update_agent_knowledge_base( &self, ) -> UpdateAgentKnowledgeBaseFluentBuilder
Constructs a fluent builder for the UpdateAgentKnowledgeBase operation.
- The fluent builder is configurable:
agent_id(impl Into<String>)/set_agent_id(Option<String>):
required: trueThe unique identifier of the agent associated with the knowledge base that you want to update.
agent_version(impl Into<String>)/set_agent_version(Option<String>):
required: trueThe version of the agent associated with the knowledge base that you want to update.
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base that has been associated with an agent.
description(impl Into<String>)/set_description(Option<String>):
required: falseSpecifies a new description for the knowledge base associated with an agent.
knowledge_base_state(KnowledgeBaseState)/set_knowledge_base_state(Option<KnowledgeBaseState>):
required: falseSpecifies whether the agent uses the knowledge base or not when sending an InvokeAgent request.
- On success, responds with
UpdateAgentKnowledgeBaseOutputwith field(s):agent_knowledge_base(Option<AgentKnowledgeBase>):Contains details about the knowledge base that has been associated with an agent.
- On failure, responds with
SdkError<UpdateAgentKnowledgeBaseError>
source§impl Client
impl Client
sourcepub fn update_data_source(&self) -> UpdateDataSourceFluentBuilder
pub fn update_data_source(&self) -> UpdateDataSourceFluentBuilder
Constructs a fluent builder for the UpdateDataSource operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base for the data source.
data_source_id(impl Into<String>)/set_data_source_id(Option<String>):
required: trueThe unique identifier of the data source.
name(impl Into<String>)/set_name(Option<String>):
required: trueSpecifies a new name for the data source.
description(impl Into<String>)/set_description(Option<String>):
required: falseSpecifies a new description for the data source.
data_source_configuration(DataSourceConfiguration)/set_data_source_configuration(Option<DataSourceConfiguration>):
required: trueThe connection configuration for the data source that you want to update.
data_deletion_policy(DataDeletionPolicy)/set_data_deletion_policy(Option<DataDeletionPolicy>):
required: falseThe data deletion policy for the data source that you want to update.
server_side_encryption_configuration(ServerSideEncryptionConfiguration)/set_server_side_encryption_configuration(Option<ServerSideEncryptionConfiguration>):
required: falseContains details about server-side encryption of the data source.
vector_ingestion_configuration(VectorIngestionConfiguration)/set_vector_ingestion_configuration(Option<VectorIngestionConfiguration>):
required: falseContains details about how to ingest the documents in the data source.
- On success, responds with
UpdateDataSourceOutputwith field(s):data_source(Option<DataSource>):Contains details about the data source.
- On failure, responds with
SdkError<UpdateDataSourceError>
source§impl Client
impl Client
sourcepub fn update_flow(&self) -> UpdateFlowFluentBuilder
pub fn update_flow(&self) -> UpdateFlowFluentBuilder
Constructs a fluent builder for the UpdateFlow operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueA name for the flow.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description for the flow.
execution_role_arn(impl Into<String>)/set_execution_role_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.
customer_encryption_key_arn(impl Into<String>)/set_customer_encryption_key_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the KMS key to encrypt the flow.
definition(FlowDefinition)/set_definition(Option<FlowDefinition>):
required: falseA definition of the nodes and the connections between the nodes in the flow.
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow.
- On success, responds with
UpdateFlowOutputwith field(s):name(String):The name of the flow.
description(Option<String>):The description of the flow.
execution_role_arn(String):The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.
customer_encryption_key_arn(Option<String>):The Amazon Resource Name (ARN) of the KMS key that the flow was encrypted with.
id(String):The unique identifier of the flow.
arn(String):The Amazon Resource Name (ARN) of the flow.
status(FlowStatus):The status of the flow. When you submit this request, the status will be
NotPrepared. If updating fails, the status becomesFailed.created_at(DateTime):The time at which the flow was created.
updated_at(DateTime):The time at which the flow was last updated.
version(String):The version of the flow. When you update a flow, the version updated is the
DRAFTversion.definition(Option<FlowDefinition>):A definition of the nodes and the connections between nodes in the flow.
- On failure, responds with
SdkError<UpdateFlowError>
source§impl Client
impl Client
sourcepub fn update_flow_alias(&self) -> UpdateFlowAliasFluentBuilder
pub fn update_flow_alias(&self) -> UpdateFlowAliasFluentBuilder
Constructs a fluent builder for the UpdateFlowAlias operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the alias.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description for the alias.
routing_configuration(FlowAliasRoutingConfigurationListItem)/set_routing_configuration(Option<Vec::<FlowAliasRoutingConfigurationListItem>>):
required: trueContains information about the version to which to map the alias.
flow_identifier(impl Into<String>)/set_flow_identifier(Option<String>):
required: trueThe unique identifier of the flow.
alias_identifier(impl Into<String>)/set_alias_identifier(Option<String>):
required: trueThe unique identifier of the alias.
- On success, responds with
UpdateFlowAliasOutputwith field(s):name(String):The name of the alias.
description(Option<String>):The description of the flow.
routing_configuration(Vec::<FlowAliasRoutingConfigurationListItem>):Contains information about the version that the alias is mapped to.
flow_id(String):The unique identifier of the flow.
id(String):The unique identifier of the alias.
arn(String):The Amazon Resource Name (ARN) of the flow.
created_at(DateTime):The time at which the flow was created.
updated_at(DateTime):The time at which the alias was last updated.
- On failure, responds with
SdkError<UpdateFlowAliasError>
source§impl Client
impl Client
sourcepub fn update_knowledge_base(&self) -> UpdateKnowledgeBaseFluentBuilder
pub fn update_knowledge_base(&self) -> UpdateKnowledgeBaseFluentBuilder
Constructs a fluent builder for the UpdateKnowledgeBase operation.
- The fluent builder is configurable:
knowledge_base_id(impl Into<String>)/set_knowledge_base_id(Option<String>):
required: trueThe unique identifier of the knowledge base to update.
name(impl Into<String>)/set_name(Option<String>):
required: trueSpecifies a new name for the knowledge base.
description(impl Into<String>)/set_description(Option<String>):
required: falseSpecifies a new description for the knowledge base.
role_arn(impl Into<String>)/set_role_arn(Option<String>):
required: trueSpecifies a different Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
knowledge_base_configuration(KnowledgeBaseConfiguration)/set_knowledge_base_configuration(Option<KnowledgeBaseConfiguration>):
required: trueSpecifies the configuration for the embeddings model used for the knowledge base. You must use the same configuration as when the knowledge base was created.
storage_configuration(StorageConfiguration)/set_storage_configuration(Option<StorageConfiguration>):
required: trueSpecifies the configuration for the vector store used for the knowledge base. You must use the same configuration as when the knowledge base was created.
- On success, responds with
UpdateKnowledgeBaseOutputwith field(s):knowledge_base(Option<KnowledgeBase>):Contains details about the knowledge base.
- On failure, responds with
SdkError<UpdateKnowledgeBaseError>
source§impl Client
impl Client
sourcepub fn update_prompt(&self) -> UpdatePromptFluentBuilder
pub fn update_prompt(&self) -> UpdatePromptFluentBuilder
Constructs a fluent builder for the UpdatePrompt operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueA name for the prompt.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description for the prompt.
customer_encryption_key_arn(impl Into<String>)/set_customer_encryption_key_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
default_variant(impl Into<String>)/set_default_variant(Option<String>):
required: falseThe name of the default variant for the prompt. This value must match the
namefield in the relevant PromptVariant object.variants(PromptVariant)/set_variants(Option<Vec::<PromptVariant>>):
required: falseA list of objects, each containing details about a variant of the prompt.
prompt_identifier(impl Into<String>)/set_prompt_identifier(Option<String>):
required: trueThe unique identifier of the prompt.
- On success, responds with
UpdatePromptOutputwith field(s):name(String):The name of the prompt.
description(Option<String>):The description of the prompt.
customer_encryption_key_arn(Option<String>):The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
default_variant(Option<String>):The name of the default variant for the prompt. This value must match the
namefield in the relevant PromptVariant object.variants(Option<Vec::<PromptVariant>>):A list of objects, each containing details about a variant of the prompt.
id(String):The unique identifier of the prompt.
arn(String):The Amazon Resource Name (ARN) of the prompt.
version(String):The version of the prompt. When you update a prompt, the version updated is the
DRAFTversion.created_at(DateTime):The time at which the prompt was created.
updated_at(DateTime):The time at which the prompt was last updated.
- On failure, responds with
SdkError<UpdatePromptError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightBlack.
§Example
println!("{}", value.bright_black());source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightGreen.
§Example
println!("{}", value.bright_green());source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightYellow.
§Example
println!("{}", value.bright_yellow());source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightMagenta.
§Example
println!("{}", value.bright_magenta());source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightWhite.
§Example
println!("{}", value.bright_white());source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightBlack.
§Example
println!("{}", value.on_bright_black());source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightGreen.
§Example
println!("{}", value.on_bright_green());source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightYellow.
§Example
println!("{}", value.on_bright_yellow());source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightBlue.
§Example
println!("{}", value.on_bright_blue());source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightMagenta.
§Example
println!("{}", value.on_bright_magenta());source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightCyan.
§Example
println!("{}", value.on_bright_cyan());source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightWhite.
§Example
println!("{}", value.on_bright_white());source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();source§fn underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self with the
attr()
set to
Attribute::Underline.
§Example
println!("{}", value.underline());source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self with the
attr()
set to
Attribute::RapidBlink.
§Example
println!("{}", value.rapid_blink());source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);