aws-sdk-lambda 1.58.0 → 1.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.63.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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.58.0'
52
+ GEM_VERSION = '1.63.0'
53
53
 
54
54
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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 of a processing window in seconds. The range is
853
- # between 1 second up to 15 minutes.
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,7 +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
- # Configuration values that override the container image Dockerfile.
1101
+ # Container image [configuration values][1] that override the values in
1102
+ # the container image Dockerfile.
1103
+ #
1104
+ #
1105
+ #
1106
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-images.html#configuration-images-settings
1166
1107
  #
1167
1108
  # @option params [String] :code_signing_config_arn
1168
1109
  # To enable code signing for this function, specify the ARN of a
@@ -1204,74 +1145,11 @@ module Aws::Lambda
1204
1145
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
1205
1146
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
1206
1147
  #
1207
- #
1208
- # @example Example: To create a function
1209
- #
1210
- # # The following example creates a function with a deployment package in Amazon S3 and enables X-Ray tracing and
1211
- # # environment variable encryption.
1212
- #
1213
- # resp = client.create_function({
1214
- # code: {
1215
- # s3_bucket: "my-bucket-1xpuxmplzrlbh",
1216
- # s3_key: "function.zip",
1217
- # },
1218
- # description: "Process image objects from Amazon S3.",
1219
- # environment: {
1220
- # variables: {
1221
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
1222
- # "PREFIX" => "inbound",
1223
- # },
1224
- # },
1225
- # function_name: "my-function",
1226
- # handler: "index.handler",
1227
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
1228
- # memory_size: 256,
1229
- # publish: true,
1230
- # role: "arn:aws:iam::123456789012:role/lambda-role",
1231
- # runtime: "nodejs12.x",
1232
- # tags: {
1233
- # "DEPARTMENT" => "Assets",
1234
- # },
1235
- # timeout: 15,
1236
- # tracing_config: {
1237
- # mode: "Active",
1238
- # },
1239
- # })
1240
- #
1241
- # resp.to_h outputs the following:
1242
- # {
1243
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
1244
- # code_size: 5797206,
1245
- # description: "Process image objects from Amazon S3.",
1246
- # environment: {
1247
- # variables: {
1248
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
1249
- # "PREFIX" => "inbound",
1250
- # },
1251
- # },
1252
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
1253
- # function_name: "my-function",
1254
- # handler: "index.handler",
1255
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
1256
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
1257
- # last_update_status: "Successful",
1258
- # memory_size: 256,
1259
- # revision_id: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
1260
- # role: "arn:aws:iam::123456789012:role/lambda-role",
1261
- # runtime: "nodejs12.x",
1262
- # state: "Active",
1263
- # timeout: 15,
1264
- # tracing_config: {
1265
- # mode: "Active",
1266
- # },
1267
- # version: "1",
1268
- # }
1269
- #
1270
1148
  # @example Request syntax with placeholder values
1271
1149
  #
1272
1150
  # resp = client.create_function({
1273
1151
  # function_name: "FunctionName", # required
1274
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
1152
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
1275
1153
  # role: "RoleArn", # required
1276
1154
  # handler: "Handler",
1277
1155
  # code: { # required
@@ -1324,7 +1202,7 @@ module Aws::Lambda
1324
1202
  #
1325
1203
  # resp.function_name #=> String
1326
1204
  # resp.function_arn #=> String
1327
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
1205
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
1328
1206
  # resp.role #=> String
1329
1207
  # resp.handler #=> String
1330
1208
  # resp.code_size #=> Integer
@@ -1408,16 +1286,6 @@ module Aws::Lambda
1408
1286
  #
1409
1287
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1410
1288
  #
1411
- #
1412
- # @example Example: To delete a Lambda function alias
1413
- #
1414
- # # The following example deletes an alias named BLUE from a function named my-function
1415
- #
1416
- # resp = client.delete_alias({
1417
- # function_name: "my-function",
1418
- # name: "BLUE",
1419
- # })
1420
- #
1421
1289
  # @example Request syntax with placeholder values
1422
1290
  #
1423
1291
  # resp = client.delete_alias({
@@ -1495,26 +1363,6 @@ module Aws::Lambda
1495
1363
  # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
1496
1364
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
1497
1365
  #
1498
- #
1499
- # @example Example: To delete a Lambda function event source mapping
1500
- #
1501
- # # The following example deletes an event source mapping. To get a mapping's UUID, use ListEventSourceMappings.
1502
- #
1503
- # resp = client.delete_event_source_mapping({
1504
- # uuid: "14e0db71-xmpl-4eb5-b481-8945cf9d10c2",
1505
- # })
1506
- #
1507
- # resp.to_h outputs the following:
1508
- # {
1509
- # batch_size: 5,
1510
- # event_source_arn: "arn:aws:sqs:us-west-2:123456789012:my-queue",
1511
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function",
1512
- # last_modified: Time.parse("${timestamp}"),
1513
- # state: "Enabled",
1514
- # state_transition_reason: "USER_INITIATED",
1515
- # uuid: "14e0db71-xmpl-4eb5-b481-8945cf9d10c2",
1516
- # }
1517
- #
1518
1366
  # @example Request syntax with placeholder values
1519
1367
  #
1520
1368
  # resp = client.delete_event_source_mapping({
@@ -1542,7 +1390,7 @@ module Aws::Lambda
1542
1390
  # resp.queues #=> Array
1543
1391
  # resp.queues[0] #=> String
1544
1392
  # resp.source_access_configurations #=> Array
1545
- # 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"
1546
1394
  # resp.source_access_configurations[0].uri #=> String
1547
1395
  # resp.self_managed_event_source.endpoints #=> Hash
1548
1396
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -1568,9 +1416,9 @@ module Aws::Lambda
1568
1416
  # deleted.
1569
1417
  #
1570
1418
  # To delete Lambda event source mappings that invoke a function, use
1571
- # DeleteEventSourceMapping. For AWS services and resources that invoke
1572
- # your function directly, delete the trigger in the service where you
1573
- # 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.
1574
1422
  #
1575
1423
  # @option params [required, String] :function_name
1576
1424
  # The name of the Lambda function or version.
@@ -1595,16 +1443,6 @@ module Aws::Lambda
1595
1443
  #
1596
1444
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1597
1445
  #
1598
- #
1599
- # @example Example: To delete a version of a Lambda function
1600
- #
1601
- # # The following example deletes version 1 of a Lambda function named my-function.
1602
- #
1603
- # resp = client.delete_function({
1604
- # function_name: "my-function",
1605
- # qualifier: "1",
1606
- # })
1607
- #
1608
1446
  # @example Request syntax with placeholder values
1609
1447
  #
1610
1448
  # resp = client.delete_function({
@@ -1674,15 +1512,6 @@ module Aws::Lambda
1674
1512
  #
1675
1513
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1676
1514
  #
1677
- #
1678
- # @example Example: To remove the reserved concurrent execution limit from a function
1679
- #
1680
- # # The following example deletes the reserved concurrent execution limit from a function named my-function.
1681
- #
1682
- # resp = client.delete_function_concurrency({
1683
- # function_name: "my-function",
1684
- # })
1685
- #
1686
1515
  # @example Request syntax with placeholder values
1687
1516
  #
1688
1517
  # resp = client.delete_function_concurrency({
@@ -1726,17 +1555,6 @@ module Aws::Lambda
1726
1555
  #
1727
1556
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1728
1557
  #
1729
- #
1730
- # @example Example: To delete an asynchronous invocation configuration
1731
- #
1732
- # # The following example deletes the asynchronous invocation configuration for the GREEN alias of a function named
1733
- # # my-function.
1734
- #
1735
- # resp = client.delete_function_event_invoke_config({
1736
- # function_name: "my-function",
1737
- # qualifier: "GREEN",
1738
- # })
1739
- #
1740
1558
  # @example Request syntax with placeholder values
1741
1559
  #
1742
1560
  # resp = client.delete_function_event_invoke_config({
@@ -1753,7 +1571,7 @@ module Aws::Lambda
1753
1571
  req.send_request(options)
1754
1572
  end
1755
1573
 
1756
- # 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
1757
1575
  # longer be viewed or added to functions. To avoid breaking functions, a
1758
1576
  # copy of the version remains in Lambda until no functions refer to it.
1759
1577
  #
@@ -1769,16 +1587,6 @@ module Aws::Lambda
1769
1587
  #
1770
1588
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1771
1589
  #
1772
- #
1773
- # @example Example: To delete a version of a Lambda layer
1774
- #
1775
- # # The following example deletes version 2 of a layer named my-layer.
1776
- #
1777
- # resp = client.delete_layer_version({
1778
- # layer_name: "my-layer",
1779
- # version_number: 2,
1780
- # })
1781
- #
1782
1590
  # @example Request syntax with placeholder values
1783
1591
  #
1784
1592
  # resp = client.delete_layer_version({
@@ -1817,17 +1625,6 @@ module Aws::Lambda
1817
1625
  #
1818
1626
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1819
1627
  #
1820
- #
1821
- # @example Example: To delete a provisioned concurrency configuration
1822
- #
1823
- # # The following example deletes the provisioned concurrency configuration for the GREEN alias of a function named
1824
- # # my-function.
1825
- #
1826
- # resp = client.delete_provisioned_concurrency_config({
1827
- # function_name: "my-function",
1828
- # qualifier: "GREEN",
1829
- # })
1830
- #
1831
1628
  # @example Request syntax with placeholder values
1832
1629
  #
1833
1630
  # resp = client.delete_provisioned_concurrency_config({
@@ -1845,7 +1642,7 @@ module Aws::Lambda
1845
1642
  end
1846
1643
 
1847
1644
  # Retrieves details about your account's [limits][1] and usage in an
1848
- # AWS Region.
1645
+ # Amazon Web Services Region.
1849
1646
  #
