aws-sdk-lambda 1.62.0 → 1.63.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3709e3fa9700dab4c06d28bc0e440ac4274f7f9fd5b87ba765ac1c505a2c4d9
4
- data.tar.gz: 167696247434e077341e3ce5b647a7127c360c01f35b5d59e390fb59a8f7b181
3
+ metadata.gz: 2e5cc72061284d6cab80781cf084688bd2105a7f18864b4215f526d78ed922a8
4
+ data.tar.gz: aac9ab3f6a5a328e329e0ad44153424d6d97597e2c15149441f2ddee2ce6b3c9
5
5
  SHA512:
6
- metadata.gz: 27516d3ddbf17d5ce162329bef2717d2e5bbf6560153caba6c5dfc9f45eaae8bfab74bba58eb2da91927752d0b09754975831e72516028ff928be876c8aa6f03
7
- data.tar.gz: 7620ee807324af69f05c7c274dffe41970608146b1de09472848dd7c771e131a973f0e7d2598d422d1aea7de117450cd90b4f65e5a7e773ad4ce073a2a8cabfb
6
+ metadata.gz: 82539c53e2ab9a642e429a8deff93dc78454e4d3497f60725430c52f1d91a1bd96f984ff51161bfef7412c8c2dc02a201435f81f51e07197b1b83d090686311c
7
+ data.tar.gz: befa93ada9f746412ca75ecf4ac54eccbd8f35b6ced9924fafbc034eb154b5e6b0699d32aa99fdb8fc6c545cc38b4f91b0b58dd32113e4cf4387f55bd0f9909f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.63.0 (2021-07-06)
5
+ ------------------
6
+
7
+ * Feature - Added support for AmazonMQRabbitMQ as an event source. Added support for VIRTUAL_HOST as SourceAccessType for streams event source mappings.
8
+
4
9
  1.62.0 (2021-03-16)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.62.0
1
+ 1.63.0
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-lambda/customizations'
49
49
  # @!group service
50
50
  module Aws::Lambda
51
51
 
52
- GEM_VERSION = '1.62.0'
52
+ GEM_VERSION = '1.63.0'
53
53
 
54
54
  end
@@ -327,10 +327,10 @@ module Aws::Lambda
327
327
 
328
328
  # @!group API Operations
329
329
 
330
- # Adds permissions to the resource-based policy of a version of an [AWS
331
- # Lambda layer][1]. Use this action to grant layer usage permission to
332
- # other accounts. You can grant permission to a single account, all AWS
333
- # accounts, or all accounts in an organization.
330
+ # Adds permissions to the resource-based policy of a version of an
331
+ # [Lambda layer][1]. Use this action to grant layer usage permission to
332
+ # other accounts. You can grant permission to a single account, all
333
+ # accounts in an organization, or all Amazon Web Services accounts.
334
334
  #
335
335
  # To revoke permission, call RemoveLayerVersionPermission with the
336
336
  # statement ID that you specified when you added it.
@@ -354,7 +354,11 @@ module Aws::Lambda
354
354
  # `lambda:GetLayerVersion`.
355
355
  #
356
356
  # @option params [required, String] :principal
357
- # An account ID, or `*` to grant permission to all AWS accounts.
357
+ # An account ID, or `*` to grant layer usage permission to all accounts
358
+ # in an organization, or all Amazon Web Services accounts (if
359
+ # `organizationId` is not specified). For the last case, make sure that
360
+ # you really do want all Amazon Web Services accounts to have usage
361
+ # permission to this layer.
358
362
  #
359
363
  # @option params [String] :organization_id
360
364
  # With the principal set to `*`, grant permission to all accounts in the
@@ -370,25 +374,6 @@ module Aws::Lambda
370
374
  # * {Types::AddLayerVersionPermissionResponse#statement #statement} => String
371
375
  # * {Types::AddLayerVersionPermissionResponse#revision_id #revision_id} => String
372
376
  #
373
- #
374
- # @example Example: To add permissions to a layer version
375
- #
376
- # # The following example grants permission for the account 223456789012 to use version 1 of a layer named my-layer.
377
- #
378
- # resp = client.add_layer_version_permission({
379
- # action: "lambda:GetLayerVersion",
380
- # layer_name: "my-layer",
381
- # principal: "223456789012",
382
- # statement_id: "xaccount",
383
- # version_number: 1,
384
- # })
385
- #
386
- # resp.to_h outputs the following:
387
- # {
388
- # revision_id: "35d87451-f796-4a3f-a618-95a3671b0a0c",
389
- # statement: "{\"Sid\":\"xaccount\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::223456789012:root\"},\"Action\":\"lambda:GetLayerVersion\",\"Resource\":\"arn:aws:lambda:us-east-2:123456789012:layer:my-layer:1\"}",
390
- # }
391
- #
392
377
  # @example Request syntax with placeholder values
393
378
  #
394
379
  # resp = client.add_layer_version_permission({
@@ -415,20 +400,20 @@ module Aws::Lambda
415
400
  req.send_request(options)
416
401
  end
417
402
 
418
- # Grants an AWS service or another account permission to use a function.
419
- # You can apply the policy at the function level, or specify a qualifier
420
- # to restrict access to a single version or alias. If you use a
421
- # qualifier, the invoker must use the full Amazon Resource Name (ARN) of
422
- # that version or alias to invoke the function.
403
+ # Grants an Amazon Web Services service or another account permission to
404
+ # use a function. You can apply the policy at the function level, or
405
+ # specify a qualifier to restrict access to a single version or alias.
406
+ # If you use a qualifier, the invoker must use the full Amazon Resource
407
+ # Name (ARN) of that version or alias to invoke the function.
423
408
  #
424
409
  # To grant permission to another account, specify the account ID as the
425
- # `Principal`. For AWS services, the principal is a domain-style
426
- # identifier defined by the service, like `s3.amazonaws.com` or
427
- # `sns.amazonaws.com`. For AWS services, you can also specify the ARN of
428
- # the associated resource as the `SourceArn`. If you grant permission to
429
- # a service principal without specifying the source, other accounts
430
- # could potentially configure resources in their account to invoke your
431
- # Lambda function.
410
+ # `Principal`. For Amazon Web Services services, the principal is a
411
+ # domain-style identifier defined by the service, like
412
+ # `s3.amazonaws.com` or `sns.amazonaws.com`. For Amazon Web Services
413
+ # services, you can also specify the ARN of the associated resource as
414
+ # the `SourceArn`. If you grant permission to a service principal
415
+ # without specifying the source, other accounts could potentially
416
+ # configure resources in their account to invoke your Lambda function.
432
417
  #
433
418
  # This action adds a statement to a resource-based permissions policy
434
419
  # for the function. For more information about function policies, see
@@ -464,13 +449,14 @@ module Aws::Lambda
464
449
  # `lambda:InvokeFunction` or `lambda:GetFunction`.
465
450
  #
466
451
  # @option params [required, String] :principal
467
- # The AWS service or account that invokes the function. If you specify a
468
- # service, use `SourceArn` or `SourceAccount` to limit who can invoke
469
- # the function through that service.
452
+ # The Amazon Web Services service or account that invokes the function.
453
+ # If you specify a service, use `SourceArn` or `SourceAccount` to limit
454
+ # who can invoke the function through that service.
470
455
  #
471
456
  # @option params [String] :source_arn
472
- # For AWS services, the ARN of the AWS resource that invokes the
473
- # function. For example, an Amazon S3 bucket or Amazon SNS topic.
457
+ # For Amazon Web Services services, the ARN of the Amazon Web Services
458
+ # resource that invokes the function. For example, an Amazon S3 bucket
459
+ # or Amazon SNS topic.
474
460
  #
475
461
  # @option params [String] :source_account
476
462
  # For Amazon S3, the ID of the account that owns the resource. Use this
@@ -495,42 +481,6 @@ module Aws::Lambda
495
481
  #
496
482
  # * {Types::AddPermissionResponse#statement #statement} => String
497
483
  #
498
- #
499
- # @example Example: To grant Amazon S3 permission to invoke a function
500
- #
501
- # # The following example adds permission for Amazon S3 to invoke a Lambda function named my-function for notifications from
502
- # # a bucket named my-bucket-1xpuxmplzrlbh in account 123456789012.
503
- #
504
- # resp = client.add_permission({
505
- # action: "lambda:InvokeFunction",
506
- # function_name: "my-function",
507
- # principal: "s3.amazonaws.com",
508
- # source_account: "123456789012",
509
- # source_arn: "arn:aws:s3:::my-bucket-1xpuxmplzrlbh/*",
510
- # statement_id: "s3",
511
- # })
512
- #
513
- # resp.to_h outputs the following:
514
- # {
515
- # statement: "{\"Sid\":\"s3\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"s3.amazonaws.com\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-east-2:123456789012:function:my-function\",\"Condition\":{\"StringEquals\":{\"AWS:SourceAccount\":\"123456789012\"},\"ArnLike\":{\"AWS:SourceArn\":\"arn:aws:s3:::my-bucket-1xpuxmplzrlbh\"}}}",
516
- # }
517
- #
518
- # @example Example: To grant another account permission to invoke a function
519
- #
520
- # # The following example adds permission for account 223456789012 invoke a Lambda function named my-function.
521
- #
522
- # resp = client.add_permission({
523
- # action: "lambda:InvokeFunction",
524
- # function_name: "my-function",
525
- # principal: "223456789012",
526
- # statement_id: "xaccount",
527
- # })
528
- #
529
- # resp.to_h outputs the following:
530
- # {
531
- # statement: "{\"Sid\":\"xaccount\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::223456789012:root\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-east-2:123456789012:function:my-function\"}",
532
- # }
533
- #
534
484
  # @example Request syntax with placeholder values
535
485
  #
536
486
  # resp = client.add_permission({
@@ -610,27 +560,6 @@ module Aws::Lambda
610
560
  # * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
611
561
  # * {Types::AliasConfiguration#revision_id #revision_id} => String
612
562
  #
613
- #
614
- # @example Example: To create an alias for a Lambda function
615
- #
616
- # # The following example creates an alias named LIVE that points to version 1 of the my-function Lambda function.
617
- #
618
- # resp = client.create_alias({
619
- # description: "alias for live version of function",
620
- # function_name: "my-function",
621
- # function_version: "1",
622
- # name: "LIVE",
623
- # })
624
- #
625
- # resp.to_h outputs the following:
626
- # {
627
- # alias_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:LIVE",
628
- # description: "alias for live version of function",
629
- # function_version: "1",
630
- # name: "LIVE",
631
- # revision_id: "873282ed-xmpl-4dc8-a069-d0c647e470c6",
632
- # }
633
- #
634
563
  # @example Request syntax with placeholder values
635
564
  #
636
565
  # resp = client.create_alias({
@@ -718,22 +647,24 @@ module Aws::Lambda
718
647
  req.send_request(options)
719
648
  end
720
649
 
721
- # Creates a mapping between an event source and an AWS Lambda function.
650
+ # Creates a mapping between an event source and an Lambda function.
722
651
  # Lambda reads items from the event source and triggers the function.
723
652
  #
724
- # For details about each event source type, see the following topics.
653
+ # For details about each event source type, see the following topics. In
654
+ # particular, each of the topics describes the required and optional
655
+ # parameters for the specific event source.
725
656
  #
726
- # * [Using AWS Lambda with Amazon DynamoDB][1]
657
+ # * [ Configuring a Dynamo DB stream as an event source][1]
727
658
  #
728
- # * [Using AWS Lambda with Amazon Kinesis][2]
659
+ # * [ Configuring a Kinesis stream as an event source][2]
729
660
  #
730
- # * [Using AWS Lambda with Amazon SQS][3]
661
+ # * [ Configuring an SQS queue as an event source][3]
731
662
  #
732
- # * [Using AWS Lambda with Amazon MQ][4]
663
+ # * [ Configuring an MQ broker as an event source][4]
733
664
  #
734
- # * [Using AWS Lambda with Amazon MSK][5]
665
+ # * [ Configuring MSK as an event source][5]
735
666
  #
