Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/aws-health-tools
/ functions
Functions
278 in github.com/aws/aws-health-tools
⨍
Functions
278
◇
Types & classes
27
↳
Endpoints
14
↓ 69 callers
Method
client
()
high-availability-endpoint/python/health_client.py:15
↓ 23 callers
Function
_result
(ctx: click.Context, label: str, passed: bool, detail: str = "")
misc/S3-inventory-to-batch-job/s3_batch_replication/commands/validate_setup.py:39
↓ 19 callers
Function
echo
Print msg unless --quiet is set.
misc/S3-inventory-to-batch-job/s3_batch_replication/output.py:20
↓ 13 callers
Function
populate_bucket
Factory to put objects into a moto-mocked S3 bucket.
misc/s3-cross-region-copy-using-batch-operations/tests/conftest.py:39
↓ 12 callers
Function
client
Create a boto3 client for the given service, using the configured region. :param service: AWS service name (e.g. "s3", "iam", "s3control").
misc/S3-inventory-to-batch-job/s3_batch_replication/aws/boto.py:35
↓ 12 callers
Method
main
(String[] args)
high-availability-endpoint/java/src/main/java/aws/health/high/availability/endpoint/demo/App.java:9
↓ 12 callers
Function
make_args
Factory to build argparse.Namespace with defaults.
misc/s3-cross-region-copy-using-batch-operations/tests/conftest.py:18
↓ 8 callers
Function
generate_manifests
List objects in the source bucket and write them to local CSV manifest files. Uses boto3 paginators to iterate through all objects (or object ver
misc/s3-cross-region-copy-using-batch-operations/generate_manifest.py:166
↓ 8 callers
Function
get_bucket_kms_key
Return the KMS key ARN configured for SSE-KMS on a bucket, or None. Returns the key ARN for both customer-managed and AWS-managed (aws/s3) k
misc/S3-inventory-to-batch-job/s3_batch_replication/aws/s3.py:70
↓ 7 callers
Function
_build_permissions
(source_bucket: str, dest_bucket: str, source_kms_key: str | None, dest_kms_key: str | None, manifest_bucket:
misc/S3-inventory-to-batch-job/s3_batch_replication/commands/setup_iam_role.py:53
↓ 7 callers
Method
_create_mock_clients
Helper to create mock boto3 clients.
misc/S3-replication-script/test/test_setup_replication.py:40
↓ 7 callers
Function
_mock_s3_paginator
Build a MagicMock s3 client whose paginator returns the given objects.
misc/s3-cross-region-copy-using-batch-operations/tests/test_generate_manifest.py:127
↓ 7 callers
Function
parse_s3_uri
Parse an S3 URI into (bucket, key). :param uri: S3 URI in the format s3://<bucket>/<key> :return: A tuple of (bucket, key) :raises V
misc/S3-inventory-to-batch-job/s3_batch_replication/aws/s3.py:33
↓ 5 callers
Function
_check_bucket_accessible
Check bucket exists and is accessible, with distinct error messages.
misc/s3-cross-region-copy-using-batch-operations/generate_manifest.py:116
↓ 4 callers
Function
response
create a simple json response
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep/alexa_skill.py:169
↓ 4 callers
Function
response_plain_text
create a simple json plain text response
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep/alexa_skill.py:178
↓ 4 callers
Function
validate_inputs
Validate that the source bucket exists and the manifest bucket is ready. Checks the source bucket via HeadBucket (exits on 403 or 404). If the ma
misc/s3-cross-region-copy-using-batch-operations/generate_manifest.py:132
↓ 3 callers
Function
_client_error
(code: str)
misc/S3-inventory-to-batch-job/tests/test_kms.py:25
↓ 3 callers
Function
_mock_encryption_response
(algorithm: str, key_id: str | None = None)
misc/S3-inventory-to-batch-job/tests/test_kms.py:29
↓ 3 callers
Function
check_all_tasks
Check all tasks in registry.
misc/s3-cross-region-copy-using-aws-datasync/check_task_status.py:205
↓ 3 callers
Method
convert
Validate and return the S3 URI, or fail with a descriptive error.
misc/S3-inventory-to-batch-job/s3_batch_replication/types.py:60
↓ 3 callers
Function
format_status
Format status with emoji.
misc/s3-cross-region-copy-using-aws-datasync/check_task_status.py:92
↓ 3 callers
Function
generate_summary_str
Generates formatted string containing CloudTrail summary info. Args: summary_items (list): List of tuples containing CloudTrail summary
automated-actions/AWS_RISK_CREDENTIALS_EXPOSED/lambda_functions/notify_security.py:55
↓ 3 callers
Function
main
()
misc/s3-cross-region-copy-using-batch-operations/generate_manifest.py:264
↓ 3 callers
Function
partition_files
Partition a list of inventory files into fixed-size bins, one bin per batch job. :param files: Full list of inventory files from the source
misc/S3-inventory-to-batch-job/s3_batch_replication/manifest.py:130
↓ 3 callers
Function
print_task_status
Print task status.
misc/s3-cross-region-copy-using-aws-datasync/check_task_status.py:179
↓ 3 callers
Function
upload_manifest
Write content to destination/filename. :param content: Content to write :param destination: S3 URI or local directory path :param fi
misc/S3-inventory-to-batch-job/s3_batch_replication/aws/s3.py:49
↓ 3 callers
Function
upload_manifests
Upload local manifest CSV files to the manifest bucket. Standard part files are uploaded as {manifest_key}-001.csv, {manifest_key}-002.csv, etc.
misc/s3-cross-region-copy-using-batch-operations/generate_manifest.py:239
↓ 2 callers
Function
_client_error
(code, msg="err")
misc/s3-cross-region-copy-using-batch-operations/tests/test_create_batch_copy_jobs.py:22
↓ 2 callers
Function
_get_bucket_region
Return the region of a bucket. Returns 'us-east-1' when location is None.
misc/s3-cross-region-copy-using-batch-operations/copy_large_objects.py:176
↓ 2 callers
Function
_make_args
(**overrides)
misc/s3-cross-region-copy-using-batch-operations/tests/test_create_batch_copy_jobs.py:26
↓ 2 callers
Function
_parse_manifest_rows
Yield (bucket, key, version_id) tuples from CSV lines. Keys are URL-decoded from the manifest's percent-encoded format. version_id is None wh
misc/s3-cross-region-copy-using-batch-operations/copy_large_objects.py:143
↓ 2 callers
Function
_validate_bucket_name_length
(name, label)
misc/s3-cross-region-copy-using-batch-operations/create_batch_copy_jobs.py:228
↓ 2 callers
Function
active_region
()
high-availability-endpoint/python/region_lookup.py:9
↓ 2 callers
Function
add_task_to_registry
Add new task to registry.
misc/s3-cross-region-copy-using-aws-datasync/create_datasync_task.py:184
↓ 2 callers
Function
create_datasync_role
Create a minimally permissioned IAM role for DataSync to access a specific S3 bucket.
misc/s3-cross-region-copy-using-aws-datasync/create_datasync_task.py:285
↓ 2 callers
Function
create_datasync_task
Create an enhanced DataSync task with throughput limits. Args: source_bucket: Source S3 bucket name source_region: Sourc
misc/s3-cross-region-copy-using-aws-datasync/create_datasync_task.py:472
↓ 2 callers
Function
create_s3_location
Create a DataSync S3 location, or return existing one.
misc/s3-cross-region-copy-using-aws-datasync/create_datasync_task.py:391
↓ 2 callers
Function
delete_location
Delete a DataSync location.
misc/s3-cross-region-copy-using-aws-datasync/cleanup_datasync_tasks.py:79
↓ 2 callers
Function
delete_role
Delete an IAM role and its inline policies.
misc/s3-cross-region-copy-using-aws-datasync/cleanup_datasync_tasks.py:97
↓ 2 callers
Function
discover_manifest_keys
List all manifest CSVs matching {base_key}-*.csv in the bucket.
misc/s3-cross-region-copy-using-batch-operations/create_batch_copy_jobs.py:145
↓ 2 callers
Function
do_help
()
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep/alexa_skill.py:85
↓ 2 callers
Function
do_stop
()
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep/alexa_skill.py:81
↓ 2 callers
Function
ensure_bucket
Ensure an S3 bucket exists, creating it if necessary. If the bucket does not exist, it is created with public access blocked and AES256 server-si
misc/s3-cross-region-copy-using-batch-operations/create_batch_copy_jobs.py:181
↓ 2 callers
Function
format_bytes
Format bytes to human readable.
misc/s3-cross-region-copy-using-aws-datasync/check_task_status.py:167
↓ 2 callers
Function
generate_dest_bucket_name
Generate destination bucket name based on source bucket and region. S3 bucket names must be 3-63 characters. The region suffix is always
misc/s3-cross-region-copy-using-aws-datasync/create_datasync_task.py:76
↓ 2 callers
Function
getDateTimeFromISO8601String
(s)
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep/alexa_skill.py:118
↓ 2 callers
Method
getV2Client
Helper method to provide a shorter way of referring to the singleton client method
high-availability-endpoint/java/src/main/java/aws/health/high/availability/endpoint/demo/HighAvailabilityV2Workflow.java:37
↓ 2 callers
Function
get_s3_client
(session, region)
misc/s3-cross-region-copy-using-batch-operations/generate_manifest.py:93
↓ 2 callers
Function
load_task_registry
Load existing task registry or create new one.
misc/s3-cross-region-copy-using-aws-datasync/create_datasync_task.py:165
↓ 2 callers
Function
make_client_error
Create a botocore ClientError for testing.
misc/S3-replication-script/test/test_setup_replication.py:23
↓ 2 callers
Function
publish_msg
Publishes message to SNS topic. Args: subject (string): Subject of message to be published to topic. message (string): Content o
automated-actions/AWS_RISK_CREDENTIALS_EXPOSED/lambda_functions/notify_security.py:69
↓ 2 callers
Function
resolve_role_arn
Resolve the IAM role ARN from the Click context if not explicitly provided. If the role ARN comes from context (i.e. chained after setup-iam
misc/S3-inventory-to-batch-job/s3_batch_replication/aws/iam.py:116
↓ 2 callers
Function
save_task_registry
Save task registry to file.
misc/s3-cross-region-copy-using-aws-datasync/create_datasync_task.py:173
↓ 2 callers
Function
validate_role_trust_policy
Validate that an IAM role trusts the required principal. :param role_arn: The ARN of the role. :param required_principal: The service pr
misc/S3-inventory-to-batch-job/s3_batch_replication/aws/iam.py:32
↓ 1 callers
Function
_build_tagging_string
Convert a TagSet list to URL-encoded key=value&key=value string.
misc/s3-cross-region-copy-using-batch-operations/copy_large_objects.py:195
↓ 1 callers
Function
_check_bucket_accessible
Check bucket exists and is accessible, with distinct error messages.
misc/s3-cross-region-copy-using-batch-operations/create_batch_copy_jobs.py:168
↓ 1 callers
Function
_check_bucket_accessible
Check bucket exists and is accessible, with distinct error messages.
misc/s3-cross-region-copy-using-batch-operations/copy_large_objects.py:126
↓ 1 callers
Function
_check_bucket_policy_action
Check a bucket policy allows s3.amazonaws.com to perform required_action.
misc/S3-inventory-to-batch-job/s3_batch_replication/commands/validate_setup.py:140
↓ 1 callers
Function
_check_iam_role
Check the IAM role trusts batchoperations.s3.amazonaws.com.
misc/S3-inventory-to-batch-job/s3_batch_replication/commands/validate_setup.py:89
↓ 1 callers
Function
_check_inventory
Check inventory configuration on the source bucket. :return: (failed, inventory_dest_bucket)
misc/S3-inventory-to-batch-job/s3_batch_replication/commands/validate_setup.py:104
↓ 1 callers
Function
_check_kms
Smoke-test KMS permissions on the IAM role for source and destination keys.
misc/S3-inventory-to-batch-job/s3_batch_replication/commands/validate_setup.py:189
↓ 1 callers
Function
_check_replication_rule
Check at least one enabled replication rule exists on the source bucket.
misc/S3-inventory-to-batch-job/s3_batch_replication/commands/validate_setup.py:68
↓ 1 callers
Function
_check_report_bucket_writable
Check the report bucket allows s3:PutObject from batchoperations.s3.amazonaws.com.
misc/S3-inventory-to-batch-job/s3_batch_replication/commands/validate_setup.py:163
↓ 1 callers
Function
_check_versioning
Check versioning is enabled on source and destination buckets.
misc/S3-inventory-to-batch-job/s3_batch_replication/commands/validate_setup.py:48
↓ 1 callers
Function
_configure_logging
Configure logging based on verbosity count and quiet flag. - ``--quiet``: CRITICAL only (suppresses all normal output) - 0 (default): WA
misc/S3-inventory-to-batch-job/s3_batch_replication/cli.py:27
↓ 1 callers
Function
_get_part_sizes
Return a list of part sizes by calling head_object with PartNumber for each part.
misc/s3-cross-region-copy-using-batch-operations/copy_large_objects.py:183
↓ 1 callers
Function
_get_session
(profile)
misc/s3-cross-region-copy-using-batch-operations/create_batch_copy_jobs.py:116
↓ 1 callers
Function
_get_session
(profile)
misc/s3-cross-region-copy-using-batch-operations/generate_manifest.py:89
↓ 1 callers
Function
_get_session
Return a boto3 Session, optionally using a named profile.
misc/s3-cross-region-copy-using-batch-operations/copy_large_objects.py:101
↓ 1 callers
Function
_git_commit
()
misc/S3-inventory-to-batch-job/s3_batch_replication/version.py:37
↓ 1 callers
Function
_git_commit
()
misc/S3-inventory-to-batch-job/scripts/hatch_build.py:27
↓ 1 callers
Function
_parse_manifest_file
Parse a single file entry from a manifest's ``files`` array. :param index: Zero-based index of the entry, used in error messages. :param
misc/S3-inventory-to-batch-job/s3_batch_replication/manifest.py:44
↓ 1 callers
Function
_read_manifest
Read a CSV manifest from a local file or S3 URI (s3://bucket/key).
misc/s3-cross-region-copy-using-batch-operations/copy_large_objects.py:158
↓ 1 callers
Function
_read_version_file
()
misc/S3-inventory-to-batch-job/s3_batch_replication/version.py:27
↓ 1 callers
Function
_truncate_name
Truncate a name to fit within max_length, stripping trailing hyphens.
misc/s3-cross-region-copy-using-aws-datasync/create_datasync_task.py:69
↓ 1 callers
Function
build_manifest
Construct a new :class:`Manifest` from a subset of inventory files, preserving source metadata. :param source: The original manifest to copy
misc/S3-inventory-to-batch-job/s3_batch_replication/manifest.py:95
↓ 1 callers
Function
chatMessage
(message, subject, webhook, type)
shd-notifier/Health-Event-Chat-Post-LambdaFn.py:71
↓ 1 callers
Function
check_task_status
Check status of a single task.
misc/s3-cross-region-copy-using-aws-datasync/check_task_status.py:107
↓ 1 callers
Function
chimeTrimMessage
(message)
shd-notifier/Health-Event-Chat-Post-LambdaFn.py:51
↓ 1 callers
Function
cleanup_task
Clean up a single task and its resources.
misc/s3-cross-region-copy-using-aws-datasync/cleanup_datasync_tasks.py:124
↓ 1 callers
Function
cli
S3 Batch Replication tools.
misc/S3-inventory-to-batch-job/s3_batch_replication/cli.py:64
↓ 1 callers
Function
copy_versioning
Mirror the versioning configuration from the source bucket to the destination bucket. Reads the versioning status from the source bucket and appl
misc/s3-cross-region-copy-using-batch-operations/create_batch_copy_jobs.py:212
↓ 1 callers
Function
create_batch_replication_job
Create an S3 Batch Replication job. The job must be manually activated in the console or via the API after review. :param manifest_uri:
misc/S3-inventory-to-batch-job/s3_batch_replication/aws/s3control.py:50
↓ 1 callers
Function
create_destination_bucket
Create destination S3 bucket with secure policy matching source versioning.
misc/s3-cross-region-copy-using-aws-datasync/create_datasync_task.py:91
↓ 1 callers
Function
create_job
Create a single S3 Batch Operations copy job for one manifest file. Fetches the ETag of the manifest object via HeadObject (required by the Manif
misc/s3-cross-region-copy-using-batch-operations/create_batch_copy_jobs.py:291
↓ 1 callers
Method
create_lambda_role
(self)
automated-actions/ECS_TASK_PATCHING_AUTOMATION/ecs_task_patching_recovery/ecs_task_patching_recovery_stack.py:23
↓ 1 callers
Function
create_role
Create a least-privilege IAM role for S3 Batch Operations. The role trusts the batchoperations.s3.amazonaws.com service principal and grants:
misc/s3-cross-region-copy-using-batch-operations/create_batch_copy_jobs.py:235
↓ 1 callers
Method
create_state_machine_role
(self)
automated-actions/ECS_TASK_PATCHING_AUTOMATION/ecs_task_patching_recovery/ecs_task_patching_recovery_stack.py:16
↓ 1 callers
Function
deleteNetworkInterface
(networkInterfaceId, dryrun)
automated-actions/AWS_ELASTICLOADBALANCING_ENI_LIMIT_REACHED/LambdaFunction.js:51
↓ 1 callers
Function
delete_exposed_key_pair
Deletes IAM access key pair identified by access key ID for specified user. Args: username (string): Username of IAM user to delete key
automated-actions/AWS_RISK_CREDENTIALS_EXPOSED/lambda_functions/delete_access_key_pair.py:45
↓ 1 callers
Function
delete_task
Delete a DataSync task.
misc/s3-cross-region-copy-using-aws-datasync/cleanup_datasync_tasks.py:61
↓ 1 callers
Method
describeEvents
()
high-availability-endpoint/java/src/main/java/aws/health/high/availability/endpoint/demo/HighAvailabilityV2Workflow.java:56
↓ 1 callers
Function
describe_events
()
high-availability-endpoint/python/main.py:17
↓ 1 callers
Method
doWorkflow
()
high-availability-endpoint/java/src/main/java/aws/health/high/availability/endpoint/demo/HighAvailabilityV2Workflow.java:85
↓ 1 callers
Function
download_manifest
Download a manifest from S3. :param s3_uri: S3 URI of the manifest :return: The content of the manifest as a dictionary :raises Runt
misc/S3-inventory-to-batch-job/s3_batch_replication/aws/s3.py:106
↓ 1 callers
Function
download_multipart_object
Download a multi-part S3 object, handling missing parts gracefully.
s3-download-partial-multiparts/s3-download-partial-multiparts.py:188
↓ 1 callers
Function
download_part
Download a single part using partNumber query parameter. Returns: (success: bool, part_info: PartInfo or None)
s3-download-partial-multiparts/s3-download-partial-multiparts.py:116
↓ 1 callers
Function
eventDetailedDesc
(eventArn)
shd-notifier/Health-Event-Chat-Post-LambdaFn.py:109
↓ 1 callers
Method
eventDetails
Log the details of an event
high-availability-endpoint/java/src/main/java/aws/health/high/availability/endpoint/demo/HighAvailabilityV2Workflow.java:44
next →
1–100 of 278, ranked by callers