Skip to content

Commit ae1f395

Browse files
awsmobilesdktylerjroachtjleing
authored
feat(aws-android-sdk-lambda): update models to latest (#3094)
Co-authored-by: Tyler Roach <[email protected]> Co-authored-by: Thomas Leing <[email protected]>
1 parent cd60e8d commit ae1f395

26 files changed

+468
-150
lines changed

aws-android-sdk-lambda/src/main/java/com/amazonaws/services/lambda/AWSLambda.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ public interface AWSLambda {
216216
* For example, if you invoke a function asynchronously and it returns an
217217
* error, Lambda executes the function up to two more times. For more
218218
* information, see <a href=
219-
* "https://docs.aws.amazon.com/lambda/latest/dg/retries-on-errors.html"
220-
* >Retry Behavior</a>.
219+
* "https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html"
220+
* >Error handling and automatic retries in Lambda</a>.
221221
* </p>
222222
* <p>
223223
* For <a href=
@@ -228,26 +228,26 @@ public interface AWSLambda {
228228
* your function may receive the same event multiple times, even if no error
229229
* occurs. To retain events that were not processed, configure your function
230230
* with a <a href=
231-
* "https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq"
231+
* "https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq"
232232
* >dead-letter queue</a>.
233233
* </p>
234234
* <p>
235235
* The status code in the API response doesn't reflect function errors.
236236
* Error codes are reserved for errors that prevent your function from
237-
* executing, such as permissions errors, <a
238-
* href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">limit
239-
* errors</a>, or issues with your function's code and configuration. For
240-
* example, Lambda returns <code>TooManyRequestsException</code> if
241-
* executing the function would cause you to exceed a concurrency limit at
237+
* executing, such as permissions errors, <a href=
238+
* "https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html"
239+
* >quota</a> errors, or issues with your function's code and configuration.
240+
* For example, Lambda returns <code>TooManyRequestsException</code> if
241+
* running the function would cause you to exceed a concurrency limit at
242242
* either the account level (<code>ConcurrentInvocationLimitExceeded</code>)
243243
* or function level (
244244
* <code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).
245245
* </p>
246246
* <p>
247-
* For functions with a long timeout, your client might be disconnected
248-
* during synchronous invocation while it waits for a response. Configure
249-
* your HTTP client, SDK, firewall, proxy, or operating system to allow for
250-
* long connections with timeout or keep-alive settings.
247+
* For functions with a long timeout, your client might disconnect during
248+
* synchronous invocation while it waits for a response. Configure your HTTP
249+
* client, SDK, firewall, proxy, or operating system to allow for long
250+
* connections with timeout or keep-alive settings.
251251
* </p>
252252
* <p>
253253
* This operation requires permission for the <a href=
@@ -275,6 +275,9 @@ public interface AWSLambda {
275275
* @throws EFSMountFailureException
276276
* @throws EFSMountTimeoutException
277277
* @throws EFSIOException
278+
* @throws SnapStartException
279+
* @throws SnapStartTimeoutException
280+
* @throws SnapStartNotReadyException
278281
* @throws EC2ThrottledException
279282
* @throws EC2AccessDeniedException
280283
* @throws InvalidSubnetIDException

aws-android-sdk-lambda/src/main/java/com/amazonaws/services/lambda/AWSLambdaClient.java

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ private void init() {
454454
jsonErrorUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());
455455
jsonErrorUnmarshallers.add(new ResourceNotReadyExceptionUnmarshaller());
456456
jsonErrorUnmarshallers.add(new ServiceExceptionUnmarshaller());
457+
jsonErrorUnmarshallers.add(new SnapStartExceptionUnmarshaller());
458+
jsonErrorUnmarshallers.add(new SnapStartNotReadyExceptionUnmarshaller());
459+
jsonErrorUnmarshallers.add(new SnapStartTimeoutExceptionUnmarshaller());
457460
jsonErrorUnmarshallers.add(new SubnetIPAddressLimitReachedExceptionUnmarshaller());
458461
jsonErrorUnmarshallers.add(new TooManyRequestsExceptionUnmarshaller());
459462
jsonErrorUnmarshallers.add(new UnsupportedMediaTypeExceptionUnmarshaller());
@@ -499,8 +502,8 @@ private static ClientConfiguration adjustClientConfiguration(ClientConfiguration
499502
* For example, if you invoke a function asynchronously and it returns an
500503
* error, Lambda executes the function up to two more times. For more
501504
* information, see <a href=
502-
* "https://docs.aws.amazon.com/lambda/latest/dg/retries-on-errors.html"
503-
* >Retry Behavior</a>.
505+
* "https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html"
506+
* >Error handling and automatic retries in Lambda</a>.
504507
* </p>
505508
* <p>
506509
* For <a href=
@@ -511,26 +514,26 @@ private static ClientConfiguration adjustClientConfiguration(ClientConfiguration
511514
* your function may receive the same event multiple times, even if no error
512515
* occurs. To retain events that were not processed, configure your function
513516
* with a <a href=
514-
* "https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq"
517+
* "https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq"
515518
* >dead-letter queue</a>.
516519
* </p>
517520
* <p>
518521
* The status code in the API response doesn't reflect function errors.
519522
* Error codes are reserved for errors that prevent your function from
520-
* executing, such as permissions errors, <a
521-
* href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">limit
522-
* errors</a>, or issues with your function's code and configuration. For
523-
* example, Lambda returns <code>TooManyRequestsException</code> if
524-
* executing the function would cause you to exceed a concurrency limit at
523+
* executing, such as permissions errors, <a href=
524+
* "https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html"
525+
* >quota</a> errors, or issues with your function's code and configuration.
526+
* For example, Lambda returns <code>TooManyRequestsException</code> if
527+
* running the function would cause you to exceed a concurrency limit at
525528
* either the account level (<code>ConcurrentInvocationLimitExceeded</code>)
526529
* or function level (
527530
* <code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).
528531
* </p>
529532
* <p>
530-
* For functions with a long timeout, your client might be disconnected
531-
* during synchronous invocation while it waits for a response. Configure
532-
* your HTTP client, SDK, firewall, proxy, or operating system to allow for
533-
* long connections with timeout or keep-alive settings.
533+
* For functions with a long timeout, your client might disconnect during
534+
* synchronous invocation while it waits for a response. Configure your HTTP
535+
* client, SDK, firewall, proxy, or operating system to allow for long
536+
* connections with timeout or keep-alive settings.
534537
* </p>
535538
* <p>
536539
* This operation requires permission for the <a href=
@@ -558,6 +561,9 @@ private static ClientConfiguration adjustClientConfiguration(ClientConfiguration
558561
* @throws EFSMountFailureException
559562
* @throws EFSMountTimeoutException
560563
* @throws EFSIOException
564+
* @throws SnapStartException
565+
* @throws SnapStartTimeoutException
566+
* @throws SnapStartNotReadyException
561567
* @throws EC2ThrottledException
562568
* @throws EC2AccessDeniedException
563569
* @throws InvalidSubnetIDException

aws-android-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/EC2ThrottledException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
/**
2121
* <p>
22-
* Lambda was throttled by Amazon EC2 during Lambda function initialization
23-
* using the execution role provided for the Lambda function.
22+
* Amazon EC2 throttled Lambda during Lambda function initialization using the
23+
* execution role provided for the function.
2424
* </p>
2525
*/
2626
public class EC2ThrottledException extends AmazonServiceException {

aws-android-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/EC2UnexpectedException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
/**
2121
* <p>
22-
* Lambda received an unexpected EC2 client exception while setting up for the
23-
* Lambda function.
22+
* Lambda received an unexpected Amazon EC2 client exception while setting up
23+
* for the Lambda function.
2424
* </p>
2525
*/
2626
public class EC2UnexpectedException extends AmazonServiceException {

aws-android-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/EFSMountConnectivityException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/**
2121
* <p>
22-
* The function couldn't make a network connection to the configured file
22+
* The Lambda function couldn't make a network connection to the configured file
2323
* system.
2424
* </p>
2525
*/

aws-android-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/EFSMountFailureException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
/**
2121
* <p>
22-
* The function couldn't mount the configured file system due to a permission or
23-
* configuration issue.
22+
* The Lambda function couldn't mount the configured file system due to a
23+
* permission or configuration issue.
2424
* </p>
2525
*/
2626
public class EFSMountFailureException extends AmazonServiceException {

aws-android-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/EFSMountTimeoutException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
/**
2121
* <p>
22-
* The function was able to make a network connection to the configured file
23-
* system, but the mount operation timed out.
22+
* The Lambda function made a network connection to the configured file system,
23+
* but the mount operation timed out.
2424
* </p>
2525
*/
2626
public class EFSMountTimeoutException extends AmazonServiceException {

aws-android-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/ENILimitReachedException.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919

2020
/**
2121
* <p>
22-
* Lambda was not able to create an elastic network interface in the VPC,
23-
* specified as part of Lambda function configuration, because the limit for
24-
* network interfaces has been reached.
22+
* Lambda couldn't create an elastic network interface in the VPC, specified as
23+
* part of Lambda function configuration, because the limit for network
24+
* interfaces has been reached. For more information, see <a href=
25+
* "https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html"
26+
* >Lambda quotas</a>.
2527
* </p>
2628
*/
2729
public class ENILimitReachedException extends AmazonServiceException {

aws-android-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/InvalidParameterValueException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/**
2121
* <p>
22-
* One of the parameters in the request is invalid.
22+
* One of the parameters in the request is not valid.
2323
* </p>
2424
*/
2525
public class InvalidParameterValueException extends AmazonServiceException {

aws-android-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/InvalidSecurityGroupIDException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
/**
2121
* <p>
22-
* The Security Group ID provided in the Lambda function VPC configuration is
23-
* invalid.
22+
* The security group ID provided in the Lambda function VPC configuration is
23+
* not valid.
2424
* </p>
2525
*/
2626
public class InvalidSecurityGroupIDException extends AmazonServiceException {

0 commit comments

Comments
 (0)