/**
 * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 *
 * This file is licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License. A copy of
 * the License is located at
 *
 * http://aws.amazon.com/apache2.0/
 *
 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 *
 */

// snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
// snippet-sourcedescription:[DynamoDBAsyncGetItem.java demonstrates how to get an item by using the DynamoDbAsyncClient object]
// snippet-service:[dynamodb]
// snippet-keyword:[Java]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
// snippet-sourcedate:[2019-11-19]
// snippet-sourceauthor:[AWS-scmacdon]

package com.example.lambda;

import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.lambda.LambdaClient;
import software.amazon.awssdk.services.lambda.model.ListFunctionsResponse;
import software.amazon.awssdk.services.lambda.model.FunctionConfiguration;
import software.amazon.awssdk.services.lambda.model.ServiceException;
import java.util.Iterator;
import java.util.List;

public class ListLambdaFunctions {

    public static void main(String[] args) {

        ListFunctionsResponse functionResult = null ;
        try
        {
            Region region = Region.US_WEST_2;
            LambdaClient awsLambda = LambdaClient.builder().region(region).build();

            //Get a list of all functions
            functionResult = awsLambda.listFunctions();

            List<FunctionConfiguration> list = functionResult.functions();

            for (Iterator iter = list.iterator(); iter.hasNext(); ) {
                FunctionConfiguration config = (FunctionConfiguration)iter.next();
                System.out.println("The function name is "+config.functionName());
            }
        }
        catch(ServiceException e)
        {
            e.getStackTrace();
        }
    }
}

@@ -668,28 +668,27 @@
 on:%5B
-DynamoDBAsyncGetItem
+ListLambdaFunctions
 .jav
@@ -713,19 +713,49 @@
  to 
-get an item
+list all functions speciic to the account
  by 
@@ -768,21 +768,14 @@
 the 
-DynamoDbAsync
+Lambda
 Clie
@@ -809,16 +809,14 @@
 ce:%5B
-dynamodb
+Lambda
 %5D%0A//
@@ -870,16 +870,14 @@
 zon 
-DynamoDB
+Lambda
 %5D%0A//
@@ -1023,36 +1023,141 @@
 n%5D%0A%0A
-package com.example.lambda;%0A
+// snippet-start:%5Blambda.java2.ListLambdaFunctions.complete%5D%0Apackage com.example.lambda;%0A%0A// snippet-start:%5Blambda.java2.list.import%5D
 %0Aimp
@@ -1529,16 +1529,59 @@
 l.List;%0A
+// snippet-end:%5Blambda.java2.list.import%5D%0A%0A
 %0Apublic 
@@ -1651,24 +1651,74 @@
 %5B%5D args) %7B%0A%0A
+        // snippet-start:%5Blambda.java2.list.main%5D%0A
         List
@@ -2440,8 +2440,115 @@
     
-%7D%0A%7D
+    // snippet-end:%5Blambda.java2.list.main%5D%0A    %7D%0A%7D%0A// snippet-end:%5Blambda.java2.ListLambdaFunctions.complete%5D
 %0A

Update ListLambdaFunctions.java