1850
1647
  #
1851
1648
  #
@@ -1856,29 +1653,6 @@ module Aws::Lambda
1856
1653
  # * {Types::GetAccountSettingsResponse#account_limit #account_limit} => Types::AccountLimit
1857
1654
  # * {Types::GetAccountSettingsResponse#account_usage #account_usage} => Types::AccountUsage
1858
1655
  #
1859
- #
1860
- # @example Example: To get account settings
1861
- #
1862
- # # This operation takes no parameters and returns details about storage and concurrency quotas in the current Region.
1863
- #
1864
- # resp = client.get_account_settings({
1865
- # })
1866
- #
1867
- # resp.to_h outputs the following:
1868
- # {
1869
- # account_limit: {
1870
- # code_size_unzipped: 262144000,
1871
- # code_size_zipped: 52428800,
1872
- # concurrent_executions: 1000,
1873
- # total_code_size: 80530636800,
1874
- # unreserved_concurrent_executions: 1000,
1875
- # },
1876
- # account_usage: {
1877
- # function_count: 4,
1878
- # total_code_size: 9426,
1879
- # },
1880
- # }
1881
- #
1882
1656
  # @example Response structure
1883
1657
  #
1884
1658
  # resp.account_limit.total_code_size #=> Integer
@@ -1931,25 +1705,6 @@ module Aws::Lambda
1931
1705
  # * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
1932
1706
  # * {Types::AliasConfiguration#revision_id #revision_id} => String
1933
1707
  #
1934
- #
1935
- # @example Example: To get a Lambda function alias
1936
- #
1937
- # # The following example returns details about an alias named BLUE for a function named my-function
1938
- #
1939
- # resp = client.get_alias({
1940
- # function_name: "my-function",
1941
- # name: "BLUE",
1942
- # })
1943
- #
1944
- # resp.to_h outputs the following:
1945
- # {
1946
- # alias_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function:BLUE",
1947
- # description: "Production environment BLUE.",
1948
- # function_version: "3",
1949
- # name: "BLUE",
1950
- # revision_id: "594f41fb-xmpl-4c20-95c7-6ca5f2a92c93",
1951
- # }
1952
- #
1953
1708
  # @example Request syntax with placeholder values
1954
1709
  #
1955
1710
  # resp = client.get_alias({
@@ -2041,33 +1796,6 @@ module Aws::Lambda
2041
1796
  # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
2042
1797
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
2043
1798
  #
2044
- #
2045
- # @example Example: To get a Lambda function's event source mapping
2046
- #
2047
- # # The following example returns details about an event source mapping. To get a mapping's UUID, use
2048
- # # ListEventSourceMappings.
2049
- #
2050
- # resp = client.get_event_source_mapping({
2051
- # uuid: "14e0db71-xmpl-4eb5-b481-8945cf9d10c2",
2052
- # })
2053
- #
2054
- # resp.to_h outputs the following:
2055
- # {
2056
- # batch_size: 500,
2057
- # bisect_batch_on_function_error: false,
2058
- # destination_config: {
2059
- # },
2060
- # event_source_arn: "arn:aws:sqs:us-east-2:123456789012:mySQSqueue",
2061
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:myFunction",
2062
- # last_modified: Time.parse("${timestamp}"),
2063
- # last_processing_result: "No records processed",
2064
- # maximum_record_age_in_seconds: 604800,
2065
- # maximum_retry_attempts: 10000,
2066
- # state: "Creating",
2067
- # state_transition_reason: "User action",
2068
- # uuid: "14e0db71-xmpl-4eb5-b481-8945cf9d10c2",
2069
- # }
2070
- #
2071
1799
  # @example Request syntax with placeholder values
2072
1800
  #
2073
1801
  # resp = client.get_event_source_mapping({
@@ -2095,7 +1823,7 @@ module Aws::Lambda
2095
1823
  # resp.queues #=> Array
2096
1824
  # resp.queues[0] #=> String
2097
1825
  # resp.source_access_configurations #=> Array
2098
- # 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"
2099
1827
  # resp.source_access_configurations[0].uri #=> String
2100
1828
  # resp.self_managed_event_source.endpoints #=> Hash
2101
1829
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -2149,54 +1877,6 @@ module Aws::Lambda
2149
1877
  # * {Types::GetFunctionResponse#tags #tags} => Hash&lt;String,String&gt;
2150
1878
  # * {Types::GetFunctionResponse#concurrency #concurrency} => Types::Concurrency
2151
1879
  #
2152
- #
2153
- # @example Example: To get a Lambda function
2154
- #
2155
- # # The following example returns code and configuration details for version 1 of a function named my-function.
2156
- #
2157
- # resp = client.get_function({
2158
- # function_name: "my-function",
2159
- # qualifier: "1",
2160
- # })
2161
- #
2162
- # resp.to_h outputs the following:
2163
- # {
2164
- # code: {
2165
- # location: "https://awslambda-us-west-2-tasks.s3.us-west-2.amazonaws.com/snapshots/123456789012/my-function-e7d9d1ed-xmpl-4f79-904a-4b87f2681f30?versionId=sH3TQwBOaUy...",
2166
- # repository_type: "S3",
2167
- # },
2168
- # configuration: {
2169
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
2170
- # code_size: 5797206,
2171
- # description: "Process image objects from Amazon S3.",
2172
- # environment: {
2173
- # variables: {
2174
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
2175
- # "PREFIX" => "inbound",
2176
- # },
2177
- # },
2178
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
2179
- # function_name: "my-function",
2180
- # handler: "index.handler",
2181
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
2182
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
2183
- # last_update_status: "Successful",
2184
- # memory_size: 256,
2185
- # revision_id: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
2186
- # role: "arn:aws:iam::123456789012:role/lambda-role",
2187
- # runtime: "nodejs12.x",
2188
- # state: "Active",
2189
- # timeout: 15,
2190
- # tracing_config: {
2191
- # mode: "Active",
2192
- # },
2193
- # version: "$LATEST",
2194
- # },
2195
- # tags: {
2196
- # "DEPARTMENT" => "Assets",
2197
- # },
2198
- # }
2199
- #
2200
1880
  # @example Request syntax with placeholder values
2201
1881
  #
2202
1882
  # resp = client.get_function({
@@ -2208,7 +1888,7 @@ module Aws::Lambda
2208
1888
  #
2209
1889
  # resp.configuration.function_name #=> String
2210
1890
  # resp.configuration.function_arn #=> String
2211
- # resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
1891
+ # resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
2212
1892
  # resp.configuration.role #=> String
2213
1893
  # resp.configuration.handler #=> String
2214
1894
  # resp.configuration.code_size #=> Integer
@@ -2343,20 +2023,6 @@ module Aws::Lambda
2343
2023
  #
2344
2024
  # * {Types::GetFunctionConcurrencyResponse#reserved_concurrent_executions #reserved_concurrent_executions} => Integer
2345
2025
  #
2346
- #
2347
- # @example Example: To get the reserved concurrency setting for a function
2348
- #
2349
- # # The following example returns the reserved concurrency setting for a function named my-function.
2350
- #
2351
- # resp = client.get_function_concurrency({
2352
- # function_name: "my-function",
2353
- # })
2354
- #
2355
- # resp.to_h outputs the following:
2356
- # {
2357
- # reserved_concurrent_executions: 250,
2358
- # }
2359
- #
2360
2026
  # @example Request syntax with placeholder values
2361
2027
  #
2362
2028
  # resp = client.get_function_concurrency({
@@ -2438,45 +2104,6 @@ module Aws::Lambda
2438
2104
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
2439
2105
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
2440
2106
  #
2441
- #
2442
- # @example Example: To get a Lambda function's event source mapping
2443
- #
2444
- # # The following example returns and configuration details for version 1 of a function named my-function.
2445
- #
2446
- # resp = client.get_function_configuration({
2447
- # function_name: "my-function",
2448
- # qualifier: "1",
2449
- # })
2450
- #
2451
- # resp.to_h outputs the following:
2452
- # {
2453
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
2454
- # code_size: 5797206,
2455
- # description: "Process image objects from Amazon S3.",
2456
- # environment: {
2457
- # variables: {
2458
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
2459
- # "PREFIX" => "inbound",
2460
- # },
2461
- # },
2462
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
2463
- # function_name: "my-function",
2464
- # handler: "index.handler",
2465
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
2466
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
2467
- # last_update_status: "Successful",
2468
- # memory_size: 256,
2469
- # revision_id: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
2470
- # role: "arn:aws:iam::123456789012:role/lambda-role",
2471
- # runtime: "nodejs12.x",
2472
- # state: "Active",
2473
- # timeout: 15,
2474
- # tracing_config: {
2475
- # mode: "Active",
2476
- # },
2477
- # version: "$LATEST",
2478
- # }
2479
- #
2480
2107
  # @example Request syntax with placeholder values
2481
2108
  #
2482
2109
  # resp = client.get_function_configuration({
@@ -2488,7 +2115,7 @@ module Aws::Lambda
2488
2115
  #
2489
2116
  # resp.function_name #=> String
2490
2117
  # resp.function_arn #=> String
2491
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
2118
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
2492
2119
  # resp.role #=> String
2493
2120
  # resp.handler #=> String
2494
2121
  # resp.code_size #=> Integer
@@ -2586,32 +2213,6 @@ module Aws::Lambda
2586
2213
  # * {Types::FunctionEventInvokeConfig#maximum_event_age_in_seconds #maximum_event_age_in_seconds} => Integer
2587
2214
  # * {Types::FunctionEventInvokeConfig#destination_config #destination_config} => Types::DestinationConfig
2588
2215
  #