736
- # * [Using AWS Lambda with Self-Managed Apache Kafka][6]
667
+ # * [ Configuring Self-Managed Apache Kafka as an event source][6]
737
668
  #
738
669
  # The following error handling options are only available for stream
739
670
  # sources (DynamoDB and Kinesis):
@@ -757,10 +688,10 @@ module Aws::Lambda
757
688
  #
758
689
  #
759
690
  #
760
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
761
- # [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
762
- # [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
763
- # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html
691
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping
692
+ # [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping
693
+ # [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource
694
+ # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping
764
695
  # [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
765
696
  # [6]: https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html
766
697
  #
@@ -819,7 +750,7 @@ module Aws::Lambda
819
750
  # records before invoking the function, in seconds.
820
751
  #
821
752
  # @option params [Integer] :parallelization_factor
822
- # (Streams) The number of batches to process from each shard
753
+ # (Streams only) The number of batches to process from each shard
823
754
  # concurrently.
824
755
  #
825
756
  # @option params [String] :starting_position
@@ -832,25 +763,25 @@ module Aws::Lambda
832
763
  # start reading.
833
764
  #
834
765
  # @option params [Types::DestinationConfig] :destination_config
835
- # (Streams) An Amazon SQS queue or Amazon SNS topic destination for
766
+ # (Streams only) An Amazon SQS queue or Amazon SNS topic destination for
836
767
  # discarded records.
837
768
  #
838
769
  # @option params [Integer] :maximum_record_age_in_seconds
839
- # (Streams) Discard records older than the specified age. The default
840
- # value is infinite (-1).
770
+ # (Streams only) Discard records older than the specified age. The
771
+ # default value is infinite (-1).
841
772
  #
842
773
  # @option params [Boolean] :bisect_batch_on_function_error
843
- # (Streams) If the function returns an error, split the batch in two and
844
- # retry.
774
+ # (Streams only) If the function returns an error, split the batch in
775
+ # two and retry.
845
776
  #
846
777
  # @option params [Integer] :maximum_retry_attempts
847
- # (Streams) Discard records after the specified number of retries. The
848
- # default value is infinite (-1). When set to infinite (-1), failed
778
+ # (Streams only) Discard records after the specified number of retries.
779
+ # The default value is infinite (-1). When set to infinite (-1), failed
849
780
  # records will be retried until the record expires.
850
781
  #
851
782
  # @option params [Integer] :tumbling_window_in_seconds
852
- # (Streams) The duration in seconds of a processing window. The range is
853
- # between 1 second up to 900 seconds.
783
+ # (Streams only) The duration in seconds of a processing window. The
784
+ # range is between 1 second up to 900 seconds.
854
785
  #
855
786
  # @option params [Array<String>] :topics
856
787
  # The name of the Kafka topic.
@@ -866,8 +797,8 @@ module Aws::Lambda
866
797
  # The Self-Managed Apache Kafka cluster to send records.
867
798
  #
868
799
  # @option params [Array<String>] :function_response_types
869
- # (Streams) A list of current response type enums applied to the event
870
- # source mapping.
800
+ # (Streams only) A list of current response type enums applied to the
801
+ # event source mapping.
871
802
  #
872
803
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
873
804
  #
@@ -894,28 +825,6 @@ module Aws::Lambda
894
825
  # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
895
826
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
896
827
  #
897
- #
898
- # @example Example: To create a mapping between an event source and an AWS Lambda function
899
- #
900
- # # The following example creates a mapping between an SQS queue and the my-function Lambda function.
901
- #
902
- # resp = client.create_event_source_mapping({
903
- # batch_size: 5,
904
- # event_source_arn: "arn:aws:sqs:us-west-2:123456789012:my-queue",
905
- # function_name: "my-function",
906
- # })
907
- #
908
- # resp.to_h outputs the following:
909
- # {
910
- # batch_size: 5,
911
- # event_source_arn: "arn:aws:sqs:us-west-2:123456789012:my-queue",
912
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
913
- # last_modified: Time.parse(1569284520.333),
914
- # state: "Creating",
915
- # state_transition_reason: "USER_INITIATED",
916
- # uuid: "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
917
- # }
918
- #
919
828
  # @example Request syntax with placeholder values
920
829
  #
921
830
  # resp = client.create_event_source_mapping({
@@ -943,7 +852,7 @@ module Aws::Lambda
943
852
  # queues: ["Queue"],
944
853
  # source_access_configurations: [
945
854
  # {
946
- # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH
855
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
947
856
  # uri: "URI",
948
857
  # },
949
858
  # ],
@@ -976,7 +885,7 @@ module Aws::Lambda
976
885
  # resp.queues #=> Array
977
886
  # resp.queues[0] #=> String
978
887
  # resp.source_access_configurations #=> Array
979
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH"
888
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
980
889
  # resp.source_access_configurations[0].uri #=> String
981
890
  # resp.self_managed_event_source.endpoints #=> Hash
982
891
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -1001,8 +910,18 @@ module Aws::Lambda
1001
910
  # [deployment package][1] and an [execution role][2]. The deployment
1002
911
  # package is a .zip file archive or container image that contains your
1003
912
  # function code. The execution role grants the function permission to
1004
- # use AWS services, such as Amazon CloudWatch Logs for log streaming and
1005
- # AWS X-Ray for request tracing.
913
+ # use Amazon Web Services services, such as Amazon CloudWatch Logs for
914
+ # log streaming and X-Ray for request tracing.
915
+ #
916
+ # You set the package type to `Image` if the deployment package is a
917
+ # [container image][3]. For a container image, the code property must
918
+ # include the URI of a container image in the Amazon ECR registry. You
919
+ # do not need to specify the handler and runtime properties.
920
+ #
921
+ # You set the package type to `Zip` if the deployment package is a [.zip
922
+ # file archive][4]. For a .zip file archive, the code property specifies
923
+ # the location of the .zip file. You must also specify the handler and
924
+ # runtime properties.
1006
925
  #
1007
926
  # When you create a function, Lambda provisions an instance of the
1008
927
  # function and its supporting resources. If your function connects to a
@@ -1010,7 +929,7 @@ module Aws::Lambda
1010
929
  # can't invoke or modify the function. The `State`, `StateReason`, and
1011
930
  # `StateReasonCode` fields in the response from GetFunctionConfiguration
1012
931
  # indicate when the function is ready to invoke. For more information,
1013
- # see [Function States][3].
932
+ # see [Function States][5].
1014
933
  #
1015
934
  # A function has an unpublished version, and can have published versions
1016
935
  # and aliases. The unpublished version changes when you update your
@@ -1035,22 +954,25 @@ module Aws::Lambda
1035
954
  # configuration includes set set of signing profiles, which define the
1036
955
  # trusted publishers for this function.
1037
956
  #
1038
- # If another account or an AWS service invokes your function, use
1039
- # AddPermission to grant permission by creating a resource-based IAM
1040
- # policy. You can grant permissions at the function level, on a version,
1041
- # or on an alias.
957
+ # If another account or an Amazon Web Services service invokes your
958
+ # function, use AddPermission to grant permission by creating a
959
+ # resource-based IAM policy. You can grant permissions at the function
960
+ # level, on a version, or on an alias.
1042
961
  #
1043
962
  # To invoke your function directly, use Invoke. To invoke your function
1044
- # in response to events in other AWS services, create an event source
1045
- # mapping (CreateEventSourceMapping), or configure a function trigger in
1046
- # the other service. For more information, see [Invoking Functions][4].
963
+ # in response to events in other Amazon Web Services services, create an
964
+ # event source mapping (CreateEventSourceMapping), or configure a
965
+ # function trigger in the other service. For more information, see
966
+ # [Invoking Functions][6].
1047
967
  #
1048
968
  #
1049
969
  #
1050
970
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html
1051
971
  # [2]: https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role
1052
- # [3]: https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html
1053
- # [4]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html
972
+ # [3]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html
973
+ # [4]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip
974
+ # [5]: https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html
975
+ # [6]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html
1054
976
  #
1055
977
  # @option params [required, String] :function_name
1056
978
  # The name of the Lambda function.
@@ -1096,22 +1018,32 @@ module Aws::Lambda
1096
1018
  # @option params [Integer] :timeout
1097
1019
  # The amount of time that Lambda allows a function to run before
1098
1020
  # stopping it. The default is 3 seconds. The maximum allowed value is
1099
- # 900 seconds.
1021
+ # 900 seconds. For additional information, see [Lambda execution
1022
+ # environment][1].
1023
+ #
1024
+ #
1025
+ #
1026
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html
1100
1027
  #
1101
1028
  # @option params [Integer] :memory_size
1102
- # The amount of memory available to the function at runtime. Increasing
1103
- # the function's memory also increases its CPU allocation. The default
1104
- # value is 128 MB. The value can be any multiple of 1 MB.
1029
+ # The amount of [memory available to the function][1] at runtime.
1030
+ # Increasing the function memory also increases its CPU allocation. The
1031
+ # default value is 128 MB. The value can be any multiple of 1 MB.
1032
+ #
1033
+ #
1034
+ #
1035
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-memory.html
1105
1036
  #
1106
1037
  # @option params [Boolean] :publish
1107
1038
  # Set to true to publish the first version of the function during
1108
1039
  # creation.
1109
1040
  #
1110
1041
  # @option params [Types::VpcConfig] :vpc_config
1111
- # For network connectivity to AWS resources in a VPC, specify a list of
1112
- # security groups and subnets in the VPC. When you connect a function to
1113
- # a VPC, it can only access resources and the internet through that VPC.
1114
- # For more information, see [VPC Settings][1].
1042
+ # For network connectivity to Amazon Web Services resources in a VPC,
1043
+ # specify a list of security groups and subnets in the VPC. When you
1044
+ # connect a function to a VPC, it can only access resources and the
1045
+ # internet through that VPC. For more information, see [VPC
1046
+ # Settings][1].
1115
1047
  #
1116
1048
  #
1117
1049
  #
@@ -1135,13 +1067,17 @@ module Aws::Lambda
1135
1067
  # execution.
1136
1068
  #
1137
1069
  # @option params [String] :kms_key_arn
1138
- # The ARN of the AWS Key Management Service (AWS KMS) key that's used
1139
- # to encrypt your function's environment variables. If it's not
1140
- # provided, AWS Lambda uses a default service key.
1070
+ # The ARN of the Amazon Web Services Key Management Service (KMS) key
1071
+ # that's used to encrypt your function's environment variables. If
1072
+ # it's not provided, Lambda uses a default service key.
1141
1073
  #
1142
1074
  # @option params [Types::TracingConfig] :tracing_config
1143
1075
  # Set `Mode` to `Active` to sample and trace a subset of incoming
1144
- # requests with AWS X-Ray.
1076
+ # requests with [X-Ray][1].
1077
+ #
1078
+ #
1079
+ #
1080
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html
1145
1081
  #
1146
1082
  # @option params [Hash<String,String>] :tags
1147
1083
  # A list of [tags][1] to apply to the function.
@@ -1162,12 +1098,12 @@ module Aws::Lambda
1162
1098
  # Connection settings for an Amazon EFS file system.
1163
1099
  #
1164
1100
  # @option params [Types::ImageConfig] :image_config
1165
- # [Container image configuration values][1] that override the values in
1101
+ # Container image [configuration values][1] that override the values in
1166
1102
  # the container image Dockerfile.
1167
1103
  #
1168
1104
  #
1169
1105
  #
1170
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/images-parms.html
1106
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-images.html#configuration-images-settings
1171
1107
  #
1172
1108
  # @option params [String] :code_signing_config_arn
1173
1109
  # To enable code signing for this function, specify the ARN of a
@@ -1209,69 +1145,6 @@ module Aws::Lambda
1209
1145
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
1210
1146
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
1211
1147
  #
