Skip to content

Commit d414505

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

File tree

3 files changed

+153
-3
lines changed

3 files changed

+153
-3
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.130
1+
v1.44.131

lib/aws/generated/cloud_watch_logs.ex

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ defmodule AWS.CloudWatchLogs do
9999
When you perform a `CreateExportTask` operation, you must use credentials that
100100
have permission to write to the S3 bucket that you specify as the destination.
101101
102+
Exporting log data to Amazon S3 buckets that are encrypted by KMS is supported.
103+
Exporting log data to Amazon S3 buckets that have S3 Object Lock enabled with a
104+
retention period is also supported.
105+
106+
Exporting to S3 buckets that are encrypted with AES-256 is supported.
107+
102108
This is an asynchronous call. If all the required information is provided, this
103109
operation initiates an export task and responds with the ID of the task. After
104110
the task has started, you can use
@@ -110,8 +116,8 @@ defmodule AWS.CloudWatchLogs do
110116
S3 bucket. To separate out log data for each export task, you can specify a
111117
prefix to be used as the Amazon S3 key prefix for all exported objects.
112118
113-
Exporting to S3 buckets that are encrypted with AES-256 is supported. Exporting
114-
to S3 buckets encrypted with SSE-KMS is not supported.
119+
Time-based sorting on chunks of log data inside an exported file is not
120+
guaranteed. You can sort the exported log fild data by using Linux utilities.
115121
"""
116122
def create_export_task(%Client{} = client, input, options \\ []) do
117123
meta = metadata()
@@ -412,6 +418,8 @@ defmodule AWS.CloudWatchLogs do
412418
You can list all the log events or filter the results using a filter pattern, a
413419
time range, and the name of the log stream.
414420
421+
You must have the `logs;FilterLogEvents` permission to perform this operation.
422+
415423
By default, this operation returns as many log events as can fit in 1 MB (up to
416424
10,000 log events) or all the events found within the time range that you
417425
specify. If the results include a token, then there are more log events
@@ -686,6 +694,18 @@ defmodule AWS.CloudWatchLogs do
686694
687695
A retention policy allows you to configure the number of days for which to
688696
retain log events in the specified log group.
697+
698+
CloudWatch Logs doesn’t immediately delete log events when they reach their
699+
retention setting. It typically takes up to 72 hours after that before log
700+
events are deleted, but in rare situations might take longer.
701+
702+
This means that if you change a log group to have a longer retention setting
703+
when it contains log events that are past the expiration date, but haven’t been
704+
actually deleted, those log events will take up to 72 hours to be deleted after
705+
the new retention date is reached. To make sure that log data is deleted
706+
permanently, keep a log group at its lower retention setting until 72 hours has
707+
passed after the end of the previous retention period, or you have confirmed
708+
that the older log events are deleted.
689709
"""
690710
def put_retention_policy(%Client{} = client, input, options \\ []) do
691711
meta = metadata()
@@ -741,6 +761,9 @@ defmodule AWS.CloudWatchLogs do
741761
Queries time out after 15 minutes of execution. If your queries are timing out,
742762
reduce the time range being searched or partition your query into a number of
743763
queries.
764+
765+
You are limited to 20 concurrent CloudWatch Logs insights queries, including
766+
queries that have been added to dashboards.
744767
"""
745768
def start_query(%Client{} = client, input, options \\ []) do
746769
meta = metadata()

lib/aws/generated/emrcontainers.ex

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,34 @@ defmodule AWS.EMRcontainers do
7474
)
7575
end
7676

77+
@doc """
78+
Creates a job template.
79+
80+
Job template stores values of StartJobRun API request in a template and can be
81+
used to start a job run. Job template allows two use cases: avoid repeating
82+
recurring StartJobRun API request values, enforcing certain values in
83+
StartJobRun API request.
84+
"""
85+
def create_job_template(%Client{} = client, input, options \\ []) do
86+
url_path = "/jobtemplates"
87+
headers = []
88+
query_params = []
89+
90+
meta = metadata()
91+
92+
Request.request_rest(
93+
client,
94+
meta,
95+
:post,
96+
url_path,
97+
query_params,
98+
headers,
99+
input,
100+
options,
101+
nil
102+
)
103+
end
104+
77105
@doc """
78106
Creates a managed endpoint.
79107
@@ -129,6 +157,34 @@ defmodule AWS.EMRcontainers do
129157
)
130158
end
131159

