in migration/bring-your-own-s3-tables/bring_your_own_s3_table_bucket.py [0:0]
def _parse_args():
parser = argparse.ArgumentParser(description='Python script to bring your tables in S3 Table Bucket into a specified project in sagemaker unified studio')
parser.add_argument('--project-role-arn', type=str, required=True, help='Project role arn of the SageMaker Unified Studio project in which you want to bring your own glue tables')
parser.add_argument('--iam-role-arn-lf-resource-register', type=str, required=True, help='IAM Role arn which would be used in registration of S3 location in LakeFormation. Please refer to https://docs.aws.amazon.com/lake-formation/latest/dg/s3tables-catalog-prerequisites.html step3 and step4'
' for role requirements.')
parser.add_argument('--table-bucket-arn', type=str, required=True, help='Arn of S3 table bucket you want to bring into your project')
parser.add_argument('--table-bucket-namespace', type=str, required=False, help='Namespace of S3 table bucket you want to bring into your project. If not provided, imports all the tables of the provided s3 table bucket into the project')
parser.add_argument('--table-name', type=str, required=False, help='Name of the table created in S3 table bucket you want to bring into your project. If not provided, imports all the tables of the provided s3 table bucket namespace into the project')
parser.add_argument('--region', type=str, required=False, help='The AWS region. If not specified, the default region from your AWS credentials will be used')
parser.add_argument('--execute', default=False, help='Determine if the script should generate overview or do the actual work', action='store_true')
return parser.parse_args()