2589
- #
2590
- # @example Example: To get an asynchronous invocation configuration
2591
- #
2592
- # # The following example returns the asynchronous invocation configuration for the BLUE alias of a function named
2593
- # # my-function.
2594
- #
2595
- # resp = client.get_function_event_invoke_config({
2596
- # function_name: "my-function",
2597
- # qualifier: "BLUE",
2598
- # })
2599
- #
2600
- # resp.to_h outputs the following:
2601
- # {
2602
- # destination_config: {
2603
- # on_failure: {
2604
- # destination: "arn:aws:sqs:us-east-2:123456789012:failed-invocations",
2605
- # },
2606
- # on_success: {
2607
- # },
2608
- # },
2609
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE",
2610
- # last_modified: Time.parse("${timestamp}"),
2611
- # maximum_event_age_in_seconds: 3600,
2612
- # maximum_retry_attempts: 0,
2613
- # }
2614
- #
2615
2216
  # @example Request syntax with placeholder values
2616
2217
  #
2617
2218
  # resp = client.get_function_event_invoke_config({
@@ -2637,8 +2238,8 @@ module Aws::Lambda
2637
2238
  req.send_request(options)
2638
2239
  end
2639
2240
 
2640
- # Returns information about a version of an [AWS Lambda layer][1], with
2641
- # 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.
2642
2243
  #
2643
2244
  #
2644
2245
  #
@@ -2661,35 +2262,6 @@ module Aws::Lambda
2661
2262
  # * {Types::GetLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
2662
2263
  # * {Types::GetLayerVersionResponse#license_info #license_info} => String
2663
2264
  #
2664
- #
2665
- # @example Example: To get information about a Lambda layer version
2666
- #
2667
- # # The following example returns information for version 1 of a layer named my-layer.
2668
- #
2669
- # resp = client.get_layer_version({
2670
- # layer_name: "my-layer",
2671
- # version_number: 1,
2672
- # })
2673
- #
2674
- # resp.to_h outputs the following:
2675
- # {
2676
- # compatible_runtimes: [
2677
- # "python3.6",
2678
- # "python3.7",
2679
- # ],
2680
- # content: {
2681
- # code_sha_256: "tv9jJO+rPbXUUXuRKi7CwHzKtLDkDRJLB3cC3Z/ouXo=",
2682
- # code_size: 169,
2683
- # location: "https://awslambda-us-east-2-layers.s3.us-east-2.amazonaws.com/snapshots/123456789012/my-layer-4aaa2fbb-ff77-4b0a-ad92-5b78a716a96a?versionId=27iWyA73cCAYqyH...",
2684
- # },
2685
- # created_date: Time.parse("2018-11-14T23:03:52.894+0000"),
2686
- # description: "My Python layer",
2687
- # layer_arn: "arn:aws:lambda:us-east-2:123456789012:layer:my-layer",
2688
- # layer_version_arn: "arn:aws:lambda:us-east-2:123456789012:layer:my-layer:1",
2689
- # license_info: "MIT",
2690
- # version: 1,
2691
- # }
2692
- #
2693
2265
  # @example Request syntax with placeholder values
2694
2266
  #
2695
2267
  # resp = client.get_layer_version({
@@ -2710,7 +2282,7 @@ module Aws::Lambda
2710
2282
  # resp.created_date #=> Time
2711
2283
  # resp.version #=> Integer
2712
2284
  # resp.compatible_runtimes #=> Array
2713
- # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
2285
+ # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
2714
2286
  # resp.license_info #=> String
2715
2287
  #
2716
2288
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion AWS API Documentation
@@ -2722,8 +2294,8 @@ module Aws::Lambda
2722
2294
  req.send_request(options)
2723
2295
  end
2724
2296
 
2725
- # Returns information about a version of an [AWS Lambda layer][1], with
2726
- # 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.
2727
2299
  #
2728
2300
  #
2729
2301
  #
@@ -2743,32 +2315,6 @@ module Aws::Lambda
2743
2315
  # * {Types::GetLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
2744
2316
  # * {Types::GetLayerVersionResponse#license_info #license_info} => String
2745
2317
  #
2746
- #
2747
- # @example Example: To get information about a Lambda layer version
2748
- #
2749
- # # The following example returns information about the layer version with the specified Amazon Resource Name (ARN).
2750
- #
2751
- # resp = client.get_layer_version_by_arn({
2752
- # arn: "arn:aws:lambda:ca-central-1:123456789012:layer:blank-python-lib:3",
2753
- # })
2754
- #
2755
- # resp.to_h outputs the following:
2756
- # {
2757
- # compatible_runtimes: [
2758
- # "python3.8",
2759
- # ],
2760
- # content: {
2761
- # code_sha_256: "6x+xmpl/M3BnQUk7gS9sGmfeFsR/npojXoA3fZUv4eU=",
2762
- # code_size: 9529009,
2763
- # 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...",
2764
- # },
2765
- # created_date: Time.parse("2020-03-31T00:35:18.949+0000"),
2766
- # description: "Dependencies for the blank-python sample app.",
2767
- # layer_arn: "arn:aws:lambda:us-east-2:123456789012:layer:blank-python-lib",
2768
- # layer_version_arn: "arn:aws:lambda:us-east-2:123456789012:layer:blank-python-lib:3",
2769
- # version: 3,
2770
- # }
2771
- #
2772
2318
  # @example Request syntax with placeholder values
2773
2319
  #
2774
2320
  # resp = client.get_layer_version_by_arn({
@@ -2788,7 +2334,7 @@ module Aws::Lambda
2788
2334
  # resp.created_date #=> Time
2789
2335
  # resp.version #=> Integer
2790
2336
  # resp.compatible_runtimes #=> Array
2791
- # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
2337
+ # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
2792
2338
  # resp.license_info #=> String
2793
2339
  #
2794
2340
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArn AWS API Documentation
@@ -2800,8 +2346,8 @@ module Aws::Lambda
2800
2346
  req.send_request(options)
2801
2347
  end
2802
2348
 
2803
- # Returns the permission policy for a version of an [AWS Lambda
2804
- # 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.
2805
2351
  #
2806
2352
  #
2807
2353
  #
@@ -2871,22 +2417,6 @@ module Aws::Lambda
2871
2417
  # * {Types::GetPolicyResponse#policy #policy} => String
2872
2418
  # * {Types::GetPolicyResponse#revision_id #revision_id} => String
2873
2419
  #
2874
- #
2875
- # @example Example: To retrieve a Lambda function policy
2876
- #
2877
- # # The following example returns the resource-based policy for version 1 of a Lambda function named my-function.
2878
- #
2879
- # resp = client.get_policy({
2880
- # function_name: "my-function",
2881
- # qualifier: "1",
2882
- # })
2883
- #
2884
- # resp.to_h outputs the following:
2885
- # {
2886
- # 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\"}]}",
2887
- # revision_id: "4843f2f6-7c59-4fda-b484-afd0bc0e22b8",
2888
- # }
2889
- #
2890
2420
  # @example Request syntax with placeholder values
2891
2421
  #
2892
2422
  # resp = client.get_policy({
@@ -2938,45 +2468,6 @@ module Aws::Lambda
2938
2468
  # * {Types::GetProvisionedConcurrencyConfigResponse#status_reason #status_reason} => String
2939
2469
  # * {Types::GetProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
2940
2470
  #
2941
- #
2942
- # @example Example: To view a provisioned concurrency configuration
2943
- #
2944
- # # The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified
2945
- # # function.
2946
- #
2947
- # resp = client.get_provisioned_concurrency_config({
2948
- # function_name: "my-function",
2949
- # qualifier: "BLUE",
2950
- # })
2951
- #
2952
- # resp.to_h outputs the following:
2953
- # {
2954
- # allocated_provisioned_concurrent_executions: 100,
2955
- # available_provisioned_concurrent_executions: 100,
2956
- # last_modified: Time.parse("2019-12-31T20:28:49+0000"),
2957
- # requested_provisioned_concurrent_executions: 100,
2958
- # status: "READY",
2959
- # }
2960
- #
2961
- # @example Example: To get a provisioned concurrency configuration
2962
- #
2963
- # # The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified
2964
- # # function.
2965
- #
2966
- # resp = client.get_provisioned_concurrency_config({
2967
- # function_name: "my-function",
2968
- # qualifier: "BLUE",
2969
- # })
2970
- #
2971
- # resp.to_h outputs the following:
2972
- # {
2973
- # allocated_provisioned_concurrent_executions: 100,
2974
- # available_provisioned_concurrent_executions: 100,
2975
- # last_modified: Time.parse("2019-12-31T20:28:49+0000"),
2976
- # requested_provisioned_concurrent_executions: 100,
2977
- # status: "READY",
2978
- # }
2979
- #
2980
2471
  # @example Request syntax with placeholder values
2981
2472
  #
2982
2473
  # resp = client.get_provisioned_concurrency_config({
@@ -3106,40 +2597,6 @@ module Aws::Lambda
3106
2597
  # * {Types::InvocationResponse#payload #payload} => String
3107
2598
  # * {Types::InvocationResponse#executed_version #executed_version} => String
3108
2599
  #
3109
- #
3110
- # @example Example: To invoke a Lambda function
3111
- #
3112
- # # The following example invokes version 1 of a function named my-function with an empty event payload.
3113
- #
3114
- # resp = client.invoke({
3115
- # function_name: "my-function",
3116
- # payload: "{}",
3117
- # qualifier: "1",
3118
- # })
3119
- #
3120
- # resp.to_h outputs the following:
3121
- # {
3122
- # payload: "200 SUCCESS",
3123
- # status_code: 200,
3124
- # }
3125
- #
3126
- # @example Example: To invoke a Lambda function asynchronously
3127
- #
3128
- # # The following example invokes version 1 of a function named my-function asynchronously.
3129
- #
3130
- # resp = client.invoke({
3131
- # function_name: "my-function",
3132
- # invocation_type: "Event",
3133
- # payload: "{}",
3134
- # qualifier: "1",
3135
- # })
3136
- #
3137
- # resp.to_h outputs the following:
3138
- # {
3139
- # payload: "",
3140
- # status_code: 202,
3141
- # }
3142
- #
3143
2600
  # @example Request syntax with placeholder values
