Skip to content

Commit

Permalink
Update services based on release-2024-09-06 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Sep 7, 2024
1 parent 9975a17 commit 2d142cf
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 6 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-05
release-2024-09-06
84 changes: 79 additions & 5 deletions lib/aws/generated/q_apps.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@ defmodule AWS.QApps do
from
within their web experience.
For example, users can create an Q Appthat exclusively
For example, users can create a Q App that exclusively
generates marketing-related content to improve your marketing team's
productivity or a
Q App for marketing content-generation like writing customer emails and creating
promotional content using a certain style of voice, tone, and branding.
For more information, see [Amazon Q App](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/purpose-built-qapps.html)
Q App for writing customer emails and creating promotional content using a
certain
style of voice, tone, and branding. For more information on the capabilities,
see
[Amazon Q Apps capabilities](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/deploy-experience-iam-role.html#q-apps-actions)
in the *Amazon Q Business User Guide*.
For an overview of the Amazon Q App APIs, see [Overview of Amazon Q Apps API
operations](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_Operations_QApps.html).
For information about the IAM access control permissions you need to
use the Amazon Q Apps API, see [
IAM role for the Amazon Q Business web experience including Amazon Q
Apps](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/deploy-experience-iam-role.html)
in the
*Amazon Q Business User Guide*.
"""
Expand All @@ -38,6 +49,19 @@ defmodule AWS.QApps do

@typedoc """
## Example:
update_library_item_metadata_input() :: %{
optional("isVerified") => [boolean()],
required("instanceId") => String.t(),
required("libraryItemId") => String.t()
}
"""
@type update_library_item_metadata_input() :: %{String.t() => any()}

@typedoc """
## Example:
user_app_item() :: %{
Expand All @@ -46,6 +70,7 @@ defmodule AWS.QApps do
"canEdit" => [boolean()],
"createdAt" => non_neg_integer(),
"description" => String.t(),
"isVerified" => [boolean()],
"status" => [String.t()],
"title" => String.t()
}
Expand All @@ -60,6 +85,7 @@ defmodule AWS.QApps do
create_library_item_output() :: %{
"createdAt" => non_neg_integer(),
"createdBy" => [String.t()],
"isVerified" => [boolean()],
"libraryItemId" => String.t(),
"ratingCount" => [integer()],
"status" => [String.t()],
Expand Down Expand Up @@ -187,6 +213,7 @@ defmodule AWS.QApps do
"createdAt" => non_neg_integer(),
"createdBy" => [String.t()],
"isRatedByUser" => [boolean()],
"isVerified" => [boolean()],
"libraryItemId" => String.t(),
"ratingCount" => [integer()],
"status" => [String.t()],
Expand Down Expand Up @@ -301,6 +328,7 @@ defmodule AWS.QApps do
"createdAt" => non_neg_integer(),
"createdBy" => [String.t()],
"isRatedByUser" => [boolean()],
"isVerified" => [boolean()],
"libraryItemId" => String.t(),
"ratingCount" => [integer()],
"status" => [String.t()],
Expand Down Expand Up @@ -390,6 +418,7 @@ defmodule AWS.QApps do
"createdAt" => non_neg_integer(),
"createdBy" => [String.t()],
"isRatedByUser" => [boolean()],
"isVerified" => [boolean()],
"libraryItemId" => String.t(),
"ratingCount" => [integer()],
"status" => [String.t()],
Expand Down Expand Up @@ -964,6 +993,7 @@ defmodule AWS.QApps do
| internal_server_exception()
| service_quota_exceeded_exception()
| resource_not_found_exception()
| conflict_exception()
| unauthorized_exception()

@type associate_q_app_with_user_errors() ::
Expand Down Expand Up @@ -1018,6 +1048,7 @@ defmodule AWS.QApps do
| internal_server_exception()
| service_quota_exceeded_exception()
| resource_not_found_exception()
| conflict_exception()
| unauthorized_exception()

@type disassociate_q_app_from_user_errors() ::
Expand Down Expand Up @@ -1131,6 +1162,16 @@ defmodule AWS.QApps do
| access_denied_exception()
| internal_server_exception()
| resource_not_found_exception()
| conflict_exception()
| unauthorized_exception()

@type update_library_item_metadata_errors() ::
throttling_exception()
| validation_exception()
| access_denied_exception()
| internal_server_exception()
| resource_not_found_exception()
| conflict_exception()
| unauthorized_exception()

@type update_q_app_errors() ::
Expand Down Expand Up @@ -1897,7 +1938,7 @@ defmodule AWS.QApps do
end

@doc """
Updates the metadata and status of a library item for an Amazon Q App.
Updates the library item for an Amazon Q App.
"""
@spec update_library_item(map(), update_library_item_input(), list()) ::
{:ok, update_library_item_output(), any()}
Expand Down Expand Up @@ -1929,6 +1970,39 @@ defmodule AWS.QApps do
)
end

@doc """
Updates the verification status of a library item for an Amazon Q App.
"""
@spec update_library_item_metadata(map(), update_library_item_metadata_input(), list()) ::
{:ok, nil, any()}
| {:error, {:unexpected_response, any()}}
| {:error, update_library_item_metadata_errors()}
def update_library_item_metadata(%Client{} = client, input, options \\ []) do
url_path = "/catalog.updateItemMetadata"

{headers, input} =
[
{"instanceId", "instance-id"}
]
|> Request.build_params(input)

query_params = []

meta = metadata()

Request.request_rest(
client,
meta,
:post,
url_path,
query_params,
headers,
input,
options,
200
)
end

@doc """
Updates an existing Amazon Q App, allowing modifications to its title,
description, and definition.
Expand Down

0 comments on commit 2d142cf

Please sign in to comment.