1212
- #
1213
- # @example Example: To create a function
1214
- #
1215
- # # The following example creates a function with a deployment package in Amazon S3 and enables X-Ray tracing and
1216
- # # environment variable encryption.
1217
- #
1218
- # resp = client.create_function({
1219
- # code: {
1220
- # s3_bucket: "my-bucket-1xpuxmplzrlbh",
1221
- # s3_key: "function.zip",
1222
- # },
1223
- # description: "Process image objects from Amazon S3.",
1224
- # environment: {
1225
- # variables: {
1226
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
1227
- # "PREFIX" => "inbound",
1228
- # },
1229
- # },
1230
- # function_name: "my-function",
1231
- # handler: "index.handler",
1232
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
1233
- # memory_size: 256,
1234
- # publish: true,
1235
- # role: "arn:aws:iam::123456789012:role/lambda-role",
1236
- # runtime: "nodejs12.x",
1237
- # tags: {
1238
- # "DEPARTMENT" => "Assets",
1239
- # },
1240
- # timeout: 15,
1241
- # tracing_config: {
1242
- # mode: "Active",
1243
- # },
1244
- # })
1245
- #
1246
- # resp.to_h outputs the following:
1247
- # {
1248
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
1249
- # code_size: 5797206,
1250
- # description: "Process image objects from Amazon S3.",
1251
- # environment: {
1252
- # variables: {
1253
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
1254
- # "PREFIX" => "inbound",
1255
- # },
1256
- # },
1257
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
1258
- # function_name: "my-function",
1259
- # handler: "index.handler",
1260
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
1261
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
1262
- # last_update_status: "Successful",
1263
- # memory_size: 256,
1264
- # revision_id: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
1265
- # role: "arn:aws:iam::123456789012:role/lambda-role",
1266
- # runtime: "nodejs12.x",
1267
- # state: "Active",
1268
- # timeout: 15,
1269
- # tracing_config: {
1270
- # mode: "Active",
1271
- # },
1272
- # version: "1",
1273
- # }
1274
- #
1275
1148
  # @example Request syntax with placeholder values
1276
1149
  #
1277
1150
  # resp = client.create_function({
@@ -1413,16 +1286,6 @@ module Aws::Lambda
1413
1286
  #
1414
1287
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1415
1288
  #
1416
- #
1417
- # @example Example: To delete a Lambda function alias
1418
- #
1419
- # # The following example deletes an alias named BLUE from a function named my-function
1420
- #
1421
- # resp = client.delete_alias({
1422
- # function_name: "my-function",
1423
- # name: "BLUE",
1424
- # })
1425
- #
1426
1289
  # @example Request syntax with placeholder values
1427
1290
  #
1428
1291
  # resp = client.delete_alias({
@@ -1500,26 +1363,6 @@ module Aws::Lambda
1500
1363
  # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
1501
1364
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
1502
1365
  #
1503
- #
1504
- # @example Example: To delete a Lambda function event source mapping
1505
- #
1506
- # # The following example deletes an event source mapping. To get a mapping's UUID, use ListEventSourceMappings.
1507
- #
1508
- # resp = client.delete_event_source_mapping({
1509
- # uuid: "14e0db71-xmpl-4eb5-b481-8945cf9d10c2",
1510
- # })
1511
- #
1512
- # resp.to_h outputs the following:
1513
- # {
1514
- # batch_size: 5,
1515
- # event_source_arn: "arn:aws:sqs:us-west-2:123456789012:my-queue",
1516
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function",
1517
- # last_modified: Time.parse("${timestamp}"),
1518
- # state: "Enabled",
1519
- # state_transition_reason: "USER_INITIATED",
1520
- # uuid: "14e0db71-xmpl-4eb5-b481-8945cf9d10c2",
1521
- # }
1522
- #
1523
1366
  # @example Request syntax with placeholder values
1524
1367
  #
1525
1368
  # resp = client.delete_event_source_mapping({
@@ -1547,7 +1390,7 @@ module Aws::Lambda
1547
1390
  # resp.queues #=> Array
1548
1391
  # resp.queues[0] #=> String
1549
1392
  # resp.source_access_configurations #=> Array
1550
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH"
1393
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
1551
1394
  # resp.source_access_configurations[0].uri #=> String
1552
1395
  # resp.self_managed_event_source.endpoints #=> Hash
1553
1396
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -1573,9 +1416,9 @@ module Aws::Lambda
1573
1416
  # deleted.
1574
1417
  #
1575
1418
  # To delete Lambda event source mappings that invoke a function, use
1576
- # DeleteEventSourceMapping. For AWS services and resources that invoke
1577
- # your function directly, delete the trigger in the service where you
1578
- # originally configured it.
1419
+ # DeleteEventSourceMapping. For Amazon Web Services services and
1420
+ # resources that invoke your function directly, delete the trigger in
1421
+ # the service where you originally configured it.
1579
1422
  #
1580
1423
  # @option params [required, String] :function_name
1581
1424
  # The name of the Lambda function or version.
@@ -1600,16 +1443,6 @@ module Aws::Lambda
1600
1443
  #
1601
1444
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1602
1445
  #
1603
- #
1604
- # @example Example: To delete a version of a Lambda function
1605
- #
1606
- # # The following example deletes version 1 of a Lambda function named my-function.
1607
- #
1608
- # resp = client.delete_function({
1609
- # function_name: "my-function",
1610
- # qualifier: "1",
1611
- # })
1612
- #
1613
1446
  # @example Request syntax with placeholder values
1614
1447
  #
1615
1448
  # resp = client.delete_function({
@@ -1679,15 +1512,6 @@ module Aws::Lambda
1679
1512
  #
1680
1513
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1681
1514
  #
1682
- #
1683
- # @example Example: To remove the reserved concurrent execution limit from a function
1684
- #
1685
- # # The following example deletes the reserved concurrent execution limit from a function named my-function.
1686
- #
1687
- # resp = client.delete_function_concurrency({
1688
- # function_name: "my-function",
1689
- # })
1690
- #
1691
1515
  # @example Request syntax with placeholder values
1692
1516
  #
1693
1517
  # resp = client.delete_function_concurrency({
@@ -1731,17 +1555,6 @@ module Aws::Lambda
1731
1555
  #
1732
1556
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1733
1557
  #
1734
- #
1735
- # @example Example: To delete an asynchronous invocation configuration
1736
- #
1737
- # # The following example deletes the asynchronous invocation configuration for the GREEN alias of a function named
1738
- # # my-function.
1739
- #
1740
- # resp = client.delete_function_event_invoke_config({
1741
- # function_name: "my-function",
1742
- # qualifier: "GREEN",
1743
- # })
1744
- #
1745
1558
  # @example Request syntax with placeholder values
1746
1559
  #
1747
1560
  # resp = client.delete_function_event_invoke_config({
@@ -1758,7 +1571,7 @@ module Aws::Lambda
1758
1571
  req.send_request(options)
1759
1572
  end
1760
1573
 
1761
- # Deletes a version of an [AWS Lambda layer][1]. Deleted versions can no
1574
+ # Deletes a version of an [Lambda layer][1]. Deleted versions can no
1762
1575
  # longer be viewed or added to functions. To avoid breaking functions, a
1763
1576
  # copy of the version remains in Lambda until no functions refer to it.
1764
1577
  #
@@ -1774,16 +1587,6 @@ module Aws::Lambda
1774
1587
  #
1775
1588
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1776
1589
  #
1777
- #
1778
- # @example Example: To delete a version of a Lambda layer
1779
- #
1780
- # # The following example deletes version 2 of a layer named my-layer.
1781
- #
1782
- # resp = client.delete_layer_version({
1783
- # layer_name: "my-layer",
1784
- # version_number: 2,
1785
- # })
1786
- #
1787
1590
  # @example Request syntax with placeholder values
1788
1591
  #
1789
1592
  # resp = client.delete_layer_version({
@@ -1822,17 +1625,6 @@ module Aws::Lambda
1822
1625
  #
1823
1626
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1824
1627
  #
1825
- #
1826
- # @example Example: To delete a provisioned concurrency configuration
1827
- #
1828
- # # The following example deletes the provisioned concurrency configuration for the GREEN alias of a function named
1829
- # # my-function.
1830
- #
1831
- # resp = client.delete_provisioned_concurrency_config({
1832
- # function_name: "my-function",
1833
- # qualifier: "GREEN",
1834
- # })
1835
- #
1836
1628
  # @example Request syntax with placeholder values
1837
1629
  #
1838
1630
  # resp = client.delete_provisioned_concurrency_config({
@@ -1850,7 +1642,7 @@ module Aws::Lambda
1850
1642
  end
1851
1643
 
1852
1644
  # Retrieves details about your account's [limits][1] and usage in an
1853
- # AWS Region.
1645
+ # Amazon Web Services Region.
1854
1646
  #
1855
1647
  #
1856
1648
  #
@@ -1861,29 +1653,6 @@ module Aws::Lambda
1861
1653
  # * {Types::GetAccountSettingsResponse#account_limit #account_limit} => Types::AccountLimit
1862
1654
  # * {Types::GetAccountSettingsResponse#account_usage #account_usage} => Types::AccountUsage
1863
1655
  #
1864
- #
1865
- # @example Example: To get account settings
1866
- #
1867
- # # This operation takes no parameters and returns details about storage and concurrency quotas in the current Region.
1868
- #
1869
- # resp = client.get_account_settings({
1870
- # })
1871
- #
1872
- # resp.to_h outputs the following:
1873
- # {
1874
- # account_limit: {
1875
- # code_size_unzipped: 262144000,
1876
- # code_size_zipped: 52428800,
1877
- # concurrent_executions: 1000,
1878
- # total_code_size: 80530636800,
1879
- # unreserved_concurrent_executions: 1000,
1880
- # },
1881
- # account_usage: {
1882
- # function_count: 4,
1883
- # total_code_size: 9426,
1884
- # },
1885
- # }
1886
- #
1887
1656
  # @example Response structure
1888
1657
  #
1889
1658
  # resp.account_limit.total_code_size #=> Integer
@@ -1936,25 +1705,6 @@ module Aws::Lambda
1936
1705
  # * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
1937
1706
  # * {Types::AliasConfiguration#revision_id #revision_id} => String
1938
1707
  #
1939
- #
1940
- # @example Example: To get a Lambda function alias
1941
- #
1942
- # # The following example returns details about an alias named BLUE for a function named my-function
1943
- #
1944
- # resp = client.get_alias({
1945
- # function_name: "my-function",
1946
- # name: "BLUE",
1947
- # })
1948
- #
1949
- # resp.to_h outputs the following:
1950
- # {
1951
- # alias_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function:BLUE",
1952
- # description: "Production environment BLUE.",
1953
- # function_version: "3",
1954
- # name: "BLUE",
1955
- # revision_id: "594f41fb-xmpl-4c20-95c7-6ca5f2a92c93",
1956
- # }
1957
- #
1958
1708
  # @example Request syntax with placeholder values
1959
1709
  #
1960
1710
  # resp = client.get_alias({
@@ -2046,33 +1796,6 @@ module Aws::Lambda
2046
1796
  # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
2047
1797
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
2048
1798
  #
2049
- #
2050
- # @example Example: To get a Lambda function's event source mapping
2051
- #
2052
- # # The following example returns details about an event source mapping. To get a mapping's UUID, use
2053
- # # ListEventSourceMappings.
2054
- #
2055
- # resp = client.get_event_source_mapping({
2056
- # uuid: "14e0db71-xmpl-4eb5-b481-8945cf9d10c2",
2057
- # })
2058
- #
2059
- # resp.to_h outputs the following:
2060
- # {
2061
- # batch_size: 500,
2062
- # bisect_batch_on_function_error: false,
2063
- # destination_config: {
2064
- # },
2065
- # event_source_arn: "arn:aws:sqs:us-east-2:123456789012:mySQSqueue",
2066
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:myFunction",
2067
- # last_modified: Time.parse("${timestamp}"),
2068
- # last_processing_result: "No records processed",
2069
- # maximum_record_age_in_seconds: 604800,
2070
- # maximum_retry_attempts: 10000,
2071
- # state: "Creating",
2072
- # state_transition_reason: "User action",
2073
- # uuid: "14e0db71-xmpl-4eb5-b481-8945cf9d10c2",
2074
- # }
2075
- #
2076
1799
  # @example Request syntax with placeholder values