3144
2601
  #
3145
2602
  # resp = client.invoke({
@@ -3194,21 +2651,6 @@ module Aws::Lambda
3194
2651
  #
3195
2652
  # * {Types::InvokeAsyncResponse#status #status} => Integer
3196
2653
  #
3197
- #
3198
- # @example Example: To invoke a Lambda function asynchronously
3199
- #
3200
- # # The following example invokes a Lambda function asynchronously
3201
- #
3202
- # resp = client.invoke_async({
3203
- # function_name: "my-function",
3204
- # invoke_args: "{}",
3205
- # })
3206
- #
3207
- # resp.to_h outputs the following:
3208
- # {
3209
- # status: 202,
3210
- # }
3211
- #
3212
2654
  # @example Request syntax with placeholder values
3213
2655
  #
3214
2656
  # resp = client.invoke_async({
@@ -3268,40 +2710,6 @@ module Aws::Lambda
3268
2710
  #
3269
2711
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3270
2712
  #
3271
- #
3272
- # @example Example: To list a function's aliases
3273
- #
3274
- # # The following example returns a list of aliases for a function named my-function.
3275
- #
3276
- # resp = client.list_aliases({
3277
- # function_name: "my-function",
3278
- # })
3279
- #
3280
- # resp.to_h outputs the following:
3281
- # {
3282
- # aliases: [
3283
- # {
3284
- # alias_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function:BETA",
3285
- # description: "Production environment BLUE.",
3286
- # function_version: "2",
3287
- # name: "BLUE",
3288
- # revision_id: "a410117f-xmpl-494e-8035-7e204bb7933b",
3289
- # routing_config: {
3290
- # additional_version_weights: {
3291
- # "1" => 0.7,
3292
- # },
3293
- # },
3294
- # },
3295
- # {
3296
- # alias_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function:LIVE",
3297
- # description: "Production environment GREEN.",
3298
- # function_version: "1",
3299
- # name: "GREEN",
3300
- # revision_id: "21d40116-xmpl-40ba-9360-3ea284da1bb5",
3301
- # },
3302
- # ],
3303
- # }
3304
- #
3305
2713
  # @example Request syntax with placeholder values
3306
2714
  #
3307
2715
  # resp = client.list_aliases({
@@ -3429,30 +2837,6 @@ module Aws::Lambda
3429
2837
  #
3430
2838
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3431
2839
  #
3432
- #
3433
- # @example Example: To list the event source mappings for a function
3434
- #
3435
- # # The following example returns a list of the event source mappings for a function named my-function.
3436
- #
3437
- # resp = client.list_event_source_mappings({
3438
- # function_name: "my-function",
3439
- # })
3440
- #
3441
- # resp.to_h outputs the following:
3442
- # {
3443
- # event_source_mappings: [
3444
- # {
3445
- # batch_size: 5,
3446
- # event_source_arn: "arn:aws:sqs:us-west-2:123456789012:mySQSqueue",
3447
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
3448
- # last_modified: Time.parse(1569284520.333),
3449
- # state: "Enabled",
3450
- # state_transition_reason: "USER_INITIATED",
3451
- # uuid: "a1b2c3d4-5678-90ab-cdef-11111EXAMPLE",
3452
- # },
3453
- # ],
3454
- # }
3455
- #
3456
2840
  # @example Request syntax with placeholder values
3457
2841
  #
3458
2842
  # resp = client.list_event_source_mappings({
@@ -3485,7 +2869,7 @@ module Aws::Lambda
3485
2869
  # resp.event_source_mappings[0].queues #=> Array
3486
2870
  # resp.event_source_mappings[0].queues[0] #=> String
3487
2871
  # resp.event_source_mappings[0].source_access_configurations #=> Array
3488
- # 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"
3489
2873
  # resp.event_source_mappings[0].source_access_configurations[0].uri #=> String
3490
2874
  # resp.event_source_mappings[0].self_managed_event_source.endpoints #=> Hash
3491
2875
  # resp.event_source_mappings[0].self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -3541,33 +2925,6 @@ module Aws::Lambda
3541
2925
  #
3542
2926
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3543
2927
  #
3544
- #
3545
- # @example Example: To view a list of asynchronous invocation configurations
3546
- #
3547
- # # The following example returns a list of asynchronous invocation configurations for a function named my-function.
3548
- #
3549
- # resp = client.list_function_event_invoke_configs({
3550
- # function_name: "my-function",
3551
- # })
3552
- #
3553
- # resp.to_h outputs the following:
3554
- # {
3555
- # function_event_invoke_configs: [
3556
- # {
3557
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:GREEN",
3558
- # last_modified: Time.parse(1577824406.719),
3559
- # maximum_event_age_in_seconds: 1800,
3560
- # maximum_retry_attempts: 2,
3561
- # },
3562
- # {
3563
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE",
3564
- # last_modified: Time.parse(1577824396.653),
3565
- # maximum_event_age_in_seconds: 3600,
3566
- # maximum_retry_attempts: 0,
3567
- # },
3568
- # ],
3569
- # }
3570
- #
3571
2928
  # @example Request syntax with placeholder values
3572
2929
  #
3573
2930
  # resp = client.list_function_event_invoke_configs({
@@ -3600,11 +2957,18 @@ module Aws::Lambda
3600
2957
  # configuration of each. Lambda returns up to 50 functions per call.
3601
2958
  #
3602
2959
  # Set `FunctionVersion` to `ALL` to include all published versions of
3603
- # each function in addition to the unpublished version. To get more
3604
- # information about a function or version, use GetFunction.
2960
+ # each function in addition to the unpublished version.
2961
+ #
2962
+ # <note markdown="1"> The `ListFunctions` action returns a subset of the
2963
+ # FunctionConfiguration fields. To get the additional fields (State,
2964
+ # StateReasonCode, StateReason, LastUpdateStatus,
2965
+ # LastUpdateStatusReason, LastUpdateStatusReasonCode) for a function or
2966
+ # version, use GetFunction.
2967
+ #
2968
+ # </note>
3605
2969
  #
3606
2970
  # @option params [String] :master_region
3607
- # For Lambda@Edge functions, the AWS Region of the master function. For
2971
+ # For Lambda@Edge functions, the Region of the master function. For
3608
2972
  # example, `us-east-1` filters the list of functions to only include
3609
2973
  # Lambda@Edge functions replicated from a master function in US East (N.
3610
2974
  # Virginia). If specified, you must set `FunctionVersion` to `ALL`.
@@ -3618,7 +2982,9 @@ module Aws::Lambda
3618
2982
  # retrieve the next page of results.
3619
2983
  #
3620
2984
  # @option params [Integer] :max_items
3621
- # The maximum number of functions to return.
2985
+ # The maximum number of functions to return in the response. Note that
2986
+ # `ListFunctions` returns a maximum of 50 items in each response, even
2987
+ # if you set the number higher.
3622
2988
  #
3623
2989
  # @return [Types::ListFunctionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3624
2990
  #
@@ -3627,64 +2993,6 @@ module Aws::Lambda
3627
2993
  #
3628
2994
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3629
2995
  #
3630
- #
3631
- # @example Example: To get a list of Lambda functions
3632
- #
3633
- # # This operation returns a list of Lambda functions.
3634
- #
3635
- # resp = client.list_functions({
3636
- # })
3637
- #
3638
- # resp.to_h outputs the following:
3639
- # {
3640
- # functions: [
3641
- # {
3642
- # code_sha_256: "dBG9m8SGdmlEjw/JYXlhhvCrAv5TxvXsbL/RMr0fT/I=",
3643
- # code_size: 294,
3644
- # description: "",
3645
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:helloworld",
3646
- # function_name: "helloworld",
3647
- # handler: "helloworld.handler",
3648
- # last_modified: Time.parse("2019-09-23T18:32:33.857+0000"),
3649
- # memory_size: 128,
3650
- # revision_id: "1718e831-badf-4253-9518-d0644210af7b",
3651
- # role: "arn:aws:iam::123456789012:role/service-role/MyTestFunction-role-zgur6bf4",
3652
- # runtime: "nodejs10.x",
3653
- # timeout: 3,
3654
- # tracing_config: {
3655
- # mode: "PassThrough",
3656
- # },
3657
- # version: "$LATEST",
3658
- # },
3659
- # {
3660
- # code_sha_256: "sU0cJ2/hOZevwV/lTxCuQqK3gDZP3i8gUoqUUVRmY6E=",
3661
- # code_size: 266,
3662
- # description: "",
3663
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
3664
- # function_name: "my-function",
3665
- # handler: "index.handler",
3666
- # last_modified: Time.parse("2019-10-01T16:47:28.490+0000"),
3667
- # memory_size: 256,
3668
- # revision_id: "93017fc9-59cb-41dc-901b-4845ce4bf668",
3669
- # role: "arn:aws:iam::123456789012:role/service-role/helloWorldPython-role-uy3l9qyq",
3670
- # runtime: "nodejs10.x",
3671
- # timeout: 3,
3672
- # tracing_config: {
3673
- # mode: "PassThrough",
3674
- # },
3675
- # version: "$LATEST",
3676
- # vpc_config: {
3677
- # security_group_ids: [
3678
- # ],
3679
- # subnet_ids: [
3680
- # ],
3681
- # vpc_id: "",
3682
- # },
3683
- # },
3684
- # ],
3685
- # next_marker: "",
3686
- # }
3687
- #
3688
2996
  # @example Request syntax with placeholder values
3689
2997
  #
