Skip to content

Commit c045b0c

Browse files
committed
Update services based on v1.50.18 of AWS Go SDK
Reference: https://github.com/aws/aws-sdk-go/releases/tag/v1.50.18
1 parent 76d2192 commit c045b0c

File tree

3 files changed

+273
-7
lines changed

3 files changed

+273
-7
lines changed

.latest-tag-aws-sdk-go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.50.17
1+
v1.50.18

lib/aws/generated/control_tower.ex

Lines changed: 228 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,39 @@ defmodule AWS.ControlTower do
135135
)
136136
end
137137

138+
@doc """
139+
Disable an `EnabledBaseline` resource on the specified Target.
140+
141+
This API starts an asynchronous operation to remove all resources deployed as
142+
part of the baseline enablement. The resource will vary depending on the enabled
143+
baseline.
144+
"""
145+
def disable_baseline(%Client{} = client, input, options \\ []) do
146+
url_path = "/disable-baseline"
147+
headers = []
148+
query_params = []
149+
150+
meta = metadata()
151+
152+
Request.request_rest(
153+
client,
154+
meta,
155+
:post,
156+
url_path,
157+
query_params,
158+
headers,
159+
input,
160+
options,
161+
200
162+
)
163+
end
164+
138165
@doc """
139166
This API call turns off a control.
140167
141-
It starts an asynchronous operation that deletes Amazon Web Services resources
142-
on the specified organizational unit and the accounts it contains. The resources
143-
will vary according to the control that you specify. For usage examples, see [
144-
*the Amazon Web Services Control Tower User Guide*
168+
It starts an asynchronous operation that deletes AWS resources on the specified
169+
organizational unit and the accounts it contains. The resources will vary
170+
according to the control that you specify. For usage examples, see [ *the Amazon Web Services Control Tower User Guide*
145171
](https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html).
146172
"""
147173
def disable_control(%Client{} = client, input, options \\ []) do
@@ -164,6 +190,32 @@ defmodule AWS.ControlTower do
164190
)
165191
end
166192

193+
@doc """
194+
Enable (apply) a `Baseline` to a Target.
195+
196+
This API starts an asynchronous operation to deploy resources specified by the
197+
`Baseline` to the specified Target.
198+
"""
199+
def enable_baseline(%Client{} = client, input, options \\ []) do
200+
url_path = "/enable-baseline"
201+
headers = []
202+
query_params = []
203+
204+
meta = metadata()
205+
206+
Request.request_rest(
207+
client,
208+
meta,
209+
:post,
210+
url_path,
211+
query_params,
212+
headers,
213+
input,
214+
options,
215+
200
216+
)
217+
end
218+
167219
@doc """
168220
This API call activates a control.
169221
@@ -193,6 +245,57 @@ defmodule AWS.ControlTower do
193245
)
194246
end
195247

248+
@doc """
249+
Retrieve details about an existing `Baseline` resource by specifying its
250+
identifier.
251+
"""
252+
def get_baseline(%Client{} = client, input, options \\ []) do
253+
url_path = "/get-baseline"
254+
headers = []
255+
query_params = []
256+
257+
meta = metadata()
258+
259+
Request.request_rest(
260+
client,
261+
meta,
262+
:post,
263+
url_path,
264+
query_params,
265+
headers,
266+
input,
267+
options,
268+
200
269+
)
270+
end
271+
272+
@doc """
273+
Returns the details of an asynchronous baseline operation, as initiated by any
274+
of these APIs: `EnableBaseline`, `DisableBaseline`, `UpdateEnabledBaseline`,
275+
`ResetEnabledBaseline`.
276+
277+
A status message is displayed in case of operation failure.
278+
"""
279+
def get_baseline_operation(%Client{} = client, input, options \\ []) do
280+
url_path = "/get-baseline-operation"
281+
headers = []
282+
query_params = []
283+
284+
meta = metadata()
285+
286+
Request.request_rest(
287+
client,
288+
meta,
289+
:post,
290+
url_path,
291+
query_params,
292+
headers,
293+
input,
294+
options,
295+
200
296+
)
297+
end
298+
196299
@doc """
197300
Returns the status of a particular `EnableControl` or `DisableControl`
198301
operation.
@@ -221,6 +324,29 @@ defmodule AWS.ControlTower do
221324
)
222325
end
223326

327+
@doc """
328+
Retrieve details of an `EnabledBaseline` resource by specifying its identifier.
329+
"""
330+
def get_enabled_baseline(%Client{} = client, input, options \\ []) do
331+
url_path = "/get-enabled-baseline"
332+
headers = []
333+
query_params = []
334+
335+
meta = metadata()
336+
337+
Request.request_rest(
338+
client,
339+
meta,
340+
:post,
341+
url_path,
342+
query_params,
343+
headers,
344+
input,
345+
options,
346+
200
347+
)
348+
end
349+
224350
@doc """
225351
Retrieves details about an enabled control.
226352
@@ -272,6 +398,55 @@ defmodule AWS.ControlTower do
272398
)
273399
end
274400

401+
@doc """
402+
Returns a summary list of all available baselines.
403+
"""
404+
def list_baselines(%Client{} = client, input, options \\ []) do
405+
url_path = "/list-baselines"
406+
headers = []
407+
query_params = []
408+
409+
meta = metadata()
410+
411+
Request.request_rest(
412+
client,
413+
meta,
414+
:post,
415+
url_path,
416+
query_params,
417+
headers,
418+
input,
419+
options,
420+
200
421+
)
422+
end
423+
424+
@doc """
425+
Returns a list of summaries describing `EnabledBaseline` resources.
426+
427+
You can filter the list by the corresponding `Baseline` or `Target` of the
428+
`EnabledBaseline` resources.
429+
"""
430+
def list_enabled_baselines(%Client{} = client, input, options \\ []) do
431+
url_path = "/list-enabled-baselines"
432+
headers = []
433+
query_params = []
434+
435+
meta = metadata()
436+
437+
Request.request_rest(
438+
client,
439+
meta,
440+
:post,
441+
url_path,
442+
query_params,
443+
headers,
444+
input,
445+
options,
446+
200
447+
)
448+
end
449+
275450
@doc """
276451
Lists the controls enabled by Amazon Web Services Control Tower on the specified
277452
organizational unit and the accounts it contains.
@@ -344,6 +519,32 @@ defmodule AWS.ControlTower do
344519
Request.request_rest(client, meta, :get, url_path, query_params, headers, nil, options, 200)
345520
end
346521