2077
1800
  #
2078
1801
  # resp = client.get_event_source_mapping({
@@ -2100,7 +1823,7 @@ module Aws::Lambda
2100
1823
  # resp.queues #=> Array
2101
1824
  # resp.queues[0] #=> String
2102
1825
  # resp.source_access_configurations #=> Array
2103
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH"
1826
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
2104
1827
  # resp.source_access_configurations[0].uri #=> String
2105
1828
  # resp.self_managed_event_source.endpoints #=> Hash
2106
1829
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -2154,54 +1877,6 @@ module Aws::Lambda
2154
1877
  # * {Types::GetFunctionResponse#tags #tags} => Hash&lt;String,String&gt;
2155
1878
  # * {Types::GetFunctionResponse#concurrency #concurrency} => Types::Concurrency
2156
1879
  #
2157
- #
2158
- # @example Example: To get a Lambda function
2159
- #
2160
- # # The following example returns code and configuration details for version 1 of a function named my-function.
2161
- #
2162
- # resp = client.get_function({
2163
- # function_name: "my-function",
2164
- # qualifier: "1",
2165
- # })
2166
- #
2167
- # resp.to_h outputs the following:
2168
- # {
2169
- # code: {
2170
- # location: "https://awslambda-us-west-2-tasks.s3.us-west-2.amazonaws.com/snapshots/123456789012/my-function-e7d9d1ed-xmpl-4f79-904a-4b87f2681f30?versionId=sH3TQwBOaUy...",
2171
- # repository_type: "S3",
2172
- # },
2173
- # configuration: {
2174
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
2175
- # code_size: 5797206,
2176
- # description: "Process image objects from Amazon S3.",
2177
- # environment: {
2178
- # variables: {
2179
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
2180
- # "PREFIX" => "inbound",
2181
- # },
2182
- # },
2183
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
2184
- # function_name: "my-function",
2185
- # handler: "index.handler",
2186
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
2187
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
2188
- # last_update_status: "Successful",
2189
- # memory_size: 256,
2190
- # revision_id: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
2191
- # role: "arn:aws:iam::123456789012:role/lambda-role",
2192
- # runtime: "nodejs12.x",
2193
- # state: "Active",
2194
- # timeout: 15,
2195
- # tracing_config: {
2196
- # mode: "Active",
2197
- # },
2198
- # version: "$LATEST",
2199
- # },
2200
- # tags: {
2201
- # "DEPARTMENT" => "Assets",
2202
- # },
2203
- # }
2204
- #
2205
1880
  # @example Request syntax with placeholder values
2206
1881
  #
2207
1882
  # resp = client.get_function({
@@ -2348,20 +2023,6 @@ module Aws::Lambda
2348
2023
  #
2349
2024
  # * {Types::GetFunctionConcurrencyResponse#reserved_concurrent_executions #reserved_concurrent_executions} => Integer
2350
2025
  #
2351
- #
2352
- # @example Example: To get the reserved concurrency setting for a function
2353
- #
2354
- # # The following example returns the reserved concurrency setting for a function named my-function.
2355
- #
2356
- # resp = client.get_function_concurrency({
2357
- # function_name: "my-function",
2358
- # })
2359
- #
2360
- # resp.to_h outputs the following:
2361
- # {
2362
- # reserved_concurrent_executions: 250,
2363
- # }
2364
- #
2365
2026
  # @example Request syntax with placeholder values
2366
2027
  #
2367
2028
  # resp = client.get_function_concurrency({
@@ -2443,45 +2104,6 @@ module Aws::Lambda
2443
2104
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
2444
2105
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
2445
2106
  #
2446
- #
2447
- # @example Example: To get a Lambda function's event source mapping
2448
- #
2449
- # # The following example returns and configuration details for version 1 of a function named my-function.
2450
- #
2451
- # resp = client.get_function_configuration({
2452
- # function_name: "my-function",
2453
- # qualifier: "1",
2454
- # })
2455
- #
2456
- # resp.to_h outputs the following:
2457
- # {
2458
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
2459
- # code_size: 5797206,
2460
- # description: "Process image objects from Amazon S3.",
2461
- # environment: {
2462
- # variables: {
2463
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
2464
- # "PREFIX" => "inbound",
2465
- # },
2466
- # },
2467
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
2468
- # function_name: "my-function",
2469
- # handler: "index.handler",
2470
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
2471
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
2472
- # last_update_status: "Successful",
2473
- # memory_size: 256,
2474
- # revision_id: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
2475
- # role: "arn:aws:iam::123456789012:role/lambda-role",
2476
- # runtime: "nodejs12.x",
2477
- # state: "Active",
2478
- # timeout: 15,
2479
- # tracing_config: {
2480
- # mode: "Active",
2481
- # },
2482
- # version: "$LATEST",
2483
- # }
2484
- #
2485
2107
  # @example Request syntax with placeholder values
2486
2108
  #
2487
2109
  # resp = client.get_function_configuration({
@@ -2591,32 +2213,6 @@ module Aws::Lambda
2591
2213
  # * {Types::FunctionEventInvokeConfig#maximum_event_age_in_seconds #maximum_event_age_in_seconds} => Integer
2592
2214
  # * {Types::FunctionEventInvokeConfig#destination_config #destination_config} => Types::DestinationConfig
2593
2215
  #
2594
- #
2595
- # @example Example: To get an asynchronous invocation configuration
2596
- #
2597
- # # The following example returns the asynchronous invocation configuration for the BLUE alias of a function named
2598
- # # my-function.
2599
- #
2600
- # resp = client.get_function_event_invoke_config({
2601
- # function_name: "my-function",
2602
- # qualifier: "BLUE",
2603
- # })
2604
- #
2605
- # resp.to_h outputs the following:
2606
- # {
2607
- # destination_config: {
2608
- # on_failure: {
2609
- # destination: "arn:aws:sqs:us-east-2:123456789012:failed-invocations",
2610
- # },
2611
- # on_success: {
2612
- # },
2613
- # },
2614
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE",
2615
- # last_modified: Time.parse("${timestamp}"),
2616
- # maximum_event_age_in_seconds: 3600,
2617
- # maximum_retry_attempts: 0,
2618
- # }
2619
- #
2620
2216
  # @example Request syntax with placeholder values
2621
2217
  #
2622
2218
  # resp = client.get_function_event_invoke_config({
@@ -2642,8 +2238,8 @@ module Aws::Lambda
2642
2238
  req.send_request(options)
2643
2239
  end
2644
2240
 
2645
- # Returns information about a version of an [AWS Lambda layer][1], with
2646
- # a link to download the layer archive that's valid for 10 minutes.
2241
+ # Returns information about a version of an [Lambda layer][1], with a
2242
+ # link to download the layer archive that's valid for 10 minutes.
2647
2243
  #
2648
2244
  #
2649
2245
  #
@@ -2666,35 +2262,6 @@ module Aws::Lambda
2666
2262
  # * {Types::GetLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
2667
2263
  # * {Types::GetLayerVersionResponse#license_info #license_info} => String
2668
2264
  #
2669
- #
2670
- # @example Example: To get information about a Lambda layer version
2671
- #
2672
- # # The following example returns information for version 1 of a layer named my-layer.
2673
- #
2674
- # resp = client.get_layer_version({
2675
- # layer_name: "my-layer",
2676
- # version_number: 1,
2677
- # })
2678
- #
2679
- # resp.to_h outputs the following:
2680
- # {
2681
- # compatible_runtimes: [
2682
- # "python3.6",
2683
- # "python3.7",
2684
- # ],
2685
- # content: {
2686
- # code_sha_256: "tv9jJO+rPbXUUXuRKi7CwHzKtLDkDRJLB3cC3Z/ouXo=",
2687
- # code_size: 169,
2688
- # location: "https://awslambda-us-east-2-layers.s3.us-east-2.amazonaws.com/snapshots/123456789012/my-layer-4aaa2fbb-ff77-4b0a-ad92-5b78a716a96a?versionId=27iWyA73cCAYqyH...",
2689
- # },
2690
- # created_date: Time.parse("2018-11-14T23:03:52.894+0000"),
2691
- # description: "My Python layer",
2692
- # layer_arn: "arn:aws:lambda:us-east-2:123456789012:layer:my-layer",
2693
- # layer_version_arn: "arn:aws:lambda:us-east-2:123456789012:layer:my-layer:1",
2694
- # license_info: "MIT",
2695
- # version: 1,
2696
- # }
2697
- #
2698
2265
  # @example Request syntax with placeholder values
2699
2266
  #
2700
2267
  # resp = client.get_layer_version({
@@ -2727,8 +2294,8 @@ module Aws::Lambda
2727
2294
  req.send_request(options)
2728
2295
  end
2729
2296
 
2730
- # Returns information about a version of an [AWS Lambda layer][1], with
2731
- # a link to download the layer archive that's valid for 10 minutes.
2297
+ # Returns information about a version of an [Lambda layer][1], with a
2298
+ # link to download the layer archive that's valid for 10 minutes.
2732
2299
  #
2733
2300
  #
2734
2301
  #
@@ -2748,32 +2315,6 @@ module Aws::Lambda
2748
2315
  # * {Types::GetLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
2749
2316
  # * {Types::GetLayerVersionResponse#license_info #license_info} => String
2750
2317
  #
2751
- #
2752
- # @example Example: To get information about a Lambda layer version
2753
- #
2754
- # # The following example returns information about the layer version with the specified Amazon Resource Name (ARN).
2755
- #
2756
- # resp = client.get_layer_version_by_arn({
2757
- # arn: "arn:aws:lambda:ca-central-1:123456789012:layer:blank-python-lib:3",
2758
- # })
2759
- #
2760
- # resp.to_h outputs the following:
2761
- # {
2762
- # compatible_runtimes: [
2763
- # "python3.8",
2764
- # ],
2765
- # content: {
2766
- # code_sha_256: "6x+xmpl/M3BnQUk7gS9sGmfeFsR/npojXoA3fZUv4eU=",
2767
- # code_size: 9529009,
2768
- # location: "https://awslambda-us-east-2-layers.s3.us-east-2.amazonaws.com/snapshots/123456789012/blank-python-lib-e5212378-xmpl-44ee-8398-9d8ec5113949?versionId=WbZnvf...",
2769
- # },
2770
- # created_date: Time.parse("2020-03-31T00:35:18.949+0000"),
2771
- # description: "Dependencies for the blank-python sample app.",
2772
- # layer_arn: "arn:aws:lambda:us-east-2:123456789012:layer:blank-python-lib",
2773
- # layer_version_arn: "arn:aws:lambda:us-east-2:123456789012:layer:blank-python-lib:3",
2774
- # version: 3,
2775
- # }
2776
- #
2777
2318
  # @example Request syntax with placeholder values
2778
2319
  #
2779
2320
  # resp = client.get_layer_version_by_arn({
@@ -2805,8 +2346,8 @@ module Aws::Lambda
2805
2346
  req.send_request(options)
2806
2347
  end
2807
2348
 
2808
- # Returns the permission policy for a version of an [AWS Lambda
2809
- # layer][1]. For more information, see AddLayerVersionPermission.
2349
+ # Returns the permission policy for a version of an [Lambda layer][1].
2350
+ # For more information, see AddLayerVersionPermission.
2810
2351
  #
2811
2352
  #
2812
2353
  #
@@ -2876,22 +2417,6 @@ module Aws::Lambda
2876
2417
  # * {Types::GetPolicyResponse#policy #policy} => String
2877
2418
  # * {Types::GetPolicyResponse#revision_id #revision_id} => String
2878
2419
  #