3690
2998
  # resp = client.list_functions({
@@ -3700,7 +3008,7 @@ module Aws::Lambda
3700
3008
  # resp.functions #=> Array
3701
3009
  # resp.functions[0].function_name #=> String
3702
3010
  # resp.functions[0].function_arn #=> String
3703
- # resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3011
+ # resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3704
3012
  # resp.functions[0].role #=> String
3705
3013
  # resp.functions[0].handler #=> String
3706
3014
  # resp.functions[0].code_size #=> Integer
@@ -3802,10 +3110,9 @@ module Aws::Lambda
3802
3110
  req.send_request(options)
3803
3111
  end
3804
3112
 
3805
- # Lists the versions of an [AWS Lambda layer][1]. Versions that have
3806
- # been deleted aren't listed. Specify a [runtime identifier][2] to list
3807
- # only versions that indicate that they're compatible with that
3808
- # 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.
3809
3116
  #
3810
3117
  #
3811
3118
  #
@@ -3831,43 +3138,10 @@ module Aws::Lambda
3831
3138
  #
3832
3139
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3833
3140
  #
3834
- #
3835
- # @example Example: To list versions of a layer
3836
- #
3837
- # # The following example displays information about the versions for the layer named blank-java-lib
3838
- #
3839
- # resp = client.list_layer_versions({
3840
- # layer_name: "blank-java-lib",
3841
- # })
3842
- #
3843
- # resp.to_h outputs the following:
3844
- # {
3845
- # layer_versions: [
3846
- # {
3847
- # compatible_runtimes: [
3848
- # "java8",
3849
- # ],
3850
- # created_date: Time.parse("2020-03-18T23:38:42.284+0000"),
3851
- # description: "Dependencies for the blank-java sample app.",
3852
- # layer_version_arn: "arn:aws:lambda:us-east-2:123456789012:layer:blank-java-lib:7",
3853
- # version: 7,
3854
- # },
3855
- # {
3856
- # compatible_runtimes: [
3857
- # "java8",
3858
- # ],
3859
- # created_date: Time.parse("2020-03-17T07:24:21.960+0000"),
3860
- # description: "Dependencies for the blank-java sample app.",
3861
- # layer_version_arn: "arn:aws:lambda:us-east-2:123456789012:layer:blank-java-lib:6",
3862
- # version: 6,
3863
- # },
3864
- # ],
3865
- # }
3866
- #
3867
3141
  # @example Request syntax with placeholder values
3868
3142
  #
3869
3143
  # resp = client.list_layer_versions({
3870
- # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
3144
+ # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
3871
3145
  # layer_name: "LayerName", # required
3872
3146
  # marker: "String",
3873
3147
  # max_items: 1,
@@ -3882,7 +3156,7 @@ module Aws::Lambda
3882
3156
  # resp.layer_versions[0].description #=> String
3883
3157
  # resp.layer_versions[0].created_date #=> Time
3884
3158
  # resp.layer_versions[0].compatible_runtimes #=> Array
3885
- # resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3159
+ # resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3886
3160
  # resp.layer_versions[0].license_info #=> String
3887
3161
  #
3888
3162
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions AWS API Documentation
@@ -3894,7 +3168,7 @@ module Aws::Lambda
3894
3168
  req.send_request(options)
3895
3169
  end
3896
3170
 
3897
- # Lists [AWS Lambda layers][1] and shows information about the latest
3171
+ # Lists [Lambda layers][1] and shows information about the latest
3898
3172
  # version of each. Specify a [runtime identifier][2] to list only layers
3899
3173
  # that indicate that they're compatible with that runtime.
3900
3174
  #
@@ -3919,39 +3193,10 @@ module Aws::Lambda
3919
3193
  #
3920
3194
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3921
3195
  #
3922
- #
3923
- # @example Example: To list the layers that are compatible with your function's runtime
3924
- #
3925
- # # The following example returns information about layers that are compatible with the Python 3.7 runtime.
3926
- #
3927
- # resp = client.list_layers({
3928
- # compatible_runtime: "python3.7",
3929
- # })
3930
- #
3931
- # resp.to_h outputs the following:
3932
- # {
3933
- # layers: [
3934
- # {
3935
- # latest_matching_version: {
3936
- # compatible_runtimes: [
3937
- # "python3.6",
3938
- # "python3.7",
3939
- # ],
3940
- # created_date: Time.parse("2018-11-15T00:37:46.592+0000"),
3941
- # description: "My layer",
3942
- # layer_version_arn: "arn:aws:lambda:us-east-2:123456789012:layer:my-layer:2",
3943
- # version: 2,
3944
- # },
3945
- # layer_arn: "arn:aws:lambda:us-east-2:123456789012:layer:my-layer",
3946
- # layer_name: "my-layer",
3947
- # },
3948
- # ],
3949
- # }
3950
- #
3951
3196
  # @example Request syntax with placeholder values
3952
3197
  #
3953
3198
  # resp = client.list_layers({
3954
- # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
3199
+ # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
3955
3200
  # marker: "String",
3956
3201
  # max_items: 1,
3957
3202
  # })
@@ -3967,7 +3212,7 @@ module Aws::Lambda
3967
3212
  # resp.layers[0].latest_matching_version.description #=> String
3968
3213
  # resp.layers[0].latest_matching_version.created_date #=> Time
3969
3214
  # resp.layers[0].latest_matching_version.compatible_runtimes #=> Array
3970
- # resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3215
+ # resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3971
3216
  # resp.layers[0].latest_matching_version.license_info #=> String
3972
3217
  #
3973
3218
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers AWS API Documentation
@@ -4011,37 +3256,6 @@ module Aws::Lambda
4011
3256
  #
4012
3257
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4013
3258
  #
4014
- #
4015
- # @example Example: To get a list of provisioned concurrency configurations
4016
- #
4017
- # # The following example returns a list of provisioned concurrency configurations for a function named my-function.
4018
- #
4019
- # resp = client.list_provisioned_concurrency_configs({
4020
- # function_name: "my-function",
4021
- # })
4022
- #
4023
- # resp.to_h outputs the following:
4024
- # {
4025
- # provisioned_concurrency_configs: [
4026
- # {
4027
- # allocated_provisioned_concurrent_executions: 100,
4028
- # available_provisioned_concurrent_executions: 100,
4029
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:GREEN",
4030
- # last_modified: Time.parse("2019-12-31T20:29:00+0000"),
4031
- # requested_provisioned_concurrent_executions: 100,
4032
- # status: "READY",
4033
- # },
4034
- # {
4035
- # allocated_provisioned_concurrent_executions: 100,
4036
- # available_provisioned_concurrent_executions: 100,
4037
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE",
4038
- # last_modified: Time.parse("2019-12-31T20:28:49+0000"),
4039
- # requested_provisioned_concurrent_executions: 100,
4040
- # status: "READY",
4041
- # },
4042
- # ],
4043
- # }
4044
- #
4045
3259
  # @example Request syntax with placeholder values
4046
3260
  #
4047
3261
  # resp = client.list_provisioned_concurrency_configs({
@@ -4085,23 +3299,6 @@ module Aws::Lambda
4085
3299
  #
4086
3300
  # * {Types::ListTagsResponse#tags #tags} => Hash&lt;String,String&gt;
4087
3301
  #
4088
- #
4089
- # @example Example: To retrieve the list of tags for a Lambda function
4090
- #
4091
- # # The following example displays the tags attached to the my-function Lambda function.
4092
- #
4093
- # resp = client.list_tags({
4094
- # resource: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
4095
- # })
4096
- #
4097
- # resp.to_h outputs the following:
4098
- # {
4099
- # tags: {
4100
- # "Category" => "Web Tools",
4101
- # "Department" => "Sales",
4102
- # },
4103
- # }
4104
- #
4105
3302
  # @example Request syntax with placeholder values
4106
3303
  #
4107
3304
  # resp = client.list_tags({
@@ -4149,7 +3346,9 @@ module Aws::Lambda
4149
3346
  # retrieve the next page of results.
4150
3347
  #
4151
3348
  # @option params [Integer] :max_items
4152
- # 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.
4153
3352
  #
4154
3353
  # @return [Types::ListVersionsByFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4155
3354
  #
@@ -4158,71 +3357,6 @@ module Aws::Lambda
4158
3357
  #
4159
3358
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4160
3359
  #
4161
- #
4162
- # @example Example: To list versions of a function
4163
- #
4164
- # # The following example returns a list of versions of a function named my-function
4165
- #
4166
- # resp = client.list_versions_by_function({
4167
- # function_name: "my-function",
4168
- # })
4169
- #
4170
- # resp.to_h outputs the following:
4171
- # {
4172
- # versions: [
4173
- # {
4174
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
4175
- # code_size: 5797206,
4176
- # description: "Process image objects from Amazon S3.",
4177
- # environment: {
4178
- # variables: {
4179
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
4180
- # "PREFIX" => "inbound",
4181
- # },
4182
- # },
4183
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
4184
- # function_name: "my-function",
4185
- # handler: "index.handler",
4186
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
4187
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
4188
- # memory_size: 256,
4189
- # revision_id: "850ca006-2d98-4ff4-86db-8766e9d32fe9",
4190
- # role: "arn:aws:iam::123456789012:role/lambda-role",
4191
- # runtime: "nodejs12.x",
4192
- # timeout: 15,
4193
- # tracing_config: {
4194
- # mode: "Active",
4195
- # },
4196
- # version: "$LATEST",
4197
- # },
4198
- # {
4199
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
4200
- # code_size: 5797206,
4201
- # description: "Process image objects from Amazon S3.",
4202
- # environment: {
4203
- # variables: {
4204
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
4205
- # "PREFIX" => "inbound",
4206
- # },
4207
- # },
4208
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
4209
- # function_name: "my-function",
4210
- # handler: "index.handler",
4211
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
4212
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
4213
- # memory_size: 256,
4214
- # revision_id: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
4215
- # role: "arn:aws:iam::123456789012:role/lambda-role",
4216
- # runtime: "nodejs12.x",
4217
- # timeout: 5,
4218
- # tracing_config: {
4219
- # mode: "Active",
4220
- # },
4221
- # version: "1",
4222
- # },
4223
- # ],
4224
- # }
4225
- #
4226
3360
  # @example Request syntax with placeholder values
