Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws-samples/serverless-samples
/ functions
Functions
926 in github.com/aws-samples/serverless-samples
⨍
Functions
926
◇
Types & classes
95
↳
Endpoints
45
↓ 107 callers
Method
log
(String message)
apigw-vtl-editor/vtl-processor/src/test/java/com/vtl/processor/TestContext.java:66
↓ 35 callers
Function
request
(ctx)
serverless-graphql-api/javascript-appsync-sam-js/src/resolvers/get_booking_function.js:3
↓ 34 callers
Function
getEvaluationResponse
(templateFileName, context)
serverless-graphql-api/javascript-appsync-sam-vtl/__tests__/unit/resolver.test.js:71
↓ 34 callers
Function
getEvaluationResponse
(codeFileName, context, functionType)
serverless-graphql-api/javascript-appsync-sam-js/__tests__/unit/resolver.test.js:71
↓ 31 callers
Method
json
Evaluates a JSONPath expression and returns the results as a JSON string @param jsonPath The JSONPath expression to evaluate @return The result as a J
apigw-vtl-editor/vtl-processor/src/main/java/com/vtl/processor/InputWrapper.java:77
↓ 22 callers
Method
build
Generates the policy document based on the internal lists of allowed and denied conditions. This will generate a policy with two main statemen
queue-based-ingestion/python-cdk/src/api/authorizer.py:252
↓ 22 callers
Method
getLogger
()
apigw-vtl-editor/vtl-processor/src/test/java/com/vtl/processor/TestContext.java:63
↓ 18 callers
Method
getKey
@return the key
das-lambda-java-sam/das_consumer_sam_project/database_activity_streams_event_consumer_function/src/main/java/com/amazonaws/services/lambda/samples/events/das/models/aurorastreams/PostgresActivity.java:101
↓ 16 callers
Method
handler
( event: APIGatewayProxyEvent, _context: Context )
apigw-lambda-powertools-openapi-cdk/lib/lambda/ordersCRUD/index.ts:201
↓ 12 callers
Method
allow_method
Adds an API Gateway method (Http verb + Resource path) to the list of allowed methods for the policy
serverless-rest-api/python-http-cdk/src/api/authorizer.py:234
↓ 12 callers
Method
allow_method
Adds an API Gateway method (Http verb + Resource path) to the list of allowed methods for the policy
serverless-rest-api/python-rest-sam/src/api/authorizer.py:234
↓ 12 callers
Method
allow_method
Adds an API Gateway method (Http verb + Resource path) to the list of allowed methods for the policy
serverless-rest-api/python-http-sam/src/api/authorizer.py:234
↓ 12 callers
Method
allow_method
Adds an API Gateway method (Http verb + Resource path) to the list of allowed methods for the policy
serverless-rest-api/python-rest-terraform/application/src/api/authorizer.py:234
↓ 12 callers
Method
toString
()
das-lambda-java-sam/das_consumer_sam_project/database_activity_streams_event_consumer_function/src/main/java/com/amazonaws/services/lambda/samples/events/das/models/aurorastreams/PostgresActivity.java:130
↓ 10 callers
Function
_response
(status_code, body)
apigw-log-analytic/monetization/src/manage_pricing.py:79
↓ 10 callers
Function
handler
(event)
apigw-eventbridge-schema-validation/lambda/index.mjs:120
↓ 10 callers
Method
runServiceIntegrationTest
Helper method to run a service integration test.
apigw-vtl-editor/vtl-processor/src/test/java/com/vtl/processor/IndividualScenarioTest.java:268
↓ 9 callers
Function
getCustomerIdFromAuthInfo
({ event, }: { event: APIGatewayProxyEvent; })
apigw-lambda-powertools-openapi-cdk/lib/ordersCommonCode/customer.ts:12
↓ 8 callers
Method
build
Generates the policy document based on the internal lists of allowed and denied conditions. This will generate a policy with two main statemen
serverless-rest-api/python-http-cdk/src/api/authorizer.py:256
↓ 7 callers
Method
equals
(Object obj)
das-lambda-java-sam/das_consumer_sam_project/database_activity_streams_event_consumer_function/src/main/java/com/amazonaws/services/lambda/samples/events/das/models/aurorastreams/PostgresActivity.java:117
↓ 7 callers
Function
setup_test_environment
()
serverless-rest-api/python-http-cdk/tests/unit/test_bookings_handler.py:21
↓ 7 callers
Function
setup_test_environment
()
serverless-rest-api/python-rest-sam/tests/unit/test_bookings_handler.py:21
↓ 7 callers
Function
setup_test_environment
()
serverless-rest-api/python-http-sam/tests/unit/test_bookings_handler.py:21
↓ 7 callers
Function
setup_test_environment
()
serverless-rest-api/python-rest-terraform/application/tests/unit/test_bookings_handler.py:21
↓ 6 callers
Method
_add_method
Adds a method to the internal lists of allowed or denied methods. Each object in the internal list contains a resource ARN and a condition sta
serverless-rest-api/python-http-cdk/src/api/authorizer.py:162
↓ 6 callers
Method
_add_method
Adds a method to the internal lists of allowed or denied methods. Each object in the internal list contains a resource ARN and a condition sta
serverless-rest-api/python-rest-sam/src/api/authorizer.py:162
↓ 6 callers
Method
_add_method
Adds a method to the internal lists of allowed or denied methods. Each object in the internal list contains a resource ARN and a condition sta
serverless-rest-api/python-http-sam/src/api/authorizer.py:162
↓ 6 callers
Method
_add_method
Adds a method to the internal lists of allowed or denied methods. Each object in the internal list contains a resource ARN and a condition sta
serverless-rest-api/python-rest-terraform/application/src/api/authorizer.py:162
↓ 6 callers
Method
_add_method
Adds a method to the internal lists of allowed or denied methods. Each object in the internal list contains a resource ARN and a condition sta
queue-based-ingestion/python-cdk/src/api/authorizer.py:158
↓ 6 callers
Method
_add_method
Adds a method to the internal lists of allowed or denied methods. Each object in the internal list contains a resource ARN and a condition sta
queue-based-ingestion/python-sam/src/api/authorizer.py:156
↓ 6 callers
Method
close
()
serverless-graphql-api/javascript-appsync-sam-vtl/__tests__/integration/api.test.js:88
↓ 6 callers
Method
close
()
serverless-graphql-api/javascript-appsync-sam-js/__tests__/integration/api.test.js:88
↓ 6 callers
Function
getOrder
({ customerId, orderId, }: { customerId: string; orderId: string; })
apigw-lambda-powertools-openapi-cdk/lib/lambda/ordersCRUD/ddb.ts:78
↓ 6 callers
Function
searchOrders
({ orderSearchCriteria, customerId, }: { orderSearchCriteria: OrderSearchCriteria; customerId: string;
apigw-lambda-powertools-openapi-cdk/lib/lambda/ordersSearch/ddb.ts:131
↓ 6 callers
Function
setup_test_environment
()
serverless-rest-api/python-http-cdk/tests/unit/test_locations_handler.py:23
↓ 6 callers
Function
setup_test_environment
()
serverless-rest-api/python-http-cdk/tests/unit/test_resources_handler.py:23
↓ 6 callers
Function
setup_test_environment
()
serverless-rest-api/python-rest-sam/tests/unit/test_locations_handler.py:23
↓ 6 callers
Function
setup_test_environment
()
serverless-rest-api/python-rest-sam/tests/unit/test_resources_handler.py:23
↓ 6 callers
Function
setup_test_environment
()
serverless-rest-api/python-http-sam/tests/unit/test_locations_handler.py:23
↓ 6 callers
Function
setup_test_environment
()
serverless-rest-api/python-http-sam/tests/unit/test_resources_handler.py:23
↓ 6 callers
Function
setup_test_environment
()
serverless-rest-api/python-rest-terraform/application/tests/unit/test_locations_handler.py:22
↓ 6 callers
Function
setup_test_environment
()
serverless-rest-api/python-rest-terraform/application/tests/unit/test_resources_handler.py:23
↓ 6 callers
Function
writeOrder
({ order, update, }: { order: Order; update: boolean; })
apigw-lambda-powertools-openapi-cdk/lib/lambda/ordersCRUD/ddb.ts:36
↓ 5 callers
Method
allow_method
Adds an API Gateway method (Http verb + Resource path) to the list of allowed methods for the policy
queue-based-ingestion/python-cdk/src/api/authorizer.py:230
↓ 5 callers
Function
convertDdbToOrder
({ ddbItem, ddbOrderItems, }: { ddbItem: DdbOrder; ddbOrderItems: DdbOrderItem[]; })
apigw-lambda-powertools-openapi-cdk/lib/ordersCommonCode/order.ts:158
↓ 5 callers
Method
runScenarioTest
Helper method to run a scenario test.
apigw-vtl-editor/vtl-processor/src/test/java/com/vtl/processor/IndividualScenarioTest.java:248
↓ 4 callers
Method
close
(self)
serverless-graphql-api/python-appsync-sam-vtl/tests/integration/test_api.py:97
↓ 4 callers
Function
convertDdbToOrderItem
({ ddbOrderItem, }: { ddbOrderItem: DdbOrderItem; })
apigw-lambda-powertools-openapi-cdk/lib/ordersCommonCode/order.ts:132
↓ 4 callers
Function
convertOrderToDdb
({ order }: { order: Order })
apigw-lambda-powertools-openapi-cdk/lib/ordersCommonCode/order.ts:80
↓ 4 callers
Function
deleteOrder
({ customerId, orderId, }: { customerId: string; orderId: string; })
apigw-lambda-powertools-openapi-cdk/lib/lambda/ordersCRUD/ddb.ts:165
↓ 4 callers
Method
getContextVariables
()
apigw-vtl-editor/vtl-processor/src/main/java/com/vtl/processor/ContextVariableProvider.java:76
↓ 4 callers
Method
getDbUserName
@return the dbUserName
das-lambda-java-sam/das_consumer_sam_project/database_activity_streams_event_consumer_function/src/main/java/com/amazonaws/services/lambda/samples/events/das/models/aurorastreams/PostgresActivityEvent.java:220
↓ 4 callers
Function
getDdbOrderItems
({ customerId, orderId, }: { customerId: string; orderId: string; })
apigw-lambda-powertools-openapi-cdk/lib/lambda/ordersCRUD/ddb.ts:132
↓ 4 callers
Function
updateOrder
({ orderUpdate, orderId, customerId, }: { orderUpdate: OrderUpdate; orderId: string; customerId: s
apigw-lambda-powertools-openapi-cdk/lib/lambda/ordersCRUD/ddb.ts:210
↓ 3 callers
Method
#onError
(error)
serverless-graphql-api/javascript-appsync-sam-vtl/__tests__/integration/api.test.js:42
↓ 3 callers
Method
#onError
(error)
serverless-graphql-api/javascript-appsync-sam-js/__tests__/integration/api.test.js:42
↓ 3 callers
Function
_response
(status_code, body)
apigw-log-analytic/monetization/src/get_reports.py:81
↓ 3 callers
Method
allow_method
Adds an API Gateway method (Http verb + Resource path) to the list of allowed methods for the policy
queue-based-ingestion/python-sam/src/api/authorizer.py:228
↓ 3 callers
Function
setup_test_environment
()
queue-based-ingestion/python-cdk/tests/unit/test_get_job_status_handler.py:25
↓ 3 callers
Function
setup_test_environment
()
queue-based-ingestion/python-sam/tests/unit/test_get_job_status_handler.py:24
↓ 3 callers
Function
store_mock_job_record
(mock_job_url_parameter, mock_job_status)
queue-based-ingestion/python-cdk/tests/unit/test_get_job_status_handler.py:114
↓ 3 callers
Function
store_mock_job_record
(mock_job_url_parameter, mock_job_status)
queue-based-ingestion/python-sam/tests/unit/test_get_job_status_handler.py:103
↓ 2 callers
Function
_decimals
(obj)
apigw-log-analytic/monetization/src/get_reports.py:89
↓ 2 callers
Function
_decimals
(obj)
apigw-log-analytic/monetization/src/manage_pricing.py:87
↓ 2 callers
Method
_get_empty_statement
Returns an empty statement object prepopulated with the correct action and the desired effect.
serverless-rest-api/python-http-cdk/src/api/authorizer.py:194
↓ 2 callers
Method
_get_empty_statement
Returns an empty statement object prepopulated with the correct action and the desired effect.
serverless-rest-api/python-rest-sam/src/api/authorizer.py:194
↓ 2 callers
Method
_get_empty_statement
Returns an empty statement object prepopulated with the correct action and the desired effect.
serverless-rest-api/python-http-sam/src/api/authorizer.py:194
↓ 2 callers
Method
_get_empty_statement
Returns an empty statement object prepopulated with the correct action and the desired effect.
serverless-rest-api/python-rest-terraform/application/src/api/authorizer.py:194
↓ 2 callers
Method
_get_empty_statement
Returns an empty statement object prepopulated with the correct action and the desired effect.
queue-based-ingestion/python-cdk/src/api/authorizer.py:190
↓ 2 callers
Method
_get_empty_statement
Returns an empty statement object prepopulated with the correct action and the desired effect.
queue-based-ingestion/python-sam/src/api/authorizer.py:188
↓ 2 callers
Method
_get_statement_for_effect
This function loops over an array of objects containing a resourceArn and conditions statement and generates the array of statements for the p
serverless-rest-api/python-http-cdk/src/api/authorizer.py:205
↓ 2 callers
Method
_get_statement_for_effect
This function loops over an array of objects containing a resourceArn and conditions statement and generates the array of statements for the p
serverless-rest-api/python-rest-sam/src/api/authorizer.py:205
↓ 2 callers
Method
_get_statement_for_effect
This function loops over an array of objects containing a resourceArn and conditions statement and generates the array of statements for the p
serverless-rest-api/python-http-sam/src/api/authorizer.py:205
↓ 2 callers
Method
_get_statement_for_effect
This function loops over an array of objects containing a resourceArn and conditions statement and generates the array of statements for the p
serverless-rest-api/python-rest-terraform/application/src/api/authorizer.py:205
↓ 2 callers
Method
_get_statement_for_effect
This function loops over an array of objects containing a resourceArn and conditions statement and generates the array of statements for the p
queue-based-ingestion/python-cdk/src/api/authorizer.py:201
↓ 2 callers
Method
_get_statement_for_effect
This function loops over an array of objects containing a resourceArn and conditions statement and generates the array of statements for the p
queue-based-ingestion/python-sam/src/api/authorizer.py:199
↓ 2 callers
Method
convertJsonNodeToObject
Converts a JsonNode to a Java object
apigw-vtl-editor/vtl-processor/src/main/java/com/vtl/processor/InputUtility.java:102
↓ 2 callers
Function
copyTemplateAsString
(template: string, type: 'request' | 'response')
apigw-vtl-editor/vtl-template-browser-testing/src/components/ApiGatewayHttpSimulator.tsx:347
↓ 2 callers
Method
decrypt
@param decoded - The encrypted byte array containing the Aurora DAS message @param decodedDataKey - The encrypted key use
das-lambda-java-sam/das_consumer_sam_project/database_activity_streams_event_consumer_function/src/main/java/com/amazonaws/services/lambda/samples/events/das/AuroraStreamsProcessor.java:160
↓ 2 callers
Function
downloadAndUpdateSchema
* Downloads latest schema version from the registry and updates API Gateway model * @param latestVersion * @returns {Promise<void>}
apigw-eventbridge-schema-validation/cicd-driven-solution/src/updateSchema.mjs:218
↓ 2 callers
Method
enhanceErrorMessage
Helper method to enhance error messages with more context @return Map containing detailed error information
apigw-vtl-editor/vtl-processor/src/main/java/com/vtl/processor/ApiGatewaySimulator.java:192
↓ 2 callers
Method
getBody
Returns the body as a string @return The request body as a string
apigw-vtl-editor/vtl-processor/src/main/java/com/vtl/processor/InputWrapper.java:60
↓ 2 callers
Method
getClusterId
@return the clusterId
das-lambda-java-sam/das_consumer_sam_project/database_activity_streams_event_consumer_function/src/main/java/com/amazonaws/services/lambda/samples/events/das/models/aurorastreams/PostgresActivityRecords.java:71
↓ 2 callers
Function
getEmptyStatement
* Returns an empty statement object prepopulated with the correct action and the * desired effect. * * @method getEmptyStatement * @param
serverless-rest-api/javascript-http-sam/src/api/authorizer.js:160
↓ 2 callers
Function
getEmptyStatement
* Returns an empty statement object prepopulated with the correct action and the * desired effect. * * @method getEmptyStatement * @param
fargate-rest-api/javascript-rest-nlb-ecs-sam/src/api/authorizer/authorizer.js:160
↓ 2 callers
Function
getEmptyStatement
* Returns an empty statement object prepopulated with the correct action and the * desired effect. * * @method getEmptyStatement * @param
fargate-private-api/javascript-private-nlb-ecs-sam/src/api/authorizer/authorizer.js:160
↓ 2 callers
Method
getInstanceId
@return the instanceId
das-lambda-java-sam/das_consumer_sam_project/database_activity_streams_event_consumer_function/src/main/java/com/amazonaws/services/lambda/samples/events/das/models/aurorastreams/PostgresActivityRecords.java:85
↓ 2 callers
Method
getStageVariables
()
apigw-vtl-editor/vtl-processor/src/main/java/com/vtl/processor/ContextVariableProvider.java:84
↓ 2 callers
Method
getType
@return the type
das-lambda-java-sam/das_consumer_sam_project/database_activity_streams_event_consumer_function/src/main/java/com/amazonaws/services/lambda/samples/events/das/models/aurorastreams/PostgresActivityRecords.java:57
↓ 2 callers
Method
getType
@return the type
das-lambda-java-sam/das_consumer_sam_project/database_activity_streams_event_consumer_function/src/main/java/com/amazonaws/services/lambda/samples/events/das/models/aurorastreams/PostgresActivity.java:59
↓ 2 callers
Function
get_stack_outputs
(stack_name)
serverless-rest-api/python-http-cdk/tests/integration/conftest.py:12
↓ 2 callers
Function
get_stack_outputs
(stack_name)
serverless-rest-api/python-rest-sam/tests/integration/conftest.py:14
↓ 2 callers
Function
get_stack_outputs
(stack_name)
serverless-rest-api/python-http-sam/tests/integration/conftest.py:13
↓ 2 callers
Function
get_stack_outputs
(stack_name)
serverless-graphql-api/python-appsync-sam-vtl/tests/integration/conftest.py:13
↓ 2 callers
Function
get_stack_outputs
(stack_name)
queue-based-ingestion/python-cdk/tests/integration/conftest.py:12
↓ 2 callers
Function
get_stack_outputs
(stack_name)
queue-based-ingestion/python-sam/tests/integration/conftest.py:13
↓ 2 callers
Function
is_admin
(claims)
owasp-api-security-controls-demo/owasp-api-security-controls-demo/order/src/index.py:95
↓ 2 callers
Function
parseErrorMessage
(error: string, errorDetails?: any)
apigw-vtl-editor/vtl-template-browser-testing/src/components/ApiGatewayHttpSimulator.tsx:199
↓ 2 callers
Method
parseHttpRequest
Parse an HTTP request string into its components @param httpRequest The HTTP request string @return A JsonNode containing the parsed components
apigw-vtl-editor/vtl-processor/src/main/java/com/vtl/processor/HttpFormatParser.java:25
↓ 2 callers
Method
path
Mimics the $input.path('$') functionality in API Gateway @param path The JSON path expression @return The value at the specified path
apigw-vtl-editor/vtl-processor/src/main/java/com/vtl/processor/InputUtility.java:30
next →
1–100 of 926, ranked by callers