2879
- #
2880
- # @example Example: To retrieve a Lambda function policy
2881
- #
2882
- # # The following example returns the resource-based policy for version 1 of a Lambda function named my-function.
2883
- #
2884
- # resp = client.get_policy({
2885
- # function_name: "my-function",
2886
- # qualifier: "1",
2887
- # })
2888
- #
2889
- # resp.to_h outputs the following:
2890
- # {
2891
- # policy: "{\"Version\":\"2012-10-17\",\"Id\":\"default\",\"Statement\":[{\"Sid\":\"xaccount\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::123456789012:root\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-east-2:123456789012:function:my-function:1\"}]}",
2892
- # revision_id: "4843f2f6-7c59-4fda-b484-afd0bc0e22b8",
2893
- # }
2894
- #
2895
2420
  # @example Request syntax with placeholder values
2896
2421
  #
2897
2422
  # resp = client.get_policy({
@@ -2943,45 +2468,6 @@ module Aws::Lambda
2943
2468
  # * {Types::GetProvisionedConcurrencyConfigResponse#status_reason #status_reason} => String
2944
2469
  # * {Types::GetProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
2945
2470
  #
2946
- #
2947
- # @example Example: To get a provisioned concurrency configuration
2948
- #
2949
- # # The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified
2950
- # # function.
2951
- #
2952
- # resp = client.get_provisioned_concurrency_config({
2953
- # function_name: "my-function",
2954
- # qualifier: "BLUE",
2955
- # })
2956
- #
2957
- # resp.to_h outputs the following:
2958
- # {
2959
- # allocated_provisioned_concurrent_executions: 100,
2960
- # available_provisioned_concurrent_executions: 100,
2961
- # last_modified: Time.parse("2019-12-31T20:28:49+0000"),
2962
- # requested_provisioned_concurrent_executions: 100,
2963
- # status: "READY",
2964
- # }
2965
- #
2966
- # @example Example: To view a provisioned concurrency configuration
2967
- #
2968
- # # The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified
2969
- # # function.
2970
- #
2971
- # resp = client.get_provisioned_concurrency_config({
2972
- # function_name: "my-function",
2973
- # qualifier: "BLUE",
2974
- # })
2975
- #
2976
- # resp.to_h outputs the following:
2977
- # {
2978
- # allocated_provisioned_concurrent_executions: 100,
2979
- # available_provisioned_concurrent_executions: 100,
2980
- # last_modified: Time.parse("2019-12-31T20:28:49+0000"),
2981
- # requested_provisioned_concurrent_executions: 100,
2982
- # status: "READY",
2983
- # }
2984
- #
2985
2471
  # @example Request syntax with placeholder values
2986
2472
  #
2987
2473
  # resp = client.get_provisioned_concurrency_config({
@@ -3111,40 +2597,6 @@ module Aws::Lambda
3111
2597
  # * {Types::InvocationResponse#payload #payload} => String
3112
2598
  # * {Types::InvocationResponse#executed_version #executed_version} => String
3113
2599
  #
3114
- #
3115
- # @example Example: To invoke a Lambda function
3116
- #
3117
- # # The following example invokes version 1 of a function named my-function with an empty event payload.
3118
- #
3119
- # resp = client.invoke({
3120
- # function_name: "my-function",
3121
- # payload: "{}",
3122
- # qualifier: "1",
3123
- # })
3124
- #
3125
- # resp.to_h outputs the following:
3126
- # {
3127
- # payload: "200 SUCCESS",
3128
- # status_code: 200,
3129
- # }
3130
- #
3131
- # @example Example: To invoke a Lambda function asynchronously
3132
- #
3133
- # # The following example invokes version 1 of a function named my-function asynchronously.
3134
- #
3135
- # resp = client.invoke({
3136
- # function_name: "my-function",
3137
- # invocation_type: "Event",
3138
- # payload: "{}",
3139
- # qualifier: "1",
3140
- # })
3141
- #
3142
- # resp.to_h outputs the following:
3143
- # {
3144
- # payload: "",
3145
- # status_code: 202,
3146
- # }
3147
- #
3148
2600
  # @example Request syntax with placeholder values
3149
2601
  #
3150
2602
  # resp = client.invoke({
@@ -3199,21 +2651,6 @@ module Aws::Lambda
3199
2651
  #
3200
2652
  # * {Types::InvokeAsyncResponse#status #status} => Integer
3201
2653
  #
3202
- #
3203
- # @example Example: To invoke a Lambda function asynchronously
3204
- #
3205
- # # The following example invokes a Lambda function asynchronously
3206
- #
3207
- # resp = client.invoke_async({
3208
- # function_name: "my-function",
3209
- # invoke_args: "{}",
3210
- # })
3211
- #
3212
- # resp.to_h outputs the following:
3213
- # {
3214
- # status: 202,
3215
- # }
3216
- #
3217
2654
  # @example Request syntax with placeholder values
3218
2655
  #
3219
2656
  # resp = client.invoke_async({
@@ -3273,40 +2710,6 @@ module Aws::Lambda
3273
2710
  #
3274
2711
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3275
2712
  #
3276
- #
3277
- # @example Example: To list a function's aliases
3278
- #
3279
- # # The following example returns a list of aliases for a function named my-function.
3280
- #
3281
- # resp = client.list_aliases({
3282
- # function_name: "my-function",
3283
- # })
3284
- #
3285
- # resp.to_h outputs the following:
3286
- # {
3287
- # aliases: [
3288
- # {
3289
- # alias_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function:BETA",
3290
- # description: "Production environment BLUE.",
3291
- # function_version: "2",
3292
- # name: "BLUE",
3293
- # revision_id: "a410117f-xmpl-494e-8035-7e204bb7933b",
3294
- # routing_config: {
3295
- # additional_version_weights: {
3296
- # "1" => 0.7,
3297
- # },
3298
- # },
3299
- # },
3300
- # {
3301
- # alias_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function:LIVE",
3302
- # description: "Production environment GREEN.",
3303
- # function_version: "1",
3304
- # name: "GREEN",
3305
- # revision_id: "21d40116-xmpl-40ba-9360-3ea284da1bb5",
3306
- # },
3307
- # ],
3308
- # }
3309
- #
3310
2713
  # @example Request syntax with placeholder values
3311
2714
  #
3312
2715
  # resp = client.list_aliases({
@@ -3434,30 +2837,6 @@ module Aws::Lambda
3434
2837
  #
3435
2838
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3436
2839
  #
3437
- #
3438
- # @example Example: To list the event source mappings for a function
3439
- #
3440
- # # The following example returns a list of the event source mappings for a function named my-function.
3441
- #
3442
- # resp = client.list_event_source_mappings({
3443
- # function_name: "my-function",
3444
- # })
3445
- #
3446
- # resp.to_h outputs the following:
3447
- # {
3448
- # event_source_mappings: [
3449
- # {
3450
- # batch_size: 5,
3451
- # event_source_arn: "arn:aws:sqs:us-west-2:123456789012:mySQSqueue",
3452
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
3453
- # last_modified: Time.parse(1569284520.333),
3454
- # state: "Enabled",
3455
- # state_transition_reason: "USER_INITIATED",
3456
- # uuid: "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
3457
- # },
3458
- # ],
3459
- # }
3460
- #
3461
2840
  # @example Request syntax with placeholder values
3462
2841
  #
3463
2842
  # resp = client.list_event_source_mappings({
@@ -3490,7 +2869,7 @@ module Aws::Lambda
3490
2869
  # resp.event_source_mappings[0].queues #=> Array
3491
2870
  # resp.event_source_mappings[0].queues[0] #=> String
3492
2871
  # resp.event_source_mappings[0].source_access_configurations #=> Array
3493
- # resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH"
2872
+ # resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
3494
2873
  # resp.event_source_mappings[0].source_access_configurations[0].uri #=> String
3495
2874
  # resp.event_source_mappings[0].self_managed_event_source.endpoints #=> Hash
3496
2875
  # resp.event_source_mappings[0].self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -3546,33 +2925,6 @@ module Aws::Lambda
3546
2925
  #
3547
2926
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3548
2927
  #
3549
- #
3550
- # @example Example: To view a list of asynchronous invocation configurations
3551
- #
3552
- # # The following example returns a list of asynchronous invocation configurations for a function named my-function.
3553
- #
3554
- # resp = client.list_function_event_invoke_configs({
3555
- # function_name: "my-function",
3556
- # })
3557
- #
3558
- # resp.to_h outputs the following:
3559
- # {
3560
- # function_event_invoke_configs: [
3561
- # {
3562
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:GREEN",
3563
- # last_modified: Time.parse(1577824406.719),
3564
- # maximum_event_age_in_seconds: 1800,
3565
- # maximum_retry_attempts: 2,
3566
- # },
3567
- # {
3568
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE",
3569
- # last_modified: Time.parse(1577824396.653),
3570
- # maximum_event_age_in_seconds: 3600,
3571
- # maximum_retry_attempts: 0,
3572
- # },
3573
- # ],
3574
- # }
3575
- #
3576
2928
  # @example Request syntax with placeholder values
3577
2929
  #
3578
2930
  # resp = client.list_function_event_invoke_configs({
@@ -3616,7 +2968,7 @@ module Aws::Lambda
3616
2968
  # </note>
3617
2969
  #
3618
2970
  # @option params [String] :master_region
3619
- # For Lambda@Edge functions, the AWS Region of the master function. For
2971
+ # For Lambda@Edge functions, the Region of the master function. For
3620
2972
  # example, `us-east-1` filters the list of functions to only include
3621
2973
  # Lambda@Edge functions replicated from a master function in US East (N.
3622
2974
  # Virginia). If specified, you must set `FunctionVersion` to `ALL`.
@@ -3641,64 +2993,6 @@ module Aws::Lambda
3641
2993
  #
3642
2994
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3643
2995
  #
3644
- #
3645
- # @example Example: To get a list of Lambda functions
3646
- #
3647
- # # This operation returns a list of Lambda functions.
3648
- #
3649
- # resp = client.list_functions({
3650
- # })
3651
- #
3652
- # resp.to_h outputs the following:
3653
- # {
3654
- # functions: [
3655
- # {
3656
- # code_sha_256: "dBG9m8SGdmlEjw/JYXlhhvCrAv5TxvXsbL/RMr0fT/I=",
3657
- # code_size: 294,
3658
- # description: "",
3659
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:helloworld",
3660
- # function_name: "helloworld",
3661
- # handler: "helloworld.handler",
3662
- # last_modified: Time.parse("2019-09-23T18:32:33.857+0000"),
3663
- # memory_size: 128,
3664
- # revision_id: "1718e831-badf-4253-9518-d0644210af7b",
3665
- # role: "arn:aws:iam::123456789012:role/service-role/MyTestFunction-role-zgur6bf4",
3666
- # runtime: "nodejs10.x",
3667
- # timeout: 3,
3668
- # tracing_config: {
3669
- # mode: "PassThrough",
3670
- # },
3671
- # version: "$LATEST",
3672
- # },
3673
- # {
3674
- # code_sha_256: "sU0cJ2/hOZevwV/lTxCuQqK3gDZP3i8gUoqUUVRmY6E=",
3675
- # code_size: 266,
3676
- # description: "",
3677
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
3678
- # function_name: "my-function",
3679
- # handler: "index.handler",
3680
- # last_modified: Time.parse("2019-10-01T16:47:28.490+0000"),
3681
- # memory_size: 256,
3682
- # revision_id: "93017fc9-59cb-41dc-901b-4845ce4bf668",
3683
- # role: "arn:aws:iam::123456789012:role/service-role/helloWorldPython-role-uy3l9qyq",
3684
- # runtime: "nodejs10.x",
3685
- # timeout: 3,
3686
- # tracing_config: {
3687
- # mode: "PassThrough",
3688
- # },
3689
- # version: "$LATEST",
3690
- # vpc_config: {
3691
- # security_group_ids: [
3692
- # ],
3693
- # subnet_ids: [
3694
- # ],
3695
- # vpc_id: "",
3696
- # },
3697
- # },
3698
- # ],
3699
- # next_marker: "",
3700
- # }
3701
- #
3702
2996
  # @example Request syntax with placeholder values
3703
2997
  #
3704
2998
  # resp = client.list_functions({
@@ -3816,10 +3110,9 @@ module Aws::Lambda
3816
3110
  req.send_request(options)
3817
3111
  end
3818
3112
 