522+
@doc """
523+
Re-enables an `EnabledBaseline` resource.
524+
525+
For example, this API can re-apply the existing `Baseline` after a new member
526+
account is moved to the target OU.
527+
"""
528+
def reset_enabled_baseline(%Client{} = client, input, options \\ []) do
529+
url_path = "/reset-enabled-baseline"
530+
headers = []
531+
query_params = []
532+
533+
meta = metadata()
534+
535+
Request.request_rest(
536+
client,
537+
meta,
538+
:post,
539+
url_path,
540+
query_params,
541+
headers,
542+
input,
543+
options,
544+
200
545+
)
546+
end
547+
347548
@doc """
348549
This API call resets a landing zone.
349550
@@ -426,4 +627,27 @@ defmodule AWS.ControlTower do
426627
204
427628
)
428629
end
630+
631+
@doc """
632+
Updates an `EnabledBaseline` resource's applied parameters or version.
633+
"""
634+
def update_enabled_baseline(%Client{} = client, input, options \\ []) do
635+
url_path = "/update-enabled-baseline"
636+
headers = []
637+
query_params = []
638+
639+
meta = metadata()
640+
641+
Request.request_rest(
642+
client,
643+
meta,
644+
:post,
645+
url_path,
646+
query_params,
647+
headers,
648+
input,
649+
options,
650+
200
651+
)
652+
end
429653
end

lib/aws/generated/q_business.ex

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,48 @@
22
# See https://github.com/aws-beam/aws-codegen for more details.
33

44
defmodule AWS.QBusiness do
5+
@moduledoc """
6+
Amazon Q is in preview release and is subject to change.
7+
8+
This is the *Amazon Q (for business use)* API Reference. Amazon Q is a fully
9+
managed, generative-AI powered enterprise chat assistant that you can deploy
10+
within your organization. Amazon Q enhances employee productivity by supporting
11+
key tasks such as question-answering, knowledge discovery, writing email
12+
messages, summarizing text, drafting document outlines, and brainstorming ideas.
13+
Users ask questions of Amazon Q and get answers that are presented in a
14+
conversational manner. For an introduction to the service, see the [ *Amazon Q (for business use) Developer Guide*
15+
](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/what-is.html).
16+
17+
For an overview of the Amazon Q APIs, see [Overview of Amazon Q API operations](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/api-ref.html#api-overview).
18+
19+
For information about the IAM access control permissions you need to use this
20+
API, see [IAM roles for Amazon Q](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html) in
21+
the *Amazon Q (for business use) Developer Guide*.
22+
23+
You can use the following AWS SDKs to access Amazon Q APIs:
24+
25+
* [AWS SDK for C++](https://docs.aws.amazon.com/sdk-for-cpp) * [AWS SDK for Go](https://docs.aws.amazon.com/sdk-for-go)
26+
27+
* [AWS SDK for Java](https://docs.aws.amazon.com/sdk-for-java) * [AWS SDK for
28+
JavaScript](https://docs.aws.amazon.com/sdk-for-javascript)
29+
30+
* [AWS SDK for .NET](https://docs.aws.amazon.com/sdk-for-net) * [AWS SDK for Python
31+
(Boto3)](https://docs.aws.amazon.com/pythonsdk)
32+
33+
* [AWS SDK for Ruby](https://docs.aws.amazon.com/sdk-for-ruby)
34+
35+
The following resources provide additional information about using the Amazon Q
36+
API:
37+
38+
* * [Setting up for Amazon
39+
Q](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/setting-up.html) *
40+
41+
* * [Amazon Q CLI Reference](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/qbusiness/index.html)
42+
*
43+
44+
* * [Amazon Web Services General Reference](https://docs.aws.amazon.com/general/latest/gr/amazonq.html) *
45+
"""
46+
547
alias AWS.Client
648
alias AWS.Request
749

@@ -149,9 +191,9 @@ defmodule AWS.QBusiness do
149191
150192
Once the index is active, you can index your documents using the [
151193
`BatchPutDocument`
152-
](https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_BatchPutDocument.html)
194+
](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_BatchPutDocument.html)
153195
API or the [ `CreateDataSource`
154-
](https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_CreateDataSource.html)
196+
](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_CreateDataSource.html)
155197
API.
156198
"""
157199
def create_index(%Client{} = client, application_id, input, options \\ []) do

0 commit comments

Comments
 (0)