4227
3361
  #
4228
3362
  # resp = client.list_versions_by_function({
@@ -4237,7 +3371,7 @@ module Aws::Lambda
4237
3371
  # resp.versions #=> Array
4238
3372
  # resp.versions[0].function_name #=> String
4239
3373
  # resp.versions[0].function_arn #=> String
4240
- # resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3374
+ # resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
4241
3375
  # resp.versions[0].role #=> String
4242
3376
  # resp.versions[0].handler #=> String
4243
3377
  # resp.versions[0].code_size #=> Integer
@@ -4295,8 +3429,8 @@ module Aws::Lambda
4295
3429
  req.send_request(options)
4296
3430
  end
4297
3431
 
4298
- # Creates an [AWS Lambda layer][1] from a ZIP archive. Each time you
4299
- # 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
4300
3434
  # created.
4301
3435
  #
4302
3436
  # Add layers to your function with CreateFunction or
@@ -4348,45 +3482,6 @@ module Aws::Lambda
4348
3482
  # * {Types::PublishLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
4349
3483
  # * {Types::PublishLayerVersionResponse#license_info #license_info} => String
4350
3484
  #
4351
- #
4352
- # @example Example: To create a Lambda layer version
4353
- #
4354
- # # The following example creates a new Python library layer version. The command retrieves the layer content a file named
4355
- # # layer.zip in the specified S3 bucket.
4356
- #
4357
- # resp = client.publish_layer_version({
4358
- # compatible_runtimes: [
4359
- # "python3.6",
4360
- # "python3.7",
4361
- # ],
4362
- # content: {
4363
- # s3_bucket: "lambda-layers-us-west-2-123456789012",
4364
- # s3_key: "layer.zip",
4365
- # },
4366
- # description: "My Python layer",
4367
- # layer_name: "my-layer",
4368
- # license_info: "MIT",
4369
- # })
4370
- #
4371
- # resp.to_h outputs the following:
4372
- # {
4373
- # compatible_runtimes: [
4374
- # "python3.6",
4375
- # "python3.7",
4376
- # ],
4377
- # content: {
4378
- # code_sha_256: "tv9jJO+rPbXUUXuRKi7CwHzKtLDkDRJLB3cC3Z/ouXo=",
4379
- # code_size: 169,
4380
- # location: "https://awslambda-us-west-2-layers.s3.us-west-2.amazonaws.com/snapshots/123456789012/my-layer-4aaa2fbb-ff77-4b0a-ad92-5b78a716a96a?versionId=27iWyA73cCAYqyH...",
4381
- # },
4382
- # created_date: Time.parse("2018-11-14T23:03:52.894+0000"),
4383
- # description: "My Python layer",
4384
- # layer_arn: "arn:aws:lambda:us-west-2:123456789012:layer:my-layer",
4385
- # layer_version_arn: "arn:aws:lambda:us-west-2:123456789012:layer:my-layer:1",
4386
- # license_info: "MIT",
4387
- # version: 1,
4388
- # }
4389
- #
4390
3485
  # @example Request syntax with placeholder values
4391
3486
  #
4392
3487
  # resp = client.publish_layer_version({
@@ -4398,7 +3493,7 @@ module Aws::Lambda
4398
3493
  # s3_object_version: "S3ObjectVersion",
4399
3494
  # zip_file: "data",
4400
3495
  # },
4401
- # compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
3496
+ # compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
4402
3497
  # license_info: "LicenseInfo",
4403
3498
  # })
4404
3499
  #
@@ -4415,7 +3510,7 @@ module Aws::Lambda
4415
3510
  # resp.created_date #=> Time
4416
3511
  # resp.version #=> Integer
4417
3512
  # resp.compatible_runtimes #=> Array
4418
- # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3513
+ # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
4419
3514
  # resp.license_info #=> String
4420
3515
  #
4421
3516
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion AWS API Documentation
@@ -4431,10 +3526,10 @@ module Aws::Lambda
4431
3526
  # function. Use versions to create a snapshot of your function code and
4432
3527
  # configuration that doesn't change.
4433
3528
  #
4434
- # AWS Lambda doesn't publish a version if the function's configuration
4435
- # and code haven't changed since the last version. Use
4436
- # UpdateFunctionCode or UpdateFunctionConfiguration to update the
4437
- # 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.
4438
3533
  #
4439
3534
  # Clients can invoke versions directly or with an alias. To create an
4440
3535
  # alias, use CreateAlias.
@@ -4508,46 +3603,6 @@ module Aws::Lambda
4508
3603
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
4509
3604
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
4510
3605
  #
4511
- #
4512
- # @example Example: To publish a version of a Lambda function
4513
- #
4514
- # # This operation publishes a version of a Lambda function
4515
- #
4516
- # resp = client.publish_version({
4517
- # code_sha_256: "",
4518
- # description: "",
4519
- # function_name: "myFunction",
4520
- # })
4521
- #
4522
- # resp.to_h outputs the following:
4523
- # {
4524
- # code_sha_256: "YFgDgEKG3ugvF1+pX64gV6tu9qNuIYNUdgJm8nCxsm4=",
4525
- # code_size: 5797206,
4526
- # description: "Process image objects from Amazon S3.",
4527
- # environment: {
4528
- # variables: {
4529
- # "BUCKET" => "my-bucket-1xpuxmplzrlbh",
4530
- # "PREFIX" => "inbound",
4531
- # },
4532
- # },
4533
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
4534
- # function_name: "my-function",
4535
- # handler: "index.handler",
4536
- # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
4537
- # last_modified: Time.parse("2020-04-10T19:06:32.563+0000"),
4538
- # last_update_status: "Successful",
4539
- # memory_size: 256,
4540
- # revision_id: "b75dcd81-xmpl-48a8-a75a-93ba8b5b9727",
4541
- # role: "arn:aws:iam::123456789012:role/lambda-role",
4542
- # runtime: "nodejs12.x",
4543
- # state: "Active",
4544
- # timeout: 5,
4545
- # tracing_config: {
4546
- # mode: "Active",
4547
- # },
4548
- # version: "1",
4549
- # }
4550
- #
4551
3606
  # @example Request syntax with placeholder values
4552
3607
  #
4553
3608
  # resp = client.publish_version({
@@ -4561,7 +3616,7 @@ module Aws::Lambda
4561
3616
  #
4562
3617
  # resp.function_name #=> String
4563
3618
  # resp.function_arn #=> String
4564
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3619
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
4565
3620
  # resp.role #=> String
4566
3621
  # resp.handler #=> String
4567
3622
  # resp.code_size #=> Integer
@@ -4708,21 +3763,6 @@ module Aws::Lambda
4708
3763
  #
4709
3764
  # * {Types::Concurrency#reserved_concurrent_executions #reserved_concurrent_executions} => Integer
4710
3765
  #
4711
- #
4712
- # @example Example: To configure a reserved concurrency limit for a function
4713
- #
4714
- # # The following example configures 100 reserved concurrent executions for the my-function function.
4715
- #
4716
- # resp = client.put_function_concurrency({
4717
- # function_name: "my-function",
4718
- # reserved_concurrent_executions: 100,
4719
- # })
4720
- #
4721
- # resp.to_h outputs the following:
4722
- # {
4723
- # reserved_concurrent_executions: 100,
4724
- # }
4725
- #
4726
3766
  # @example Request syntax with placeholder values
4727
3767
  #
4728
3768
  # resp = client.put_function_concurrency({
@@ -4818,31 +3858,6 @@ module Aws::Lambda
4818
3858
  # * {Types::FunctionEventInvokeConfig#maximum_event_age_in_seconds #maximum_event_age_in_seconds} => Integer
4819
3859
  # * {Types::FunctionEventInvokeConfig#destination_config #destination_config} => Types::DestinationConfig
4820
3860
  #
4821
- #
4822
- # @example Example: To configure error handling for asynchronous invocation
4823
- #
4824
- # # The following example sets a maximum event age of one hour and disables retries for the specified function.
4825
- #
4826
- # resp = client.put_function_event_invoke_config({
4827
- # function_name: "my-function",
4828
- # maximum_event_age_in_seconds: 3600,
4829
- # maximum_retry_attempts: 0,
4830
- # })
4831
- #
4832
- # resp.to_h outputs the following:
4833
- # {
4834
- # destination_config: {
4835
- # on_failure: {
4836
- # },
4837
- # on_success: {
4838
- # },
4839
- # },
4840
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:$LATEST",
4841
- # last_modified: Time.parse("${timestamp}"),
4842
- # maximum_event_age_in_seconds: 3600,
4843
- # maximum_retry_attempts: 0,
4844
- # }
4845
- #
4846
3861
  # @example Request syntax with placeholder values
4847
3862
  #
4848
3863
  # resp = client.put_function_event_invoke_config({
@@ -4912,25 +3927,6 @@ module Aws::Lambda
4912
3927
  # * {Types::PutProvisionedConcurrencyConfigResponse#status_reason #status_reason} => String
4913
3928
  # * {Types::PutProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
4914
3929
  #
