<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_upload_cmd(self, mirror=False):
 """Generate the S3 CLI upload command Args: mirror (bool):
 If true, uses a flat directory structure instead of nesting under a version. Returns: str: The full CLI command to run. """

        if mirror:
            dest_uri = self.s3_mirror_uri
        else:
            dest_uri = self.s3_version_uri

        cmd = 'aws s3 sync {} {} --delete --exact-timestamps --profile {}'.format(self.artifact_path,
                                                                                  dest_uri, self.env)
        return cmd