3819
- # Lists the versions of an [AWS Lambda layer][1]. Versions that have
3820
- # been deleted aren't listed. Specify a [runtime identifier][2] to list
3821
- # only versions that indicate that they're compatible with that
3822
- # runtime.
3113
+ # Lists the versions of an [Lambda layer][1]. Versions that have been
3114
+ # deleted aren't listed. Specify a [runtime identifier][2] to list only
3115
+ # versions that indicate that they're compatible with that runtime.
3823
3116
  #
3824
3117
  #
3825
3118
  #
@@ -3845,39 +3138,6 @@ module Aws::Lambda
3845
3138
  #
3846
3139
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3847
3140
  #
3848
- #
3849
- # @example Example: To list versions of a layer
3850
- #
3851
- # # The following example displays information about the versions for the layer named blank-java-lib
3852
- #
3853
- # resp = client.list_layer_versions({
3854
- # layer_name: "blank-java-lib",
3855
- # })
3856
- #
3857
- # resp.to_h outputs the following:
3858
- # {
3859
- # layer_versions: [
3860
- # {
3861
- # compatible_runtimes: [
3862
- # "java8",
3863
- # ],
3864
- # created_date: Time.parse("2020-03-18T23:38:42.284+0000"),
3865
- # description: "Dependencies for the blank-java sample app.",
3866
- # layer_version_arn: "arn:aws:lambda:us-east-2:123456789012:layer:blank-java-lib:7",
3867
- # version: 7,
3868
- # },
3869
- # {
3870
- # compatible_runtimes: [
3871
- # "java8",
3872
- # ],
3873
- # created_date: Time.parse("2020-03-17T07:24:21.960+0000"),
3874
- # description: "Dependencies for the blank-java sample app.",
3875
- # layer_version_arn: "arn:aws:lambda:us-east-2:123456789012:layer:blank-java-lib:6",
3876
- # version: 6,
3877
- # },
3878
- # ],
3879
- # }
3880
- #
3881
3141
  # @example Request syntax with placeholder values
3882
3142
  #
3883
3143
  # resp = client.list_layer_versions({
@@ -3908,7 +3168,7 @@ module Aws::Lambda
3908
3168
  req.send_request(options)
3909
3169
  end
3910
3170
 
3911
- # Lists [AWS Lambda layers][1] and shows information about the latest
3171
+ # Lists [Lambda layers][1] and shows information about the latest
3912
3172
  # version of each. Specify a [runtime identifier][2] to list only layers
3913
3173
  # that indicate that they're compatible with that runtime.
3914
3174
  #
@@ -3933,35 +3193,6 @@ module Aws::Lambda
3933
3193
  #
3934
3194
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3935
3195
  #
3936
- #
3937
- # @example Example: To list the layers that are compatible with your function's runtime
3938
- #
3939
- # # The following example returns information about layers that are compatible with the Python 3.7 runtime.
3940
- #
3941
- # resp = client.list_layers({
3942
- # compatible_runtime: "python3.7",
3943
- # })
3944
- #
3945
- # resp.to_h outputs the following:
3946
- # {
3947
- # layers: [
3948
- # {
3949
- # latest_matching_version: {
3950
- # compatible_runtimes: [
3951
- # "python3.6",
3952
- # "python3.7",
3953
- # ],
3954
- # created_date: Time.parse("2018-11-15T00:37:46.592+0000"),
3955
- # description: "My layer",
3956
- # layer_version_arn: "arn:aws:lambda:us-east-2:123456789012:layer:my-layer:2",
3957
- # version: 2,
3958
- # },
3959
- # layer_arn: "arn:aws:lambda:us-east-2:123456789012:layer:my-layer",
3960
- # layer_name: "my-layer",
3961
- # },
3962
- # ],
3963
- # }
3964
- #
3965
3196
  # @example Request syntax with placeholder values
3966
3197
  #
3967
3198
  # resp = client.list_layers({
@@ -4025,37 +3256,6 @@ module Aws::Lambda
4025
3256
  #
4026
3257
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4027
3258
  #
4028
- #
4029
- # @example Example: To get a list of provisioned concurrency configurations
4030
- #
4031
- # # The following example returns a list of provisioned concurrency configurations for a function named my-function.
4032
- #
4033
- # resp = client.list_provisioned_concurrency_configs({
4034
- # function_name: "my-function",
4035
- # })
4036
- #
4037
- # resp.to_h outputs the following:
4038
- # {
4039
- # provisioned_concurrency_configs: [
4040
- # {
4041
- # allocated_provisioned_concurrent_executions: 100,
4042
- # available_provisioned_concurrent_executions: 100,
4043
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:GREEN",
4044
- # last_modified: Time.parse("2019-12-31T20:29:00+0000"),
4045
- # requested_provisioned_concurrent_executions: 100,
4046
- # status: "READY",
4047
- # },
4048
- # {
4049
- # allocated_provisioned_concurrent_executions: 100,
4050
- # available_provisioned_concurrent_executions: 100,
4051
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE",
4052
- # last_modified: Time.parse("2019-12-31T20:28:49+0000"),
4053
- # requested_provisioned_concurrent_executions: 100,
4054
- # status: "READY",
4055
- # },
4056
- # ],
4057
- # }
4058
- #
4059
3259
  # @example Request syntax with placeholder values
4060
3260
  #
4061
3261
  # resp = client.list_provisioned_concurrency_configs({
@@ -4099,23 +3299,6 @@ module Aws::Lambda
4099
3299
  #
4100
3300
  # * {Types::ListTagsResponse#tags #tags} => Hash&lt;String,String&gt;
4101
3301
  #
4102
- #
4103
- # @example Example: To retrieve the list of tags for a Lambda function
4104
- #
4105
- # # The following example displays the tags attached to the my-function Lambda function.
4106
- #
4107
- # resp = client.list_tags({
4108
- # resource: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
4109
- # })
4110
- #
4111
- # resp.to_h outputs the following:
4112
- # {
4113
- # tags: {
4114
- # "Category" => "Web Tools",
4115
- # "Department" => "Sales",
4116
- # },
4117
- # }
4118
- #
4119
3302
  # @example Request syntax with placeholder values
4120
3303
  #
4121
3304
  # resp = client.list_tags({
@@ -4163,7 +3346,9 @@ module Aws::Lambda
4163
3346
  # retrieve the next page of results.
4164
3347
  #
4165
3348
  # @option params [Integer] :max_items
4166
- # The maximum number of versions to return.
3349
+ # The maximum number of versions to return. Note that
3350
+ # `ListVersionsByFunction` returns a maximum of 50 items in each
3351
+ # response, even if you set the number higher.
4167
3352
  #
4168
3353
  # @return [Types::ListVersionsByFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4169
3354
  #
@@ -4172,71 +3357,6 @@ module Aws::Lambda
4172
3357
  #
4173
3358
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4174
3359
  #
4175
- #
4176
- # @example Example: To list versions of a function
4177
- #
4178
- # # The following example returns a list of versions of a function named my-function
4179
- #
4180
- # resp = client.list_versions_by_function({
4181
- # function_name: "my-function",
4182
- # })
4183
- #
4184
- # resp.to_h outputs the following:
4185
- # {
4186
- # versions: [
4187
- # {
4188
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
4189
- # code_size: 5797206,
4190
- # description: "Process image objects from Amazon S3.",
4191
- # environment: {
4192
- # variables: {
4193
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
4194
- # "PREFIX" => "inbound",
4195
- # },
4196
- # },
4197
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
4198
- # function_name: "my-function",
4199
- # handler: "index.handler",
4200
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
4201
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
4202
- # memory_size: 256,
4203
- # revision_id: "850ca006-2d98-4ff4-86db-8766e9d32fe9",
4204
- # role: "arn:aws:iam::123456789012:role/lambda-role",
4205
- # runtime: "nodejs12.x",
4206
- # timeout: 15,
4207
- # tracing_config: {
4208
- # mode: "Active",
4209
- # },
4210
- # version: "$LATEST",
4211
- # },
4212
- # {
4213
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
4214
- # code_size: 5797206,
4215
- # description: "Process image objects from Amazon S3.",
4216
- # environment: {
4217
- # variables: {
4218
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
4219
- # "PREFIX" => "inbound",
4220
- # },
4221
- # },
4222
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
4223
- # function_name: "my-function",
4224
- # handler: "index.handler",
4225
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
4226
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
4227
- # memory_size: 256,
4228
- # revision_id: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
4229
- # role: "arn:aws:iam::123456789012:role/lambda-role",
4230
- # runtime: "nodejs12.x",
4231
- # timeout: 5,
4232
- # tracing_config: {
4233
- # mode: "Active",
4234
- # },
4235
- # version: "1",
4236
- # },
4237
- # ],
4238
- # }
4239
- #
4240
3360
  # @example Request syntax with placeholder values
4241
3361
  #
4242
3362
  # resp = client.list_versions_by_function({
@@ -4309,8 +3429,8 @@ module Aws::Lambda
4309
3429
  req.send_request(options)
4310
3430
  end
4311
3431
 
4312
- # Creates an [AWS Lambda layer][1] from a ZIP archive. Each time you
4313
- # call `PublishLayerVersion` with the same layer name, a new version is
3432
+ # Creates an [Lambda layer][1] from a ZIP archive. Each time you call
3433
+ # `PublishLayerVersion` with the same layer name, a new version is
4314
3434
  # created.
4315
3435
  #
4316
3436
  # Add layers to your function with CreateFunction or
@@ -4362,45 +3482,6 @@ module Aws::Lambda
4362
3482
  # * {Types::PublishLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
4363
3483
  # * {Types::PublishLayerVersionResponse#license_info #license_info} => String
4364
3484
  #
4365
- #
4366
- # @example Example: To create a Lambda layer version
4367
- #
4368
- # # The following example creates a new Python library layer version. The command retrieves the layer content a file named
4369
- # # layer.zip in the specified S3 bucket.
4370
- #
4371
- # resp = client.publish_layer_version({
4372
- # compatible_runtimes: [
4373
- # "python3.6",
4374
- # "python3.7",
4375
- # ],
4376
- # content: {
4377
- # s3_bucket: "lambda-layers-us-west-2-123456789012",
4378
- # s3_key: "layer.zip",
4379
- # },
4380
- # description: "My Python layer",
4381
- # layer_name: "my-layer",
4382
- # license_info: "MIT",
4383
- # })
4384
- #
4385
- # resp.to_h outputs the following:
4386
- # {
4387
- # compatible_runtimes: [
4388
- # "python3.6",
4389
- # "python3.7",
4390
- # ],
4391
- # content: {
4392
- # code_sha_256: "tv9jJO+rPbXUUXuRKi7CwHzKtLDkDRJLB3cC3Z/ouXo=",
4393
- # code_size: 169,
4394
- # location: "https://awslambda-us-west-2-layers.s3.us-west-2.amazonaws.com/snapshots/123456789012/my-layer-4aaa2fbb-ff77-4b0a-ad92-5b78a716a96a?versionId=27iWyA73cCAYqyH...",
4395
- # },
4396
- # created_date: Time.parse("2018-11-14T23:03:52.894+0000"),
4397
- # description: "My Python layer",
4398
- # layer_arn: "arn:aws:lambda:us-west-2:123456789012:layer:my-layer",
4399
- # layer_version_arn: "arn:aws:lambda:us-west-2:123456789012:layer:my-layer:1",
4400
- # license_info: "MIT",
4401
- # version: 1,
4402
- # }
4403
- #
4404
3485
  # @example Request syntax with placeholder values
4405
3486
  #
4406
3487
  # resp = client.publish_layer_version({
@@ -4445,10 +3526,10 @@ module Aws::Lambda
4445
3526
  # function. Use versions to create a snapshot of your function code and
4446
3527
  # configuration that doesn't change.
4447
3528
  #
4448
- # AWS Lambda doesn't publish a version if the function's configuration
4449
- # and code haven't changed since the last version. Use
4450
- # UpdateFunctionCode or UpdateFunctionConfiguration to update the
4451
- # function before publishing a version.
3529
+ # Lambda doesn't publish a version if the function's configuration and
3530
+ # code haven't changed since the last version. Use UpdateFunctionCode
3531
+ # or UpdateFunctionConfiguration to update the function before
3532
+ # publishing a version.
4452
3533
  #
