From cb458ea66a744098d9885903c7ac9553ecff3d21 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 2 Oct 2024 02:00:23 +0000 Subject: [PATCH] Update services based on release-2024-10-01 of AWS Go SDK Reference: https://github.com/aws/aws-sdk-go-v2/releases/tag/release-2024-10-01 --- .latest-tag-aws-sdk-go | 2 +- lib/aws/generated/bedrock_agent.ex | 103 ++++++++++++++++++++++++++--- lib/aws/generated/codeartifact.ex | 10 +++ lib/aws/generated/rds.ex | 7 +- 4 files changed, 110 insertions(+), 12 deletions(-) diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index fdbcb422..40041ca5 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -release-2024-09-30 +release-2024-10-01 diff --git a/lib/aws/generated/bedrock_agent.ex b/lib/aws/generated/bedrock_agent.ex index ddd2e2b2..971a1d90 100644 --- a/lib/aws/generated/bedrock_agent.ex +++ b/lib/aws/generated/bedrock_agent.ex @@ -603,6 +603,15 @@ defmodule AWS.BedrockAgent do @typedoc """ + ## Example: + + stop_ingestion_job_request() :: %{} + + """ + @type stop_ingestion_job_request() :: %{} + + @typedoc """ + ## Example: update_knowledge_base_request() :: %{ @@ -2675,6 +2684,17 @@ defmodule AWS.BedrockAgent do @typedoc """ + ## Example: + + stop_ingestion_job_response() :: %{ + "ingestionJob" => ingestion_job() + } + + """ + @type stop_ingestion_job_response() :: %{String.t() => any()} + + @typedoc """ + ## Example: get_agent_response() :: %{ @@ -3569,6 +3589,14 @@ defmodule AWS.BedrockAgent do | resource_not_found_exception() | conflict_exception() + @type stop_ingestion_job_errors() :: + throttling_exception() + | validation_exception() + | access_denied_exception() + | internal_server_exception() + | resource_not_found_exception() + | conflict_exception() + @type tag_resource_errors() :: throttling_exception() | validation_exception() @@ -3947,12 +3975,12 @@ defmodule AWS.BedrockAgent do end @doc """ - Creates a knowledge base that contains data sources from which information can - be queried and used by LLMs. + Creates a knowledge base. - To create a knowledge base, you must first set up your data sources and - configure a supported vector store. For more information, see [Set up your data for - ingestion](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup.html). + A knowledge base contains your data sources so that Large Language Models (LLMs) + can use your data. To create a knowledge base, you must first set up your data + sources and configure a supported vector store. For more information, see [Set up a knowledge + base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowlege-base-prereq.html). If you prefer to let Amazon Bedrock create and manage a vector store for you in Amazon OpenSearch Service, use the console. For more information, see [Create a knowledge @@ -4653,8 +4681,10 @@ defmodule AWS.BedrockAgent do end @doc """ - Gets information about a ingestion job, in which a data source is added to a - knowledge base. + Gets information about a data ingestion job. + + Data sources are ingested into your knowledge base so that Large Lanaguage + Models (LLMs) can use your data. """ @spec get_ingestion_job(map(), String.t(), String.t(), String.t(), list()) :: {:ok, get_ingestion_job_response(), any()} @@ -5021,7 +5051,9 @@ defmodule AWS.BedrockAgent do end @doc """ - Lists the ingestion jobs for a data source and information about each of them. + Lists the data ingestion jobs for a data source. + + The list also includes information about each job. """ @spec list_ingestion_jobs(map(), String.t(), String.t(), list_ingestion_jobs_request(), list()) :: {:ok, list_ingestion_jobs_response(), any()} @@ -5056,7 +5088,9 @@ defmodule AWS.BedrockAgent do end @doc """ - Lists the knowledge bases in an account and information about each of them. + Lists the knowledge bases in an account. + + The list also includesinformation about each knowledge base. """ @spec list_knowledge_bases(map(), list_knowledge_bases_request(), list()) :: {:ok, list_knowledge_bases_response(), any()} @@ -5206,7 +5240,10 @@ defmodule AWS.BedrockAgent do end @doc """ - Begins an ingestion job, in which a data source is added to a knowledge base. + Begins a data ingestion job. + + Data sources are ingested into your knowledge base so that Large Language Models + (LLMs) can use your data. """ @spec start_ingestion_job(map(), String.t(), String.t(), start_ingestion_job_request(), list()) :: {:ok, start_ingestion_job_response(), any()} @@ -5230,6 +5267,52 @@ defmodule AWS.BedrockAgent do Request.request_rest(client, meta, :put, url_path, query_params, headers, input, options, 202) end + @doc """ + Stops a currently running data ingestion job. + + You can send a `StartIngestionJob` request again to ingest the rest of your data + when you are ready. + """ + @spec stop_ingestion_job( + map(), + String.t(), + String.t(), + String.t(), + stop_ingestion_job_request(), + list() + ) :: + {:ok, stop_ingestion_job_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, stop_ingestion_job_errors()} + def stop_ingestion_job( + %Client{} = client, + data_source_id, + ingestion_job_id, + knowledge_base_id, + input, + options \\ [] + ) do + url_path = + "/knowledgebases/#{AWS.Util.encode_uri(knowledge_base_id)}/datasources/#{AWS.Util.encode_uri(data_source_id)}/ingestionjobs/#{AWS.Util.encode_uri(ingestion_job_id)}/stop" + + headers = [] + query_params = [] + + meta = metadata() + + Request.request_rest( + client, + meta, + :post, + url_path, + query_params, + headers, + input, + options, + 202 + ) + end + @doc """ Associate tags with a resource. diff --git a/lib/aws/generated/codeartifact.ex b/lib/aws/generated/codeartifact.ex index 2b13fa62..ce640c8c 100644 --- a/lib/aws/generated/codeartifact.ex +++ b/lib/aws/generated/codeartifact.ex @@ -1650,6 +1650,7 @@ defmodule AWS.Codeartifact do get_repository_endpoint_request() :: %{ optional("domainOwner") => String.t(), + optional("endpointType") => list(any()), required("domain") => String.t(), required("format") => list(any()), required("repository") => String.t() @@ -3879,6 +3880,7 @@ defmodule AWS.Codeartifact do map(), String.t(), String.t() | nil, + String.t() | nil, String.t(), String.t(), list() @@ -3890,6 +3892,7 @@ defmodule AWS.Codeartifact do %Client{} = client, domain, domain_owner \\ nil, + endpoint_type \\ nil, format, repository, options \\ [] @@ -3912,6 +3915,13 @@ defmodule AWS.Codeartifact do query_params end + query_params = + if !is_nil(endpoint_type) do + [{"endpointType", endpoint_type} | query_params] + else + query_params + end + query_params = if !is_nil(domain_owner) do [{"domain-owner", domain_owner} | query_params] diff --git a/lib/aws/generated/rds.ex b/lib/aws/generated/rds.ex index ea61723f..9b41ef4b 100644 --- a/lib/aws/generated/rds.ex +++ b/lib/aws/generated/rds.ex @@ -3086,6 +3086,7 @@ defmodule AWS.RDS do optional("ComputeRedundancy") => integer(), optional("MinACU") => float(), optional("PubliclyAccessible") => boolean(), + optional("Tags") => list(tag()()), required("DBClusterIdentifier") => String.t(), required("DBShardGroupIdentifier") => String.t(), required("MaxACU") => float() @@ -4145,7 +4146,8 @@ defmodule AWS.RDS do optional("MaxACU") => float(), optional("MinACU") => float(), optional("PubliclyAccessible") => boolean(), - optional("Status") => String.t() + optional("Status") => String.t(), + optional("TagList") => list(tag()()) } """ @@ -4644,6 +4646,7 @@ defmodule AWS.RDS do optional("DBClusterParameterGroupName") => String.t(), optional("ServerlessV2ScalingConfiguration") => serverless_v2_scaling_configuration(), optional("StorageType") => String.t(), + optional("ClusterScalabilityType") => list(any()), optional("EngineMode") => String.t(), optional("NetworkType") => String.t(), optional("EngineLifecycleSupport") => String.t(), @@ -5648,6 +5651,7 @@ defmodule AWS.RDS do "Iops" => integer(), "ScalingConfigurationInfo" => scaling_configuration_info(), "MonitoringInterval" => integer(), + "ClusterScalabilityType" => list(any()), "CloneGroupId" => String.t(), "AwsBackupRecoveryPointArn" => String.t(), "ActivityStreamKinesisStreamName" => String.t(), @@ -8222,6 +8226,7 @@ defmodule AWS.RDS do db_cluster_not_found_fault() | unsupported_db_engine_version_fault() | invalid_db_cluster_state_fault() + | network_type_not_supported() | invalid_vpc_network_state_fault() | db_shard_group_already_exists_fault() | max_db_shard_group_limit_reached()