# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 # PyPI dependencies and pip command to install them: # pip3 install boto3 requests requests-auth-aws-sigv4 # This python script to PUT/Update a FHIR resource requires the following mandatory CLI arguments. # Run "hl_boto_put.py --help" for more details # HealthLake data store endpoint # Resource Path # File containing the Request body # AWS region import boto3 import requests import argparse import json from requests_auth_aws_sigv4 import AWSSigV4 # Define the required input arguments args_parser = argparse.ArgumentParser() args_parser.add_argument( "data_store_endpoint", help="The HealthLake Data Store Endpoint including the resource path. \ Example: https://healthlake..amazonaws.com/datastore/