Skip to content

Commit b9f4652

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

File tree

6 files changed

+241
-57
lines changed

6 files changed

+241
-57
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.44.210
1+
v1.44.211

lib/aws/generated/comprehend.ex

Lines changed: 151 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,19 @@ defmodule AWS.Comprehend do
133133
Request.request_post(client, meta, "ContainsPiiEntities", input, options)
134134
end
135135

136+
@doc """
137+
Creates a dataset to upload training or test data for a model associated with a
138+
flywheel.
139+
140+
For more information about datasets, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
141+
in the *Amazon Comprehend Developer Guide*.
142+
"""
143+
def create_dataset(%Client{} = client, input, options \\ []) do
144+
meta = metadata()
145+
146+
Request.request_post(client, meta, "CreateDataset", input, options)
147+
end
148+
136149
@doc """
137150
Creates a new document classifier that you can use to categorize documents.
138151
@@ -162,14 +175,41 @@ defmodule AWS.Comprehend do
162175
Creates an entity recognizer using submitted files.
163176
164177
After your `CreateEntityRecognizer` request is submitted, you can check job
165-
status using the API.
178+
status using the `DescribeEntityRecognizer` API.
166179
"""
167180
def create_entity_recognizer(%Client{} = client, input, options \\ []) do
168181
meta = metadata()
169182

170183
Request.request_post(client, meta, "CreateEntityRecognizer", input, options)
171184
end
172185

186+
@doc """
187+
A flywheel is an AWS resource that orchestrates the ongoing training of a model
188+
for custom classification or custom entity recognition.
189+
190+
You can create a flywheel to start with an existing trained model, or Comprehend
191+
can create and train a new model.
192+
193+
When you create the flywheel, Comprehend creates a data lake in your account.
194+
The data lake holds the training data and test data for all versions of the
195+
model.
196+
197+
To use a flywheel with an existing trained model, you specify the active model
198+
version. Comprehend copies the model's training data and test data into the
199+
flywheel's data lake.
200+
201+
To use the flywheel with a new model, you need to provide a dataset for training
202+
data (and optional test data) when you create the flywheel.
203+
204+
For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
205+
in the *Amazon Comprehend Developer Guide*.
206+
"""
207+
def create_flywheel(%Client{} = client, input, options \\ []) do
208+
meta = metadata()
209+
210+
Request.request_post(client, meta, "CreateFlywheel", input, options)
211+
end
212+
173213
@doc """
174214
Deletes a previously created document classifier
175215
@@ -218,6 +258,21 @@ defmodule AWS.Comprehend do
218258
Request.request_post(client, meta, "DeleteEntityRecognizer", input, options)
219259
end
220260

261+
@doc """
262+
Deletes a flywheel.
263+
264+
When you delete the flywheel, Amazon Comprehend does not delete the data lake or
265+
the model associated with the flywheel.
266+
267+
For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
268+
in the *Amazon Comprehend Developer Guide*.
269+
"""
270+
def delete_flywheel(%Client{} = client, input, options \\ []) do
271+
meta = metadata()
272+
273+
Request.request_post(client, meta, "DeleteFlywheel", input, options)
274+
end
275+
221276
@doc """
222277
Deletes a resource-based policy that is attached to a custom model.
223278
"""
@@ -227,6 +282,18 @@ defmodule AWS.Comprehend do
227282
Request.request_post(client, meta, "DeleteResourcePolicy", input, options)
228283
end
229284

285+
@doc """
286+
Returns information about the dataset that you specify.
287+
288+
For more information about datasets, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
289+
in the *Amazon Comprehend Developer Guide*.
290+
"""
291+
def describe_dataset(%Client{} = client, input, options \\ []) do
292+
meta = metadata()
293+
294+
Request.request_post(client, meta, "DescribeDataset", input, options)
295+
end
296+
230297
@doc """
231298
Gets the properties associated with a document classification job.
232299
@@ -300,6 +367,30 @@ defmodule AWS.Comprehend do
300367
Request.request_post(client, meta, "DescribeEventsDetectionJob", input, options)
301368
end
302369