4453
3534
  # Clients can invoke versions directly or with an alias. To create an
4454
3535
  # alias, use CreateAlias.
@@ -4522,46 +3603,6 @@ module Aws::Lambda
4522
3603
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
4523
3604
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
4524
3605
  #
4525
- #
4526
- # @example Example: To publish a version of a Lambda function
4527
- #
4528
- # # This operation publishes a version of a Lambda function
4529
- #
4530
- # resp = client.publish_version({
4531
- # code_sha_256: "",
4532
- # description: "",
4533
- # function_name: "myFunction",
4534
- # })
4535
- #
4536
- # resp.to_h outputs the following:
4537
- # {
4538
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
4539
- # code_size: 5797206,
4540
- # description: "Process image objects from Amazon S3.",
4541
- # environment: {
4542
- # variables: {
4543
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
4544
- # "PREFIX" => "inbound",
4545
- # },
4546
- # },
4547
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
4548
- # function_name: "my-function",
4549
- # handler: "index.handler",
4550
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
4551
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
4552
- # last_update_status: "Successful",
4553
- # memory_size: 256,
4554
- # revision_id: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
4555
- # role: "arn:aws:iam::123456789012:role/lambda-role",
4556
- # runtime: "nodejs12.x",
4557
- # state: "Active",
4558
- # timeout: 5,
4559
- # tracing_config: {
4560
- # mode: "Active",
4561
- # },
4562
- # version: "1",
4563
- # }
4564
- #
4565
3606
  # @example Request syntax with placeholder values
4566
3607
  #
4567
3608
  # resp = client.publish_version({
@@ -4722,21 +3763,6 @@ module Aws::Lambda
4722
3763
  #
4723
3764
  # * {Types::Concurrency#reserved_concurrent_executions #reserved_concurrent_executions} => Integer
4724
3765
  #
4725
- #
4726
- # @example Example: To configure a reserved concurrency limit for a function
4727
- #
4728
- # # The following example configures 100 reserved concurrent executions for the my-function function.
4729
- #
4730
- # resp = client.put_function_concurrency({
4731
- # function_name: "my-function",
4732
- # reserved_concurrent_executions: 100,
4733
- # })
4734
- #
4735
- # resp.to_h outputs the following:
4736
- # {
4737
- # reserved_concurrent_executions: 100,
4738
- # }
4739
- #
4740
3766
  # @example Request syntax with placeholder values
4741
3767
  #
4742
3768
  # resp = client.put_function_concurrency({
@@ -4832,31 +3858,6 @@ module Aws::Lambda
4832
3858
  # * {Types::FunctionEventInvokeConfig#maximum_event_age_in_seconds #maximum_event_age_in_seconds} => Integer
4833
3859
  # * {Types::FunctionEventInvokeConfig#destination_config #destination_config} => Types::DestinationConfig
4834
3860
  #
4835
- #
4836
- # @example Example: To configure error handling for asynchronous invocation
4837
- #
4838
- # # The following example sets a maximum event age of one hour and disables retries for the specified function.
4839
- #
4840
- # resp = client.put_function_event_invoke_config({
4841
- # function_name: "my-function",
4842
- # maximum_event_age_in_seconds: 3600,
4843
- # maximum_retry_attempts: 0,
4844
- # })
4845
- #
4846
- # resp.to_h outputs the following:
4847
- # {
4848
- # destination_config: {
4849
- # on_failure: {
4850
- # },
4851
- # on_success: {
4852
- # },
4853
- # },
4854
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:$LATEST",
4855
- # last_modified: Time.parse("${timestamp}"),
4856
- # maximum_event_age_in_seconds: 3600,
4857
- # maximum_retry_attempts: 0,
4858
- # }
4859
- #
4860
3861
  # @example Request syntax with placeholder values
4861
3862
  #
4862
3863
  # resp = client.put_function_event_invoke_config({
@@ -4926,25 +3927,6 @@ module Aws::Lambda
4926
3927
  # * {Types::PutProvisionedConcurrencyConfigResponse#status_reason #status_reason} => String
4927
3928
  # * {Types::PutProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
4928
3929
  #
4929
- #
4930
- # @example Example: To allocate provisioned concurrency
4931
- #
4932
- # # The following example allocates 100 provisioned concurrency for the BLUE alias of the specified function.
4933
- #
4934
- # resp = client.put_provisioned_concurrency_config({
4935
- # function_name: "my-function",
4936
- # provisioned_concurrent_executions: 100,
4937
- # qualifier: "BLUE",
4938
- # })
4939
- #
4940
- # resp.to_h outputs the following:
4941
- # {
4942
- # allocated_provisioned_concurrent_executions: 0,
4943
- # last_modified: Time.parse("2019-11-21T19:32:12+0000"),
4944
- # requested_provisioned_concurrent_executions: 100,
4945
- # status: "IN_PROGRESS",
4946
- # }
4947
- #
4948
3930
  # @example Request syntax with placeholder values
4949
3931
  #
4950
3932
  # resp = client.put_provisioned_concurrency_config({
@@ -4972,7 +3954,7 @@ module Aws::Lambda
4972
3954
  end
4973
3955
 
4974
3956
  # Removes a statement from the permissions policy for a version of an
4975
- # [AWS Lambda layer][1]. For more information, see
3957
+ # [Lambda layer][1]. For more information, see
4976
3958
  # AddLayerVersionPermission.
4977
3959
  #
4978
3960
  #
@@ -4995,17 +3977,6 @@ module Aws::Lambda
4995
3977
  #
4996
3978
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4997
3979
  #
4998
- #
4999
- # @example Example: To delete layer-version permissions
5000
- #
5001
- # # The following example deletes permission for an account to configure a layer version.
5002
- #
5003
- # resp = client.remove_layer_version_permission({
5004
- # layer_name: "my-layer",
5005
- # statement_id: "xaccount",
5006
- # version_number: 1,
5007
- # })
5008
- #
5009
3980
  # @example Request syntax with placeholder values
5010
3981
  #
5011
3982
  # resp = client.remove_layer_version_permission({
@@ -5024,9 +3995,9 @@ module Aws::Lambda
5024
3995
  req.send_request(options)
5025
3996
  end
5026
3997
 
5027
- # Revokes function-use permission from an AWS service or another
5028
- # account. You can get the ID of the statement from the output of
5029
- # GetPolicy.
3998
+ # Revokes function-use permission from an Amazon Web Services service or
3999
+ # another account. You can get the ID of the statement from the output
4000
+ # of GetPolicy.
5030
4001
  #
5031
4002
  # @option params [required, String] :function_name
5032
4003
  # The name of the Lambda function, version, or alias.
@@ -5059,18 +4030,6 @@ module Aws::Lambda
5059
4030
  #
5060
4031
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5061
4032
  #
5062
- #
5063
- # @example Example: To remove a Lambda function's permissions
5064
- #
5065
- # # The following example removes a permissions statement named xaccount from the PROD alias of a function named
5066
- # # my-function.
5067
- #
5068
- # resp = client.remove_permission({
5069
- # function_name: "my-function",
5070
- # qualifier: "PROD",
5071
- # statement_id: "xaccount",
5072
- # })
5073
- #
5074
4033
  # @example Request syntax with placeholder values
5075
4034
  #
5076
4035
  # resp = client.remove_permission({
@@ -5103,19 +4062,6 @@ module Aws::Lambda
5103
4062
  #
5104
4063
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5105
4064
  #
5106
- #
5107
- # @example Example: To add tags to an existing Lambda function
5108
- #
5109
- # # The following example adds a tag with the key name DEPARTMENT and a value of 'Department A' to the specified Lambda
5110
- # # function.
5111
- #
5112
- # resp = client.tag_resource({
5113
- # resource: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
5114
- # tags: {
5115
- # "DEPARTMENT" => "Department A",
5116
- # },
5117
- # })
5118
- #
5119
4065
  # @example Request syntax with placeholder values
5120
4066
  #
5121
4067
  # resp = client.tag_resource({
@@ -5148,18 +4094,6 @@ module Aws::Lambda
5148
4094
  #
5149
4095
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5150
4096
  #
5151
- #
5152
- # @example Example: To remove tags from an existing Lambda function
5153
- #
5154
- # # The following example removes the tag with the key name DEPARTMENT tag from the my-function Lambda function.
5155
- #
5156
- # resp = client.untag_resource({
5157
- # resource: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
5158
- # tag_keys: [
5159
- # "DEPARTMENT",
5160
- # ],
5161
- # })
5162
- #
5163
4097
  # @example Request syntax with placeholder values
5164
4098
  #
5165
4099
  # resp = client.untag_resource({
@@ -5227,36 +4161,6 @@ module Aws::Lambda
5227
4161
  # * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
5228
4162
  # * {Types::AliasConfiguration#revision_id #revision_id} => String
5229
4163
  #
5230
- #
5231
- # @example Example: To update a function alias
5232
- #
5233
- # # The following example updates the alias named BLUE to send 30% of traffic to version 2 and 70% to version 1.
5234
- #
5235
- # resp = client.update_alias({
5236
- # function_name: "my-function",
5237
- # function_version: "2",
5238
- # name: "BLUE",
5239
- # routing_config: {
5240
- # additional_version_weights: {
5241
- # "1" => 0.7,
5242
- # },
5243
- # },
5244
- # })
5245
- #
5246
- # resp.to_h outputs the following:
5247
- # {
5248
- # alias_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function:BLUE",
5249
- # description: "Production environment BLUE.",
5250
- # function_version: "2",
5251
- # name: "BLUE",
5252
- # revision_id: "594f41fb-xmpl-4c20-95c7-6ca5f2a92c93",
5253
- # routing_config: {
5254
- # additional_version_weights: {
5255
- # "1" => 0.7,
5256
- # },
5257
- # },
5258
- # }
5259
- #
5260
4164
  # @example Request syntax with placeholder values
5261
4165
  #
5262
4166
  # resp = client.update_alias({
@@ -5343,7 +4247,7 @@ module Aws::Lambda
5343
4247
  req.send_request(options)
5344
4248
  end
5345
4249
 
5346
- # Updates an event source mapping. You can change the function that AWS
4250
+ # Updates an event source mapping. You can change the function that
5347
4251
  # Lambda invokes, or pause invocation and resume later from the same
5348
4252
  # location.
5349
4253
  #
@@ -5412,24 +4316,24 @@ module Aws::Lambda
5412
4316
  # records before invoking the function, in seconds.
5413
4317
  #
5414
4318
  # @option params [Types::DestinationConfig] :destination_config
5415
- # (Streams) An Amazon SQS queue or Amazon SNS topic destination for
4319
+ # (Streams only) An Amazon SQS queue or Amazon SNS topic destination for
5416
4320
  # discarded records.
5417
4321
  #
5418
4322
  # @option params [Integer] :maximum_record_age_in_seconds
5419
- # (Streams) Discard records older than the specified age. The default
5420
- # value is infinite (-1).
4323
+ # (Streams only) Discard records older than the specified age. The
4324
+ # default value is infinite (-1).
5421
4325
  #
5422
4326
  # @option params [Boolean] :bisect_batch_on_function_error
5423
- # (Streams) If the function returns an error, split the batch in two and
5424
- # retry.
4327
+ # (Streams only) If the function returns an error, split the batch in
4328
+ # two and retry.
5425
4329
  #
5426
4330
  # @option params [Integer] :maximum_retry_attempts
5427
- # (Streams) Discard records after the specified number of retries. The
5428
- # default value is infinite (-1). When set to infinite (-1), failed
4331
+ # (Streams only) Discard records after the specified number of retries.
4332
+ # The default value is infinite (-1). When set to infinite (-1), failed
5429
4333
  # records will be retried until the record expires.
5430
4334
  #
5431
4335
  # @option params [Integer] :parallelization_factor