4915
- #
4916
- # @example Example: To allocate provisioned concurrency
4917
- #
4918
- # # The following example allocates 100 provisioned concurrency for the BLUE alias of the specified function.
4919
- #
4920
- # resp = client.put_provisioned_concurrency_config({
4921
- # function_name: "my-function",
4922
- # provisioned_concurrent_executions: 100,
4923
- # qualifier: "BLUE",
4924
- # })
4925
- #
4926
- # resp.to_h outputs the following:
4927
- # {
4928
- # allocated_provisioned_concurrent_executions: 0,
4929
- # last_modified: Time.parse("2019-11-21T19:32:12+0000"),
4930
- # requested_provisioned_concurrent_executions: 100,
4931
- # status: "IN_PROGRESS",
4932
- # }
4933
- #
4934
3930
  # @example Request syntax with placeholder values
4935
3931
  #
4936
3932
  # resp = client.put_provisioned_concurrency_config({
@@ -4958,7 +3954,7 @@ module Aws::Lambda
4958
3954
  end
4959
3955
 
4960
3956
  # Removes a statement from the permissions policy for a version of an
4961
- # [AWS Lambda layer][1]. For more information, see
3957
+ # [Lambda layer][1]. For more information, see
4962
3958
  # AddLayerVersionPermission.
4963
3959
  #
4964
3960
  #
@@ -4981,17 +3977,6 @@ module Aws::Lambda
4981
3977
  #
4982
3978
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4983
3979
  #
4984
- #
4985
- # @example Example: To delete layer-version permissions
4986
- #
4987
- # # The following example deletes permission for an account to configure a layer version.
4988
- #
4989
- # resp = client.remove_layer_version_permission({
4990
- # layer_name: "my-layer",
4991
- # statement_id: "xaccount",
4992
- # version_number: 1,
4993
- # })
4994
- #
4995
3980
  # @example Request syntax with placeholder values
4996
3981
  #
4997
3982
  # resp = client.remove_layer_version_permission({
@@ -5010,9 +3995,9 @@ module Aws::Lambda
5010
3995
  req.send_request(options)
5011
3996
  end
5012
3997
 
5013
- # Revokes function-use permission from an AWS service or another
5014
- # account. You can get the ID of the statement from the output of
5015
- # 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.
5016
4001
  #
5017
4002
  # @option params [required, String] :function_name
5018
4003
  # The name of the Lambda function, version, or alias.
@@ -5045,18 +4030,6 @@ module Aws::Lambda
5045
4030
  #
5046
4031
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5047
4032
  #
5048
- #
5049
- # @example Example: To remove a Lambda function's permissions
5050
- #
5051
- # # The following example removes a permissions statement named xaccount from the PROD alias of a function named
5052
- # # my-function.
5053
- #
5054
- # resp = client.remove_permission({
5055
- # function_name: "my-function",
5056
- # qualifier: "PROD",
5057
- # statement_id: "xaccount",
5058
- # })
5059
- #
5060
4033
  # @example Request syntax with placeholder values
5061
4034
  #
5062
4035
  # resp = client.remove_permission({
@@ -5089,19 +4062,6 @@ module Aws::Lambda
5089
4062
  #
5090
4063
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5091
4064
  #
5092
- #
5093
- # @example Example: To add tags to an existing Lambda function
5094
- #
5095
- # # The following example adds a tag with the key name DEPARTMENT and a value of 'Department A' to the specified Lambda
5096
- # # function.
5097
- #
5098
- # resp = client.tag_resource({
5099
- # resource: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
5100
- # tags: {
5101
- # "DEPARTMENT" => "Department A",
5102
- # },
5103
- # })
5104
- #
5105
4065
  # @example Request syntax with placeholder values
5106
4066
  #
5107
4067
  # resp = client.tag_resource({
@@ -5134,18 +4094,6 @@ module Aws::Lambda
5134
4094
  #
5135
4095
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5136
4096
  #
5137
- #
5138
- # @example Example: To remove tags from an existing Lambda function
5139
- #
5140
- # # The following example removes the tag with the key name DEPARTMENT tag from the my-function Lambda function.
5141
- #
5142
- # resp = client.untag_resource({
5143
- # resource: "arn:aws:lambda:us-west-2:123456789012:function:my-function",
5144
- # tag_keys: [
5145
- # "DEPARTMENT",
5146
- # ],
5147
- # })
5148
- #
5149
4097
  # @example Request syntax with placeholder values
5150
4098
  #
5151
4099
  # resp = client.untag_resource({
@@ -5213,36 +4161,6 @@ module Aws::Lambda
5213
4161
  # * {Types::AliasConfiguration#routing_config #routing_config} => Types::AliasRoutingConfiguration
5214
4162
  # * {Types::AliasConfiguration#revision_id #revision_id} => String
5215
4163
  #
5216
- #
5217
- # @example Example: To update a function alias
5218
- #
5219
- # # The following example updates the alias named BLUE to send 30% of traffic to version 2 and 70% to version 1.
5220
- #
5221
- # resp = client.update_alias({
5222
- # function_name: "my-function",
5223
- # function_version: "2",
5224
- # name: "BLUE",
5225
- # routing_config: {
5226
- # additional_version_weights: {
5227
- # "1" => 0.7,
5228
- # },
5229
- # },
5230
- # })
5231
- #
5232
- # resp.to_h outputs the following:
5233
- # {
5234
- # alias_arn: "arn:aws:lambda:us-west-2:123456789012:function:my-function:BLUE",
5235
- # description: "Production environment BLUE.",
5236
- # function_version: "2",
5237
- # name: "BLUE",
5238
- # revision_id: "594f41fb-xmpl-4c20-95c7-6ca5f2a92c93",
5239
- # routing_config: {
5240
- # additional_version_weights: {
5241
- # "1" => 0.7,
5242
- # },
5243
- # },
5244
- # }
5245
- #
5246
4164
  # @example Request syntax with placeholder values
5247
4165
  #
5248
4166
  # resp = client.update_alias({
@@ -5329,7 +4247,7 @@ module Aws::Lambda
5329
4247
  req.send_request(options)
5330
4248
  end
5331
4249
 
5332
- # Updates an event source mapping. You can change the function that AWS
4250
+ # Updates an event source mapping. You can change the function that
5333
4251
  # Lambda invokes, or pause invocation and resume later from the same
5334
4252
  # location.
5335
4253
  #
@@ -5398,24 +4316,24 @@ module Aws::Lambda
5398
4316
  # records before invoking the function, in seconds.
5399
4317
  #
5400
4318
  # @option params [Types::DestinationConfig] :destination_config
5401
- # (Streams) An Amazon SQS queue or Amazon SNS topic destination for
4319
+ # (Streams only) An Amazon SQS queue or Amazon SNS topic destination for
5402
4320
  # discarded records.
5403
4321
  #
5404
4322
  # @option params [Integer] :maximum_record_age_in_seconds
5405
- # (Streams) Discard records older than the specified age. The default
5406
- # value is infinite (-1).
4323
+ # (Streams only) Discard records older than the specified age. The
4324
+ # default value is infinite (-1).
5407
4325
  #
5408
4326
  # @option params [Boolean] :bisect_batch_on_function_error
5409
- # (Streams) If the function returns an error, split the batch in two and
5410
- # retry.
4327
+ # (Streams only) If the function returns an error, split the batch in
4328
+ # two and retry.
5411
4329
  #
5412
4330
  # @option params [Integer] :maximum_retry_attempts
5413
- # (Streams) Discard records after the specified number of retries. The
5414
- # 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
5415
4333
  # records will be retried until the record expires.
5416
4334
  #
5417
4335
  # @option params [Integer] :parallelization_factor
5418
- # (Streams) The number of batches to process from each shard
4336
+ # (Streams only) The number of batches to process from each shard
5419
4337
  # concurrently.
5420
4338
  #
5421
4339
  # @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
@@ -5423,12 +4341,12 @@ module Aws::Lambda
5423
4341
  # secure your event source.
5424
4342
  #
5425
4343
  # @option params [Integer] :tumbling_window_in_seconds
5426
- # (Streams) The duration of a processing window in seconds. The range is
5427
- # between 1 second up to 15 minutes.
4344
+ # (Streams only) The duration in seconds of a processing window. The
4345
+ # range is between 1 second up to 900 seconds.
5428
4346
  #
5429
4347
  # @option params [Array<String>] :function_response_types
5430
- # (Streams) A list of current response type enums applied to the event
5431
- # source mapping.
4348
+ # (Streams only) A list of current response type enums applied to the
4349
+ # event source mapping.
5432
4350
  #
5433
4351
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5434
4352
  #
@@ -5455,30 +4373,6 @@ module Aws::Lambda
5455
4373
  # * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
5456
4374
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array&lt;String&gt;
5457
4375
  #
5458
- #
5459
- # @example Example: To update a Lambda function event source mapping
5460
- #
5461
- # # This operation updates a Lambda function event source mapping
5462
- #
5463
- # resp = client.update_event_source_mapping({
5464
- # batch_size: 123,
5465
- # enabled: true,
5466
- # function_name: "myFunction",
5467
- # uuid: "1234xCy789012",
5468
- # })
5469
- #
5470
- # resp.to_h outputs the following:
5471
- # {
5472
- # batch_size: 123,
5473
- # event_source_arn: "arn:aws:s3:::examplebucket/*",
5474
- # function_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
5475
- # last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
5476
- # last_processing_result: "",
5477
- # state: "",
5478
- # state_transition_reason: "",
5479
- # uuid: "1234xCy789012",
5480
- # }
5481
- #
5482
4376
  # @example Request syntax with placeholder values
5483
4377
  #
5484
4378
  # resp = client.update_event_source_mapping({
@@ -5501,7 +4395,7 @@ module Aws::Lambda
5501
4395
  # parallelization_factor: 1,
5502
4396
  # source_access_configurations: [
5503
4397
  # {
5504
- # 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
5505
4399
  # uri: "URI",
5506
4400
  # },
5507
4401
  # ],
@@ -5530,7 +4424,7 @@ module Aws::Lambda
5530
4424
  # resp.queues #=> Array
