"""S3 Methods.""" import boto3 client = boto3.client('s3') resource = boto3.resource('s3') def get_object(bucket, key): """Get S3 object. Args: bucket (str): target S3 bucket. key (str): target S3 key. """ return client.get_object(Bucket=bucket, Key=key) def delete_object(bucket, key): """Delete S3 object. Args: bucket (str): target S3 bucket. key (str): target S3 key. """ return client.delete_object(Bucket=bucket, Key=key)