160+
@doc """
161+
Deletes a job template.
162+
163+
Job template stores values of StartJobRun API request in a template and can be
164+
used to start a job run. Job template allows two use cases: avoid repeating
165+
recurring StartJobRun API request values, enforcing certain values in
166+
StartJobRun API request.
167+
"""
168+
def delete_job_template(%Client{} = client, id, input, options \\ []) do
169+
url_path = "/jobtemplates/#{AWS.Util.encode_uri(id)}"
170+
headers = []
171+
query_params = []
172+
173+
meta = metadata()
174+
175+
Request.request_rest(
176+
client,
177+
meta,
178+
:delete,
179+
url_path,
180+
query_params,
181+
headers,
182+
input,
183+
options,
184+
nil
185+
)
186+
end
187+
132188
@doc """
133189
Deletes a managed endpoint.
134190
@@ -204,6 +260,24 @@ defmodule AWS.EMRcontainers do
204260
Request.request_rest(client, meta, :get, url_path, query_params, headers, nil, options, nil)
205261
end
206262

263+
@doc """
264+
Displays detailed information about a specified job template.
265+
266+
Job template stores values of StartJobRun API request in a template and can be
267+
used to start a job run. Job template allows two use cases: avoid repeating
268+
recurring StartJobRun API request values, enforcing certain values in
269+
StartJobRun API request.
270+
"""
271+
def describe_job_template(%Client{} = client, id, options \\ []) do
272+
url_path = "/jobtemplates/#{AWS.Util.encode_uri(id)}"
273+
headers = []
274+
query_params = []
275+
276+
meta = metadata()
277+
278+
Request.request_rest(client, meta, :get, url_path, query_params, headers, nil, options, nil)
279+
end
280+
207281
@doc """
208282
Displays detailed information about a managed endpoint.
209283
@@ -309,6 +383,59 @@ defmodule AWS.EMRcontainers do
309383
Request.request_rest(client, meta, :get, url_path, query_params, headers, nil, options, nil)
310384
end
311385

386+
@doc """
387+
Lists job templates based on a set of parameters.
388+
389+
Job template stores values of StartJobRun API request in a template and can be
390+
used to start a job run. Job template allows two use cases: avoid repeating
391+
recurring StartJobRun API request values, enforcing certain values in
392+
StartJobRun API request.
393+
"""
394+
def list_job_templates(
395+
%Client{} = client,
396+
created_after \\ nil,
397+
created_before \\ nil,
398+
max_results \\ nil,
399+
next_token \\ nil,
400+
options \\ []
401+
) do
402+
url_path = "/jobtemplates"
403+
headers = []
404+
query_params = []
405+
406+
query_params =
407+
if !is_nil(next_token) do
408+
[{"nextToken", next_token} | query_params]
409+
else
410+
query_params
411+
end
412+
413+
query_params =
414+
if !is_nil(max_results) do
415+
[{"maxResults", max_results} | query_params]
416+
else
417+
query_params
418+
end
419+
420+
query_params =
421+
if !is_nil(created_before) do
422+
[{"createdBefore", created_before} | query_params]
423+
else
424+
query_params
425+
end
426+
427+
query_params =
428+
if !is_nil(created_after) do
429+
[{"createdAfter", created_after} | query_params]
430+
else
431+
query_params
432+
end
433+
434+
meta = metadata()
435+
436+
Request.request_rest(client, meta, :get, url_path, query_params, headers, nil, options, nil)
437+
end
438+
312439
@doc """
313440
Lists managed endpoints based on a set of parameters.
314441

0 commit comments

Comments
 (0)