5432
- # (Streams) The number of batches to process from each shard
4336
+ # (Streams only) The number of batches to process from each shard
5433
4337
  # concurrently.
5434
4338
  #
5435
4339
  # @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
@@ -5437,12 +4341,12 @@ module Aws::Lambda
5437
4341
  # secure your event source.
5438
4342
  #
5439
4343
  # @option params [Integer] :tumbling_window_in_seconds
5440
- # (Streams) The duration in seconds of a processing window. The range is
5441
- # between 1 second up to 900 seconds.
4344
+ # (Streams only) The duration in seconds of a processing window. The
4345
+ # range is between 1 second up to 900 seconds.
5442
4346
  #
5443
4347
  # @option params [Array<String>] :function_response_types
5444
- # (Streams) A list of current response type enums applied to the event
5445
- # source mapping.
4348
+ # (Streams only) A list of current response type enums applied to the
4349
+ # event source mapping.
5446
4350
  #
5447
4351
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5448
4352
  #
@@ -5469,30 +4373,6 @@ module Aws::Lambda
5469
4373
  # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
5470
4374
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
5471
4375
  #
5472
- #
5473
- # @example Example: To update a Lambda function event source mapping
5474
- #
5475
- # # This operation updates a Lambda function event source mapping
5476
- #
5477
- # resp = client.update_event_source_mapping({
5478
- # batch_size: 123,
5479
- # enabled: true,
5480
- # function_name: "myFunction",
5481
- # uuid: "1234xCy789012",
5482
- # })
5483
- #
5484
- # resp.to_h outputs the following:
5485
- # {
5486
- # batch_size: 123,
5487
- # event_source_arn: "arn:aws:s3:::examplebucket/*",
5488
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
5489
- # last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
5490
- # last_processing_result: "",
5491
- # state: "",
5492
- # state_transition_reason: "",
5493
- # uuid: "1234xCy789012",
5494
- # }
5495
- #
5496
4376
  # @example Request syntax with placeholder values
5497
4377
  #
5498
4378
  # resp = client.update_event_source_mapping({
@@ -5515,7 +4395,7 @@ module Aws::Lambda
5515
4395
  # parallelization_factor: 1,
5516
4396
  # source_access_configurations: [
5517
4397
  # {
5518
- # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH
4398
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
5519
4399
  # uri: "URI",
5520
4400
  # },
5521
4401
  # ],
@@ -5544,7 +4424,7 @@ module Aws::Lambda
5544
4424
  # resp.queues #=> Array
5545
4425
  # resp.queues[0] #=> String
5546
4426
  # resp.source_access_configurations #=> Array
5547
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH"
4427
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
5548
4428
  # resp.source_access_configurations[0].uri #=> String
5549
4429
  # resp.self_managed_event_source.endpoints #=> Hash
5550
4430
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -5598,12 +4478,14 @@ module Aws::Lambda
5598
4478
  # only the function name, it is limited to 64 characters in length.
5599
4479
  #
5600
4480
  # @option params [String, StringIO, File] :zip_file
5601
- # The base64-encoded contents of the deployment package. AWS SDK and AWS
5602
- # CLI clients handle the encoding for you.
4481
+ # The base64-encoded contents of the deployment package. Amazon Web
4482
+ # Services SDK and Amazon Web Services CLI clients handle the encoding
4483
+ # for you.
5603
4484
  #
5604
4485
  # @option params [String] :s3_bucket
5605
- # An Amazon S3 bucket in the same AWS Region as your function. The
5606
- # bucket can be in a different AWS account.
4486
+ # An Amazon S3 bucket in the same Amazon Web Services Region as your
4487
+ # function. The bucket can be in a different Amazon Web Services
4488
+ # account.
5607
4489
  #
5608
4490
  # @option params [String] :s3_key
5609
4491
  # The Amazon S3 key of the deployment package.
@@ -5663,38 +4545,6 @@ module Aws::Lambda
5663
4545
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
5664
4546
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
5665
4547
  #
5666
- #
5667
- # @example Example: To update a Lambda function's code
5668
- #
5669
- # # The following example replaces the code of the unpublished ($LATEST) version of a function named my-function with the
5670
- # # contents of the specified zip file in Amazon S3.
5671
- #
5672
- # resp = client.update_function_code({
5673
- # function_name: "my-function",
5674
- # s3_bucket: "my-bucket-1xpuxmplzrlbh",
5675
- # s3_key: "function.zip",
5676
- # })
5677
- #
5678
- # resp.to_h outputs the following:
5679
- # {
5680
- # code_sha_256: "PFn4S+er27qk+UuZSTKEQfNKG/XNn7QJs90mJgq6oH8=",
5681
- # code_size: 308,
5682
- # description: "",
5683
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function",
5684
- # function_name: "my-function",
5685
- # handler: "index.handler",
5686
- # last_modified: Time.parse("2019-08-14T22:26:11.234+0000"),
5687
- # memory_size: 128,
5688
- # revision_id: "873282ed-xmpl-4dc8-a069-d0c647e470c6",
5689
- # role: "arn:aws:iam::123456789012:role/lambda-role",
5690
- # runtime: "nodejs12.x",
5691
- # timeout: 3,
5692
- # tracing_config: {
5693
- # mode: "PassThrough",
5694
- # },
5695
- # version: "$LATEST",
5696
- # }
5697
- #
5698
4548
  # @example Request syntax with placeholder values
5699
4549
  #
5700
4550
  # resp = client.update_function_code({
@@ -5788,8 +4638,8 @@ module Aws::Lambda
5788
4638
  # published version, only the unpublished version.
5789
4639
  #
5790
4640
  # To configure function concurrency, use PutFunctionConcurrency. To
5791
- # grant invoke permissions to an account or AWS service, use
5792
- # AddPermission.
4641
+ # grant invoke permissions to an account or Amazon Web Services service,
4642
+ # use AddPermission.
5793
4643
  #
5794
4644
  #
5795
4645
  #
@@ -5829,18 +4679,28 @@ module Aws::Lambda
5829
4679
  # @option params [Integer] :timeout
5830
4680
  # The amount of time that Lambda allows a function to run before
5831
4681
  # stopping it. The default is 3 seconds. The maximum allowed value is
5832
- # 900 seconds.
4682
+ # 900 seconds. For additional information, see [Lambda execution
4683
+ # environment][1].
4684
+ #
4685
+ #
4686
+ #
4687
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html
5833
4688
  #
5834
4689
  # @option params [Integer] :memory_size
5835
- # The amount of memory available to the function at runtime. Increasing
5836
- # the function's memory also increases its CPU allocation. The default
5837
- # value is 128 MB. The value can be any multiple of 1 MB.
4690
+ # The amount of [memory available to the function][1] at runtime.
4691
+ # Increasing the function memory also increases its CPU allocation. The
4692
+ # default value is 128 MB. The value can be any multiple of 1 MB.
4693
+ #
4694
+ #
4695
+ #
4696
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-memory.html
5838
4697
  #
5839
4698
  # @option params [Types::VpcConfig] :vpc_config
5840
- # For network connectivity to AWS resources in a VPC, specify a list of
5841
- # security groups and subnets in the VPC. When you connect a function to
5842
- # a VPC, it can only access resources and the internet through that VPC.
5843
- # For more information, see [VPC Settings][1].
4699
+ # For network connectivity to Amazon Web Services resources in a VPC,
4700
+ # specify a list of security groups and subnets in the VPC. When you
4701
+ # connect a function to a VPC, it can only access resources and the
4702
+ # internet through that VPC. For more information, see [VPC
4703
+ # Settings][1].
5844
4704
  #
5845
4705
  #
5846
4706
  #
@@ -5867,13 +4727,17 @@ module Aws::Lambda
5867
4727
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq
5868
4728
  #
5869
4729
  # @option params [String] :kms_key_arn
5870
- # The ARN of the AWS Key Management Service (AWS KMS) key that's used
5871
- # to encrypt your function's environment variables. If it's not
5872
- # provided, AWS Lambda uses a default service key.
4730
+ # The ARN of the Amazon Web Services Key Management Service (KMS) key
4731
+ # that's used to encrypt your function's environment variables. If
4732
+ # it's not provided, Lambda uses a default service key.
5873
4733
  #
5874
4734
  # @option params [Types::TracingConfig] :tracing_config
5875
4735
  # Set `Mode` to `Active` to sample and trace a subset of incoming
5876
- # requests with AWS X-Ray.
4736
+ # requests with [X-Ray][1].
4737
+ #
4738
+ #
4739
+ #
4740
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html
5877
4741
  #
5878
4742
  # @option params [String] :revision_id
5879
4743
  # Only update the function if the revision ID matches the ID that's
@@ -5933,37 +4797,6 @@ module Aws::Lambda
5933
4797
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
5934
4798
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
5935
4799
  #
5936
- #
5937
- # @example Example: To update a Lambda function's configuration
5938
- #
5939
- # # The following example modifies the memory size to be 256 MB for the unpublished ($LATEST) version of a function named
5940
- # # my-function.
5941
- #
5942
- # resp = client.update_function_configuration({
5943
- # function_name: "my-function",
5944
- # memory_size: 256,
5945
- # })
5946
- #
5947
- # resp.to_h outputs the following:
5948
- # {
5949
- # code_sha_256: "PFn4S+er27qk+UuZSTKEQfNKG/XNn7QJs90mJgq6oH8=",
5950
- # code_size: 308,
5951
- # description: "",
5952
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function",
5953
- # function_name: "my-function",
5954
- # handler: "index.handler",
5955
- # last_modified: Time.parse("2019-08-14T22:26:11.234+0000"),
5956
- # memory_size: 256,
5957
- # revision_id: "873282ed-xmpl-4dc8-a069-d0c647e470c6",
5958
- # role: "arn:aws:iam::123456789012:role/lambda-role",
5959
- # runtime: "nodejs12.x",
5960
- # timeout: 3,
5961
- # tracing_config: {
5962
- # mode: "PassThrough",
5963
- # },
5964
- # version: "$LATEST",
5965
- # }
5966
- #
5967
4800
  # @example Request syntax with placeholder values
5968
4801
  #
5969
4802
  # resp = client.update_function_configuration({
@@ -6123,36 +4956,6 @@ module Aws::Lambda
6123
4956
  # * {Types::FunctionEventInvokeConfig#maximum_event_age_in_seconds #maximum_event_age_in_seconds} => Integer
6124
4957
  # * {Types::FunctionEventInvokeConfig#destination_config #destination_config} => Types::DestinationConfig
6125
4958
  #
6126
- #
6127
- # @example Example: To update an asynchronous invocation configuration
6128
- #
6129
- # # The following example adds an on-failure destination to the existing asynchronous invocation configuration for a
6130
- # # function named my-function.
6131
- #
6132
- # resp = client.update_function_event_invoke_config({
6133
- # destination_config: {
6134
- # on_failure: {
6135
- # destination: "arn:aws:sqs:us-east-2:123456789012:destination",
6136
- # },
6137
- # },
6138
- # function_name: "my-function",
6139
- # })
6140
- #
6141
- # resp.to_h outputs the following:
6142
- # {
6143
- # destination_config: {
6144
- # on_failure: {
6145
- # destination: "arn:aws:sqs:us-east-2:123456789012:destination",
6146
- # },
6147
- # on_success: {
6148
- # },
6149
- # },
6150
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:$LATEST",
6151
- # last_modified: Time.parse(1573687896.493),
6152
- # maximum_event_age_in_seconds: 3600,
6153
- # maximum_retry_attempts: 0,
6154
- # }
6155
- #
6156
4959
  # @example Request syntax with placeholder values
6157
4960
  #
6158
4961
  # resp = client.update_function_event_invoke_config({
@@ -6201,7 +5004,7 @@ module Aws::Lambda
6201
5004
  params: params,
6202
5005
  config: config)
6203
5006
  context[:gem_name] = 'aws-sdk-lambda'
6204
- context[:gem_version] = '1.62.0'
5007
+ context[:gem_version] = '1.63.0'
6205
5008
  Seahorse::Client::Request.new(handlers, context)
6206
5009
  end
6207
5010