5531
4425
  # resp.queues[0] #=> String
5532
4426
  # resp.source_access_configurations #=> Array
5533
- # 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"
5534
4428
  # resp.source_access_configurations[0].uri #=> String
5535
4429
  # resp.self_managed_event_source.endpoints #=> Hash
5536
4430
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -5584,12 +4478,14 @@ module Aws::Lambda
5584
4478
  # only the function name, it is limited to 64 characters in length.
5585
4479
  #
5586
4480
  # @option params [String, StringIO, File] :zip_file
5587
- # The base64-encoded contents of the deployment package. AWS SDK and AWS
5588
- # 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.
5589
4484
  #
5590
4485
  # @option params [String] :s3_bucket
5591
- # An Amazon S3 bucket in the same AWS Region as your function. The
5592
- # 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.
5593
4489
  #
5594
4490
  # @option params [String] :s3_key
5595
4491
  # The Amazon S3 key of the deployment package.
@@ -5649,38 +4545,6 @@ module Aws::Lambda
5649
4545
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
5650
4546
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
5651
4547
  #
5652
- #
5653
- # @example Example: To update a Lambda function's code
5654
- #
5655
- # # The following example replaces the code of the unpublished ($LATEST) version of a function named my-function with the
5656
- # # contents of the specified zip file in Amazon S3.
5657
- #
5658
- # resp = client.update_function_code({
5659
- # function_name: "my-function",
5660
- # s3_bucket: "my-bucket-1xpuxmplzrlbh",
5661
- # s3_key: "function.zip",
5662
- # })
5663
- #
5664
- # resp.to_h outputs the following:
5665
- # {
5666
- # code_sha_256: "PFn4S+er27qk+UuZSTKEQfNKG/XNn7QJs90mJgq6oH8=",
5667
- # code_size: 308,
5668
- # description: "",
5669
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function",
5670
- # function_name: "my-function",
5671
- # handler: "index.handler",
5672
- # last_modified: Time.parse("2019-08-14T22:26:11.234+0000"),
5673
- # memory_size: 128,
5674
- # revision_id: "873282ed-xmpl-4dc8-a069-d0c647e470c6",
5675
- # role: "arn:aws:iam::123456789012:role/lambda-role",
5676
- # runtime: "nodejs12.x",
5677
- # timeout: 3,
5678
- # tracing_config: {
5679
- # mode: "PassThrough",
5680
- # },
5681
- # version: "$LATEST",
5682
- # }
5683
- #
5684
4548
  # @example Request syntax with placeholder values
5685
4549
  #
5686
4550
  # resp = client.update_function_code({
@@ -5699,7 +4563,7 @@ module Aws::Lambda
5699
4563
  #
5700
4564
  # resp.function_name #=> String
5701
4565
  # resp.function_arn #=> String
5702
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
4566
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
5703
4567
  # resp.role #=> String
5704
4568
  # resp.handler #=> String
5705
4569
  # resp.code_size #=> Integer
@@ -5774,8 +4638,8 @@ module Aws::Lambda
5774
4638
  # published version, only the unpublished version.
5775
4639
  #
5776
4640
  # To configure function concurrency, use PutFunctionConcurrency. To
5777
- # grant invoke permissions to an account or AWS service, use
5778
- # AddPermission.
4641
+ # grant invoke permissions to an account or Amazon Web Services service,
4642
+ # use AddPermission.
5779
4643
  #
5780
4644
  #
5781
4645
  #
@@ -5815,18 +4679,28 @@ module Aws::Lambda
5815
4679
  # @option params [Integer] :timeout
5816
4680
  # The amount of time that Lambda allows a function to run before
5817
4681
  # stopping it. The default is 3 seconds. The maximum allowed value is
5818
- # 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
5819
4688
  #
5820
4689
  # @option params [Integer] :memory_size
5821
- # The amount of memory available to the function at runtime. Increasing
5822
- # the function's memory also increases its CPU allocation. The default
5823
- # 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
5824
4697
  #
5825
4698
  # @option params [Types::VpcConfig] :vpc_config
5826
- # For network connectivity to AWS resources in a VPC, specify a list of
5827
- # security groups and subnets in the VPC. When you connect a function to
5828
- # a VPC, it can only access resources and the internet through that VPC.
5829
- # 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].
5830
4704
  #
5831
4705
  #
5832
4706
  #
@@ -5853,13 +4727,17 @@ module Aws::Lambda
5853
4727
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq
5854
4728
  #
5855
4729
  # @option params [String] :kms_key_arn
5856
- # The ARN of the AWS Key Management Service (AWS KMS) key that's used
5857
- # to encrypt your function's environment variables. If it's not
5858
- # 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.
5859
4733
  #
5860
4734
  # @option params [Types::TracingConfig] :tracing_config
5861
4735
  # Set `Mode` to `Active` to sample and trace a subset of incoming
5862
- # 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
5863
4741
  #
5864
4742
  # @option params [String] :revision_id
5865
4743
  # Only update the function if the revision ID matches the ID that's
@@ -5878,7 +4756,12 @@ module Aws::Lambda
5878
4756
  # Connection settings for an Amazon EFS file system.
5879
4757
  #
5880
4758
  # @option params [Types::ImageConfig] :image_config
5881
- # Configuration values that override the container image Dockerfile.
4759
+ # [Container image configuration values][1] that override the values in
4760
+ # the container image Dockerfile.
4761
+ #
4762
+ #
4763
+ #
4764
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/images-parms.html
5882
4765
  #
5883
4766
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5884
4767
  #
@@ -5914,37 +4797,6 @@ module Aws::Lambda
5914
4797
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
5915
4798
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
5916
4799
  #
5917
- #
5918
- # @example Example: To update a Lambda function's configuration
5919
- #
5920
- # # The following example modifies the memory size to be 256 MB for the unpublished ($LATEST) version of a function named
5921
- # # my-function.
5922
- #
5923
- # resp = client.update_function_configuration({
5924
- # function_name: "my-function",
5925
- # memory_size: 256,
5926
- # })
5927
- #
5928
- # resp.to_h outputs the following:
5929
- # {
5930
- # code_sha_256: "PFn4S+er27qk+UuZSTKEQfNKG/XNn7QJs90mJgq6oH8=",
5931
- # code_size: 308,
5932
- # description: "",
5933
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function",
5934
- # function_name: "my-function",
5935
- # handler: "index.handler",
5936
- # last_modified: Time.parse("2019-08-14T22:26:11.234+0000"),
5937
- # memory_size: 256,
5938
- # revision_id: "873282ed-xmpl-4dc8-a069-d0c647e470c6",
5939
- # role: "arn:aws:iam::123456789012:role/lambda-role",
5940
- # runtime: "nodejs12.x",
5941
- # timeout: 3,
5942
- # tracing_config: {
5943
- # mode: "PassThrough",
5944
- # },
5945
- # version: "$LATEST",
5946
- # }
5947
- #
5948
4800
  # @example Request syntax with placeholder values
5949
4801
  #
5950
4802
  # resp = client.update_function_configuration({
@@ -5963,7 +4815,7 @@ module Aws::Lambda
5963
4815
  # "EnvironmentVariableName" => "EnvironmentVariableValue",
5964
4816
  # },
5965
4817
  # },
5966
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
4818
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
5967
4819
  # dead_letter_config: {
5968
4820
  # target_arn: "ResourceArn",
5969
4821
  # },
@@ -5990,7 +4842,7 @@ module Aws::Lambda
5990
4842
  #
5991
4843
  # resp.function_name #=> String
5992
4844
  # resp.function_arn #=> String
5993
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
4845
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
5994
4846
  # resp.role #=> String
5995
4847
  # resp.handler #=> String
5996
4848
  # resp.code_size #=> Integer
@@ -6104,36 +4956,6 @@ module Aws::Lambda
6104
4956
  # * {Types::FunctionEventInvokeConfig#maximum_event_age_in_seconds #maximum_event_age_in_seconds} => Integer
6105
4957
  # * {Types::FunctionEventInvokeConfig#destination_config #destination_config} => Types::DestinationConfig
6106
4958
  #
6107
- #
6108
- # @example Example: To update an asynchronous invocation configuration
6109
- #
6110
- # # The following example adds an on-failure destination to the existing asynchronous invocation configuration for a
6111
- # # function named my-function.
6112
- #
6113
- # resp = client.update_function_event_invoke_config({
6114
- # destination_config: {
6115
- # on_failure: {
6116
- # destination: "arn:aws:sqs:us-east-2:123456789012:destination",
6117
- # },
6118
- # },
6119
- # function_name: "my-function",
6120
- # })
6121
- #
6122
- # resp.to_h outputs the following:
6123
- # {
6124
- # destination_config: {
6125
- # on_failure: {
6126
- # destination: "arn:aws:sqs:us-east-2:123456789012:destination",
6127
- # },
6128
- # on_success: {
6129
- # },
6130
- # },
6131
- # function_arn: "arn:aws:lambda:us-east-2:123456789012:function:my-function:$LATEST",
6132
- # last_modified: Time.parse(1573687896.493),
6133
- # maximum_event_age_in_seconds: 3600,
6134
- # maximum_retry_attempts: 0,
6135
- # }
6136
- #
6137
4959
  # @example Request syntax with placeholder values
6138
4960
  #
6139
4961
  # resp = client.update_function_event_invoke_config({
@@ -6182,7 +5004,7 @@ module Aws::Lambda
6182
5004
  params: params,
6183
5005
  config: config)
6184
5006
  context[:gem_name] = 'aws-sdk-lambda'
6185
- context[:gem_version] = '1.58.0'
5007
+ context[:gem_version] = '1.63.0'
6186
5008
  Seahorse::Client::Request.new(handlers, context)
6187
5009
  end
6188
5010