Skip to content

Commit

Permalink
Update services based on release-2024-10-01 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Oct 2, 2024
1 parent 75f3366 commit cb458ea
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release-2024-09-30
release-2024-10-01
103 changes: 93 additions & 10 deletions lib/aws/generated/bedrock_agent.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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() :: %{
Expand Down Expand Up @@ -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() :: %{
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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()}
Expand Down Expand Up @@ -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()}
Expand Down Expand Up @@ -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()}
Expand Down Expand Up @@ -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()}
Expand All @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions lib/aws/generated/codeartifact.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -3879,6 +3880,7 @@ defmodule AWS.Codeartifact do
map(),
String.t(),
String.t() | nil,
String.t() | nil,
String.t(),
String.t(),
list()
Expand All @@ -3890,6 +3892,7 @@ defmodule AWS.Codeartifact do
%Client{} = client,
domain,
domain_owner \\ nil,
endpoint_type \\ nil,
format,
repository,
options \\ []
Expand All @@ -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]
Expand Down
7 changes: 6 additions & 1 deletion lib/aws/generated/rds.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()())
}
"""
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit cb458ea

Please sign in to comment.