370+
@doc """
371+
Provides configuration information about the flywheel.
372+
373+
For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
374+
in the *Amazon Comprehend Developer Guide*.
375+
"""
376+
def describe_flywheel(%Client{} = client, input, options \\ []) do
377+
meta = metadata()
378+
379+
Request.request_post(client, meta, "DescribeFlywheel", input, options)
380+
end
381+
382+
@doc """
383+
Retrieve the configuration properties of a flywheel iteration.
384+
385+
For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
386+
in the *Amazon Comprehend Developer Guide*.
387+
"""
388+
def describe_flywheel_iteration(%Client{} = client, input, options \\ []) do
389+
meta = metadata()
390+
391+
Request.request_post(client, meta, "DescribeFlywheelIteration", input, options)
392+
end
393+
303394
@doc """
304395
Gets the properties associated with a key phrases detection job.
305396
@@ -476,6 +567,18 @@ defmodule AWS.Comprehend do
476567
Request.request_post(client, meta, "ImportModel", input, options)
477568
end
478569

570+
@doc """
571+
List the datasets that you have configured in this region.
572+
573+
For more information about datasets, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
574+
in the *Amazon Comprehend Developer Guide*.
575+
"""
576+
def list_datasets(%Client{} = client, input, options \\ []) do
577+
meta = metadata()
578+
579+
Request.request_post(client, meta, "ListDatasets", input, options)
580+
end
581+
479582
@doc """
480583
Gets a list of the documentation classification jobs that you have submitted.
481584
"""
@@ -567,6 +670,27 @@ defmodule AWS.Comprehend do
567670
Request.request_post(client, meta, "ListEventsDetectionJobs", input, options)
568671
end
569672

673+
@doc """
674+
Information about the history of a flywheel iteration.
675+
676+
For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
677+
in the *Amazon Comprehend Developer Guide*.
678+
"""
679+
def list_flywheel_iteration_history(%Client{} = client, input, options \\ []) do
680+
meta = metadata()
681+
682+
Request.request_post(client, meta, "ListFlywheelIterationHistory", input, options)
683+
end
684+
685+
@doc """
686+
Gets a list of the flywheels that you have created.
687+
"""
688+
def list_flywheels(%Client{} = client, input, options \\ []) do
689+
meta = metadata()
690+
691+
Request.request_post(client, meta, "ListFlywheels", input, options)
692+
end
693+
570694
@doc """
571695
Get a list of key phrase detection jobs that you have submitted.
572696
"""
@@ -636,7 +760,8 @@ defmodule AWS.Comprehend do
636760
@doc """
637761
Starts an asynchronous document classification job.
638762
639-
Use the operation to track the progress of the job.
763+
Use the `DescribeDocumentClassificationJob` operation to track the progress of
764+
the job.
640765
"""
641766
def start_document_classification_job(%Client{} = client, input, options \\ []) do
642767
meta = metadata()
@@ -681,6 +806,19 @@ defmodule AWS.Comprehend do
681806
Request.request_post(client, meta, "StartEventsDetectionJob", input, options)
682807
end
683808

809+
@doc """
810+
Start the flywheel iteration.This operation uses any new datasets to train a new
811+
model version.
812+
813+
For more information about flywheels, see [ Flywheel overview](https://docs.aws.amazon.com/comprehend/latest/dg/flywheels-about.html)
814+
in the *Amazon Comprehend Developer Guide*.
815+
"""
816+
def start_flywheel_iteration(%Client{} = client, input, options \\ []) do
817+
meta = metadata()
818+
819+
Request.request_post(client, meta, "StartFlywheelIteration", input, options)
820+
end
821+
684822
@doc """
685823
Starts an asynchronous key phrase detection job for a collection of documents.
686824
@@ -716,7 +854,8 @@ defmodule AWS.Comprehend do
716854
Starts an asynchronous targeted sentiment detection job for a collection of
717855
documents.
718856
719-
Use the operation to track the status of a job.
857+
Use the `DescribeTargetedSentimentDetectionJob` operation to track the status of
858+
a job.
720859
"""
721860
def start_targeted_sentiment_detection_job(%Client{} = client, input, options \\ []) do
722861
meta = metadata()
@@ -920,4 +1059,13 @@ defmodule AWS.Comprehend do
9201059

9211060
Request.request_post(client, meta, "UpdateEndpoint", input, options)
9221061
end
1062+
1063+
@doc """
1064+
Update the configuration information for an existing flywheel.
1065+
"""
1066+
def update_flywheel(%Client{} = client, input, options \\ []) do
1067+
meta = metadata()
1068+
1069+
Request.request_post(client, meta, "UpdateFlywheel", input, options)
1070+
end
9231071
end

lib/aws/generated/kms.ex

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ defmodule AWS.KMS do
3939
4040
## Signing Requests
4141
42-
Requests must be signed by using an access key ID and a secret access key. We
43-
strongly recommend that you *do not* use your Amazon Web Services account (root)
44-
access key ID and secret access key for everyday work with KMS. Instead, use the
45-
access key ID and secret access key for an IAM user. You can also use the Amazon
46-
Web Services Security Token Service to generate temporary security credentials
47-
that you can use to sign requests.
42+
Requests must be signed using an access key ID and a secret access key. We
43+
strongly recommend that you do not use your Amazon Web Services account root
44+
access key ID and secret access key for everyday work. You can use the access
45+
key ID and secret access key for an IAM user or you can use the Security Token
46+
Service (STS) to generate temporary security credentials and use those to sign
47+
requests.
4848
49-
All KMS operations require [Signature Version 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
49+
All KMS requests must be signed with [Signature Version 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
5050
5151
## Logging API Requests
5252
@@ -671,8 +671,8 @@ defmodule AWS.KMS do
671671
you intend.
672672
673673
Whenever possible, use key policies to give users permission to call the
674-
`Decrypt` operation on a particular KMS key, instead of using IAM policies.
675-
Otherwise, you might create an IAM user policy that gives the user `Decrypt`
674+
`Decrypt` operation on a particular KMS key, instead of using &IAM; policies.
675+
Otherwise, you might create an &IAM; policy that gives the user `Decrypt`
676676
permission on all KMS keys. This user could decrypt ciphertext that was
677677
encrypted by KMS keys in other accounts if the key policy for the cross-account
678678
KMS key permits it. If you must use an IAM policy for `Decrypt` permissions,
@@ -689,9 +689,9 @@ defmodule AWS.KMS do
689689
For details, see [Key states of KMS keys](https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in
690690
the *Key Management Service Developer Guide*.
691691
692-
**Cross-account use**: Yes. To perform this operation with a KMS key in a
693-
different Amazon Web Services account, specify the key ARN or alias ARN in the
694-
value of the `KeyId` parameter.
692+
**Cross-account use**: Yes. If you use the `KeyId` parameter to identify a KMS
693+
key in a different Amazon Web Services account, specify the key ARN or the alias
694+
ARN of the KMS key.
695695
696696
**Required permissions**:
697697
[kms:Decrypt](https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html)
@@ -1301,9 +1301,9 @@ defmodule AWS.KMS do
13011301
`NumberOfBytes` parameters (but not both). For 128-bit and 256-bit data keys,
13021302
use the `KeySpec` parameter.
13031303
1304-
To generate an SM4 data key (China Regions only), specify a `KeySpec` value of
1305-
`AES_128` or `NumberOfBytes` value of `128`. The symmetric encryption key used
1306-
in China Regions to encrypt your data key is an SM4 encryption key.
1304+
To generate a 128-bit SM4 data key (China Regions only), specify a `KeySpec`
1305+
value of `AES_128` or a `NumberOfBytes` value of `16`. The symmetric encryption
1306+
key used in China Regions to encrypt your data key is an SM4 encryption key.
13071307
13081308
To get only an encrypted copy of the data key, use
13091309
`GenerateDataKeyWithoutPlaintext`. To generate an asymmetric data key pair, use
@@ -2943,9 +2943,11 @@ defmodule AWS.KMS do
29432943
KMS key. For information about asymmetric KMS keys, see [Asymmetric KMS keys](https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html)
29442944
in the *Key Management Service Developer Guide*.
29452945
2946-
To verify a digital signature, you can use the `Verify` operation. Specify the
2947-
same asymmetric KMS key, message, and signing algorithm that were used to
2948-
produce the signature.
2946+
To use the `Verify` operation, specify the same asymmetric KMS key, message, and
2947+
signing algorithm that were used to produce the signature. The message type does
2948+
not need to be the same as the one used for signing, but it must indicate
2949+
whether the value of the `Message` parameter should be hashed as part of the
2950+
verification process.
29492951
29502952
You can also verify the digital signature by using the public key of the KMS key
29512953
outside of KMS. Use the `GetPublicKey` operation to download the public key in

lib/aws/generated/lightsail.ex

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,22 @@ defmodule AWS.Lightsail do
428428
Request.request_post(client, meta, "CreateDomainEntry", input, options)
429429
end
430430

431+
@doc """
432+
Creates two URLs that are used to access a virtual computer’s graphical user
433+
interface (GUI) session.
434+
435+
The primary URL initiates a web-based NICE DCV session to the virtual computer's
436+
application. The secondary URL initiates a web-based NICE DCV session to the
437+
virtual computer's operating session.
438+
439+
Use `StartGUISession` to open the session.
440+
"""
441+
def create_g_ui_session_access_details(%Client{} = client, input, options \\ []) do
442+
meta = metadata()
443+
444+
Request.request_post(client, meta, "CreateGUISessionAccessDetails", input, options)
445+
end
446+
431447
@doc """
432448
Creates a snapshot of a specific virtual private server, or *instance*.
433449
@@ -1254,6 +1270,17 @@ defmodule AWS.Lightsail do
12541270
Request.request_post(client, meta, "GetContainerServices", input, options)
12551271
end
12561272

1273+
@doc """
1274+
Retrieves information about the cost estimate for a specified resource.
1275+
1276+
A cost estimate will not generate for a resource that has been deleted.
1277+
"""
1278+
def get_cost_estimate(%Client{} = client, input, options \\ []) do
1279+
meta = metadata()
1280+
1281+
Request.request_post(client, meta, "GetCostEstimate", input, options)
1282+
end
1283+
12571284
@doc """
12581285
Returns information about a specific block storage disk.
12591286
"""
@@ -1936,6 +1963,19 @@ defmodule AWS.Lightsail do
19361963
Request.request_post(client, meta, "SetResourceAccessForBucket", input, options)
19371964
end
19381965

1966+
@doc """
1967+
Initiates a graphical user interface (GUI) session that’s used to access a
1968+
virtual computer’s operating system and application.
1969+
1970+
The session will be active for 1 hour. Use this action to resume the session
1971+
after it expires.
1972+
"""
1973+
def start_g_ui_session(%Client{} = client, input, options \\ []) do
1974+
meta = metadata()
1975+
1976+
Request.request_post(client, meta, "StartGUISession", input, options)
1977+
end
1978+
19391979
@doc """
19401980
Starts a specific Amazon Lightsail instance from a stopped state.
19411981
@@ -1971,6 +2011,18 @@ defmodule AWS.Lightsail do
19712011
Request.request_post(client, meta, "StartRelationalDatabase", input, options)
19722012
end
19732013

2014+
@doc """
2015+
Terminates a web-based NICE DCV session that’s used to access a virtual
2016+
computer’s operating system or application.
2017+
2018+
The session will close and any unsaved data will be lost.
2019+
"""
2020+
def stop_g_ui_session(%Client{} = client, input, options \\ []) do
2021+
meta = metadata()
2022+
2023+
Request.request_post(client, meta, "StopGUISession", input, options)
2024+
end
2025+
19742026
@doc """
19752027
Stops a specific Amazon Lightsail instance that is currently running.
19762028

0 commit comments

Comments
 (0)