Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awsdocs/aws-doc-sdk-examples
/ functions
Functions
13,204 in github.com/awsdocs/aws-doc-sdk-examples
⨍
Functions
13,204
◇
Types & classes
2,744
↳
Endpoints
108
↓ 4 callers
Function
update_knowledge_base
Updates an existing knowledge base. Args: bedrock_agent_client: The Boto3 Bedrock Agent client. knowledge_base_id (str): The
python/example_code/bedrock-agent/knowledge_bases/knowledge_base.py:121
↓ 4 callers
Method
uploadFile
(S3Client s3Client, String bucketName, String key, File file)
javav2/example_code/s3/src/main/java/com/example/s3/util/PresignUrlUtils.java:39
↓ 4 callers
Method
upload_issue_data
Uploads issue data to an Amazon S3 bucket, either for training or for input. The data is first put into the format expected by Compre
python/example_code/comprehend/comprehend_classifier_demo.py:168
↓ 4 callers
Function
useItemTrackerAction
()
resources/clients/react/elwing/src/plugins/item-tracker/ItemTrackerStore.ts:64
↓ 4 callers
Function
validate
(email)
javav2/usecases/creating_sns_sample_app/src/main/resources/public/js/contact_me.js:96
↓ 4 callers
Function
verifyAccount
()
javascriptv3/example_code/support/scenarios/basic.js:29
↓ 4 callers
Method
wait
Waits for a specified number of seconds, while also displaying an animated spinner. :param seconds: The number of seconds to
python/example_code/glue/scenario_getting_started_crawlers_and_jobs.py:59
↓ 4 callers
Method
waitForClusterStatus
(String clusterId, String desiredStatus)
javav2/example_code/neptune/src/main/java/com/example/neptune/scenerio/NeptuneActions.java:218
↓ 4 callers
Method
wait_until_identity_exists
Waits until an identity exists. The waiter polls Amazon SES until the identity has been successfully verified or until it exceeds its
python/example_code/ses/ses_identities.py:74
↓ 3 callers
Method
AddMovie
snippet-end:[gov2.dynamodb.PartiQLRunner.struct] snippet-start:[gov2.dynamodb.ExecuteStatement.Insert] AddMovie runs a PartiQL INSERT statement to add
gov2/dynamodb/actions/partiql.go:33
↓ 3 callers
Method
AddMovieBatch
snippet-end:[gov2.dynamodb.ExecuteStatement.Delete] snippet-start:[gov2.dynamodb.BatchExecuteStatement.Insert] AddMovieBatch runs a batch of PartiQL I
gov2/dynamodb/actions/partiql.go:168
↓ 3 callers
Function
AddTableItem
snippet-end:[dynamodb.go.create_new_item.struct] AddTableItem adds an item to an Amazon DynamoDB table Inputs: sess is the current session, which prov
go/dynamodb/CreateTableItem/CreateTableItem.go:40
↓ 3 callers
Function
AddTableItem
AddTableItem adds an item to an Amazon DynamoDB table Inputs: sess is the current session, which provides configuration for the SDK's service clients
go/dynamodb/LoadTableItems/LoadTableItems.go:69
↓ 3 callers
Method
AssumeRole
(input *sts.AssumeRoleInput)
go/sts/TakeRole/TakeRole_test.go:21
↓ 3 callers
Method
BucketExists
snippet-end:[gov2.s3.ListBuckets] snippet-start:[gov2.s3.HeadBucket] BucketExists checks whether a bucket exists in the current account.
gov2/s3/actions/bucket_basics.go:67
↓ 3 callers
Method
CreateDBClusterSnapshot
(input *rds.CreateDBClusterSnapshotInput)
go/rds/CreateClusterSnapshot/CreateClusterSnapshot_test.go:20
↓ 3 callers
Method
CreateDBSnapshot
(input *rds.CreateDBSnapshotInput)
go/rds/CreateInstanceSnapshot/CreateInstanceSnapshot_test.go:20
↓ 3 callers
Method
CreateDistribution
(ctx context.Context, bucketName, certificateSSLArn, domain string)
gov2/cloudfront/CreateDistribution/CreateDistribution.go:25
↓ 3 callers
Function
CreateStack
CreateStack creates a CloudFormation stack
go/example_code/cloudformation/CfnCrudOps.go:18
↓ 3 callers
Method
CreateTable
(input *dynamodb.CreateTableInput)
go/dynamodb/CreateTable/CreateTable_test.go:27
↓ 3 callers
Method
DeleteBucket
snippet-end:[gov2.s3.DeleteObjects] snippet-start:[gov2.s3.DeleteBucket] DeleteBucket deletes a bucket. The bucket must be empty or an error is return
gov2/s3/actions/bucket_basics.go:390
↓ 3 callers
Method
DeleteMovie
snippet-end:[gov2.dynamodb.ExecuteStatement.Update] snippet-start:[gov2.dynamodb.ExecuteStatement.Delete] DeleteMovie runs a PartiQL DELETE statement
gov2/dynamodb/actions/partiql.go:145
↓ 3 callers
Function
DeleteStack
DeleteStack deletes the specified stack
go/example_code/cloudformation/CfnCrudOps.go:64
↓ 3 callers
Method
DescribeUsers
(input *workdocs.DescribeUsersInput)
go/workdocs/ShowUsers/ShowUsers_test.go:21
↓ 3 callers
Method
EnableObjectLockOnBucket
snippet-end:[gov2.workflows.s3.ObjectLock.PutObjectLockConfiguration.ModifyDefaultBucketRetention] snippet-start:[gov2.workflows.s3.ObjectLock.PubObje
gov2/workflows/s3_object_lock/actions/s3_actions.go:237
↓ 3 callers
Method
Get
(url string)
gov2/s3/scenarios/scenario_presigning.go:30
↓ 3 callers
Function
GetAllBuckets
snippet-end:[s3.go.list_buckets.imports] GetAllBuckets retrieves a list of all buckets. Inputs: sess is the current session, which provides configur
go/s3/ListBuckets/ListBuckets.go:25
↓ 3 callers
Function
GetBucket
(svc s3iface.S3API, bucket *string)
go/s3/CRUD/S3CrudOps.go:51
↓ 3 callers
Method
GetDbCluster
snippet-end:[gov2.aurora.ModifyDBClusterParameterGroup] snippet-start:[gov2.aurora.DescribeDBClusters] GetDbCluster gets data about an Aurora DB clust
gov2/aurora/actions/clusters.go:139
↓ 3 callers
Method
GetInstance
snippet-end:[gov2.aurora.CreateDBInstance] snippet-start:[gov2.aurora.DescribeDBInstances] GetInstance gets data about a DB instance.
gov2/aurora/actions/clusters.go:268
↓ 3 callers
Method
GetInstance
snippet-end:[gov2.rds.CreateDBInstance] snippet-start:[gov2.rds.DescribeDBInstances] GetInstance gets data about a DB instance.
gov2/rds/actions/instances.go:207
↓ 3 callers
Function
GetItems
snippet-end:[dynamodb.go.add_items.struct] GetItems creates a list of table items from a JSON file
go/dynamodb/LoadTableItems/LoadTableItems.go:31
↓ 3 callers
Method
GetKnownUsers
(ctx context.Context, tableName string)
gov2/workflows/user_pools_and_lambda_triggers/workflows/scenario_common.go:27
↓ 3 callers
Function
GetMovieName
GetMovieName gets the name of the movie from an attribute value
go/dynamodb/LoadTableItems/LoadTableItems.go:47
↓ 3 callers
Method
GetObjectLegalHold
snippet-end:[gov2.workflows.s3.ObjectLock.CreateBucket] snippet-start:[gov2.workflows.s3.ObjectLock.GetObjectLegalHold] GetObjectLegalHold retrieves t
gov2/workflows/s3_object_lock/actions/s3_actions.go:75
↓ 3 callers
Function
GetObjects
snippet-end:[s3.go.list_objects.imports] GetObjects retrieves the objects in an Amazon S3 bucket Inputs: sess is the current session, which provides
go/s3/ListObjects/ListObjects.go:27
↓ 3 callers
Function
GetQueues
snippet-end:[sqs.go.list_queues.imports] GetQueues returns a list of queue names
go/sqs/ListQueues/ListQueues.go:17
↓ 3 callers
Method
GetStackOutputs
(ctx context.Context, stackName string)
gov2/workflows/user_pools_and_lambda_triggers/workflows/scenario_common.go:25
↓ 3 callers
Function
GetStackSummaries
GetStackSummaries gets a list of summary information about all stacks or those with status
go/example_code/cloudformation/CfnCrudOps.go:43
↓ 3 callers
Method
GetUser
snippet-end:[gov2.iam.ListUsers] snippet-start:[gov2.iam.GetUser] GetUser gets data about a user.
gov2/iam/actions/users.go:50
↓ 3 callers
Method
ListMyBuckets
()
java/example_code/s3/src/main/java/com/mycompany/app/App.java:81
↓ 3 callers
Method
ListObjectVersions
snippet-end:[gov2.workflows.s3.ObjectLock.UploadObject] snippet-start:[gov2.workflows.s3.ObjectLock.ListObjectVersions] ListObjectVersions lists all v
gov2/workflows/s3_object_lock/actions/s3_actions.go:341
↓ 3 callers
Method
ListRecentLogEvents
(ctx context.Context, functionName string)
gov2/workflows/user_pools_and_lambda_triggers/workflows/scenario_common.go:29
↓ 3 callers
Function
MakeBucket
snippet-end:[s3.go.crud_ops.imports] Functions to perform CRUD (create, read, update, delete) operations in Amazon S3 MakeBucket creates an S3 bucket
go/s3/CRUD/S3CrudOps.go:24
↓ 3 callers
Function
MakeTable
snippet-end:[dynamodb.go.create_new_table.imports] MakeTable creates an Amazon DynamoDB table Inputs: sess is the current session, which provides co
go/dynamodb/CreateTable/CreateTable.go:32
↓ 3 callers
Function
PutObjectACL
snippet-end:[s3.go.put_object_acl.imports] PutObjectACL gives the person with EMAIL address read access to BUCKET OBJECT
go/s3/PutObjectAcl/PutObjectAcl.go:20
↓ 3 callers
Method
PutObjectLegalHold
snippet-end:[gov2.workflows.s3.ObjectLock.GetObjectRetention] snippet-start:[gov2.workflows.s3.ObjectLock.PutObjectLegalHold] PutObjectLegalHold sets
gov2/workflows/s3_object_lock/actions/s3_actions.go:176
↓ 3 callers
Function
RemoveBucket
RemoveBucket deletes an S3 bucket
go/s3/CRUD/S3CrudOps.go:109
↓ 3 callers
Function
RestoreItem
snippet-end:[s3.go.restore_object.imports] RestoreItem restores an item to a bucket for a number of days Inputs: sess is the current session, which
go/s3/RestoreObject/RestoreObject.go:29
↓ 3 callers
Method
Run
Run runs the RedshiftBasics interactive example that shows you how to use Amazon Redshift and how to interact with its common endpoints. 0. Retrieve
gov2/redshift/scenarios/redshift_basics.go:115
↓ 3 callers
Method
Run
Run runs the S3 Object Lock scenario.
gov2/workflows/s3_object_lock/workflows/s3_object_lock.go:351
↓ 3 callers
Method
Run
Run runs the scenario.
gov2/workflows/user_pools_and_lambda_triggers/workflows/scenario_auto_confirm_trusted_accounts.go:108
↓ 3 callers
Method
Run
Run runs the scenario.
gov2/workflows/user_pools_and_lambda_triggers/workflows/scenario_activity_log.go:128
↓ 3 callers
Method
Run
Run runs the interactive scenario.
gov2/aurora/scenarios/get_started_clusters.go:57
↓ 3 callers
Method
Run
Run runs the interactive scenario.
gov2/lambda/scenarios/scenario_get_started_functions.go:60
↓ 3 callers
Method
Run
Run runs the interactive scenario.
gov2/rds/scenarios/get_started_instances.go:56
↓ 3 callers
Method
Subscribe
(input *sns.SubscribeInput)
go/sns/SubscribeTopic/SubscribeTopic_test.go:20
↓ 3 callers
Function
TableExists
(raiseErr *testtools.StubError, t *testing.T)
gov2/dynamodb/actions/table_basics_test.go:41
↓ 3 callers
Function
UTF8ToString
(ptr,maxBytesToRead)
javascriptv3/example_code/medical-imaging/scenarios/health-image-sets/pixel-data-verification/openjphjs/openjphjs.js:1
↓ 3 callers
Function
UpdateBucket
UpdateBucket changes the S3 bucket to give all users read permission
go/s3/CRUD/S3CrudOps.go:88
↓ 3 callers
Method
UpdateMovie
snippet-end:[gov2.dynamodb.ExecuteStatement.Select.Projected] snippet-start:[gov2.dynamodb.ExecuteStatement.Update] UpdateMovie runs a PartiQL UPDATE
gov2/dynamodb/actions/partiql.go:123
↓ 3 callers
Method
UploadObject
snippet-end:[gov2.workflows.s3.ObjectLock.PutObjectRetention] snippet-start:[gov2.workflows.s3.ObjectLock.UploadObject] UploadObject uses the S3 uploa
gov2/workflows/s3_object_lock/actions/s3_actions.go:307
↓ 3 callers
Method
_add_role
(response, role_name, role_arn=None)
python/test_tools/iam_stubber.py:45
↓ 3 callers
Method
_add_table_schema
Build a table schema from its parts.
python/test_tools/dynamodb_stubber.py:49
↓ 3 callers
Method
_display_ssh_info
Displays SSH connection information for the user to connect to the EC2 instance. Handles the case where the instance does or does not
python/example_code/ec2/scenario_get_started_instances.py:189
↓ 3 callers
Method
_extract_tags
Extracts tags from a template as a set of unique values. :param subject: The subject of the email. :param text: The text ver
python/example_code/ses/ses_templates.py:35
↓ 3 callers
Method
_make_application_detail
( name, version_id, arn="test-app-arn", status="STARTING", env="SQL-1_0" )
python/test_tools/kinesis_analytics_v2_stubber.py:33
↓ 3 callers
Method
_make_policy_summary
(policy)
python/test_tools/organizations_stubber.py:38
↓ 3 callers
Method
_make_streaming_body
(self, data_str: str)
python/test_tools/neptune_data_stubber.py:21
↓ 3 callers
Method
_respond
(self, status_code, payload)
scenarios/features/resilient_service/resources/server.py:36
↓ 3 callers
Method
_run_statement
Runs a SQL statement and associated parameters using the Amazon RDS Data Service. :param sql: The SQL statement to run. :par
python/cross_service/aurora_item_tracker/storage.py:47
↓ 3 callers
Method
_wait_for_agent_status
(self, agent_id, status)
python/example_code/bedrock-agent/scenario_get_started_with_agents.py:354
↓ 3 callers
Method
abortIncompleteMultipartUploadsFromList
Aborts all incomplete multipart uploads from the specified S3 bucket. @param bucketName the name of the S3 bucket
javav2/example_code/s3/src/main/java/com/example/s3/AbortMultipartUploadExamples.java:86
↓ 3 callers
Method
addCaption
(WritableSheet sheet, int column, int row, String s)
javav2/usecases/creating_photo_analyzer_async/src/main/java/com/example/photo/WriteExcel.java:113
↓ 3 callers
Method
addCaption
(WritableSheet sheet, int column, int row, String s)
javav2/usecases/creating_photo_analyzer_app/src/main/java/com/example/photo/WriteExcel.java:114
↓ 3 callers
Method
addEncryption
(String queueName, String kmsMasterKeyAlias)
javav2/example_code/sqs/src/main/java/com/example/sqs/SSEncryptionExample.java:65
↓ 3 callers
Method
addLabel
(WritableSheet sheet, int column, int row, String s)
javav2/usecases/creating_photo_analyzer_async/src/main/java/com/example/photo/WriteExcel.java:120
↓ 3 callers
Method
addLabel
(WritableSheet sheet, int column, int row, String s)
javav2/usecases/creating_photo_analyzer_app/src/main/java/com/example/photo/WriteExcel.java:121
↓ 3 callers
Method
addTags
(String queueUrl)
javav2/example_code/sqs/src/main/java/com/example/sqs/TagExamples.java:63
↓ 3 callers
Method
add_communication
Add a communication with an attachment set to the case. :param case_id: The ID of the case for the communication. :param att
python/example_code/support/get_started_support_cases.py:149
↓ 3 callers
Method
add_connection_permissions
Adds permission to let the AWS Lambda handler access connections through the API Gateway Management API. This is required so the Lamb
python/cross_service/apigateway_websocket_chat/websocket_chat.py:71
↓ 3 callers
Method
add_folder_to_staging
(self, assessment_uuid, folder_id_list)
python/example_code/auditmanager/create_assessment_report.py:125
↓ 3 callers
Method
add_input
Adds an input stream to the application. The input stream data is mapped to an in-application stream that can be processed by your co
python/example_code/kinesis-analytics-v2/analytics_application.py:258
↓ 3 callers
Method
add_output
Adds an output stream to the application. Kinesis Data Analytics maps data from the specified in-application stream to the output str
python/example_code/kinesis-analytics-v2/analytics_application.py:295
↓ 3 callers
Method
add_patron
Adds a patron to the database. :return: The ID of the added patron.
python/cross_service/aurora_rest_lending_library/library_api/chalicelib/library_data.py:443
↓ 3 callers
Method
add_route_and_integration
Adds a route to the websocket API and an integration to a Lambda function that is used to handle the request. Also adds perm
python/cross_service/apigateway_websocket_chat/websocket_chat.py:139
↓ 3 callers
Method
add_subscription_filter
Adds a filter policy to a subscription. A filter policy is a key and a list of values that are allowed. When a message is published,
python/example_code/sns/sns_basics.py:141
↓ 3 callers
Method
add_tags
Adds tags to a certificate. Tags are key-value pairs that contain custom metadata. :param certificate_arn: The ARN of the ce
python/example_code/acm/certificate_basics.py:169
↓ 3 callers
Function
add_top_product_step
Adds a step to a cluster that queries historical Amazon review data to find the top products in the specified category that contain a keyword
python/example_code/emr/emr_usage_demo.py:314
↓ 3 callers
Method
analyze_file
Detects text and additional elements, such as forms or tables, in a local image file or from in-memory byte data. The image m
python/example_code/textract/textract_wrapper.py:62
↓ 3 callers
Method
api_url
Builds the REST API URL from its parts. :param resource: The resource path to append to the base URL. :return: The REST URL
python/example_code/api-gateway/aws_service/aws_service.py:214
↓ 3 callers
Method
archiveItem
* Sends a PUT request to archive an active item.
resources/clients/react/elwing/src/plugins/item-tracker/work-item/WorkItemService.ts:32
↓ 3 callers
Method
ask_questions
Asks a set of questions and stores the answers in a dict. :param questions: The list of questions to ask. :return: A dict of
python/example_code/dynamodb/GettingStarted/question.py:31
↓ 3 callers
Function
assert
(condition,text)
javascriptv3/example_code/medical-imaging/scenarios/health-image-sets/pixel-data-verification/openjphjs/openjphjs.js:1
↓ 3 callers
Function
attachPolicy
({ roleName, policyArn, iamClient })
javascriptv3/example_code/sagemaker/scenarios/wkflw-sagemaker-geospatial-pipeline/lib.js:203
↓ 3 callers
Function
attachRolePolicy
(policyArn, roleName)
javascriptv3/example_code/iam/actions/attach-role-policy.js:16
↓ 3 callers
Method
autoPagination
(DynamoDbClient client)
javav2/example_code/dynamodb/src/main/java/com/example/dynamodb/SyncPagination.java:82
↓ 3 callers
Method
autoPaginationWithResume
(DynamoDbClient client)
javav2/example_code/dynamodb/src/main/java/com/example/dynamodb/SyncPagination.java:108
↓ 3 callers
Method
basic_flow_authenticated
Run Basic Flow for authenticated access with various providers. Args: provider_type: Type of provider('Google', 'Faceboo
python/example_code/cognito/scenarios/identity_pools_example_demo/web/backend/routes/auth_flows/basic_flow.py:210
↓ 3 callers
Method
batch_get_secrets
Retrieve multiple secrets from AWS Secrets Manager using the batch_get_secret_value API. This function assumes the stack mentioned in
python/example_code/secretsmanager/batch_get_secret_value.py:25
← previous
next →
901–1,000 of 13,204, ranked by callers