Skip to content

CompletionReport

Source code in docs_src/capo_fsx/types/completion_report.py
class CompletionReport(TypedDict, closed=True):
    enabled: NotRequired["capo_fsx.types.flag.Flag"]
    """<p>Set <code>Enabled</code> to <code>True</code> to generate a <code>CompletionReport</code> when the task completes. If set to <code>true</code>, then you need to provide a report <code>Scope</code>, <code>Path</code>, and <code>Format</code>. Set <code>Enabled</code> to <code>False</code> if you do not want a <code>CompletionReport</code> generated when the task completes.</p>"""
    path: NotRequired["capo_fsx.types.archive_path.ArchivePath"]
    """<p>Required if <code>Enabled</code> is set to <code>true</code>. Specifies the location of the report on the file system's linked S3 data repository. An absolute path that defines where the completion report will be stored in the destination location. The <code>Path</code> you provide must be within the Amazon S3 location that the file system is linked to. That location depends on how the file system is configured:</p> <ul> <li> <p>The <code>DataRepositoryPath</code> of one of the associations, if the file system has data repository associations</p> </li> <li> <p>The <code>ExportPath</code>, if the file system was created with an <code>ImportPath</code> and an <code>ExportPath</code> </p> </li> </ul> <p>For example, if an association links to <code>s3://amzn-s3-demo-bucket/myPrefix</code>, then <code>s3://amzn-s3-demo-bucket/myPrefix/reports</code> is valid. The path <code>s3://amzn-s3-demo-bucket/reports</code> is not.</p> <p>The report provides the following information for each file in the report: FilePath, FileStatus, and ErrorCode.</p>"""
    format: NotRequired["capo_fsx.types.report_format.ReportFormat"]
    """<p>Required if <code>Enabled</code> is set to <code>true</code>. Specifies the format of the <code>CompletionReport</code>. <code>REPORT_CSV_20191124</code> is the only format currently supported. When <code>Format</code> is set to <code>REPORT_CSV_20191124</code>, the <code>CompletionReport</code> is provided in CSV format, and is delivered to <code>{path}/task-{id}/failures.csv</code>. </p>"""
    scope: NotRequired["capo_fsx.types.report_scope.ReportScope"]
    """<p>Required if <code>Enabled</code> is set to <code>true</code>. Specifies the scope of the <code>CompletionReport</code>; <code>FAILED_FILES_ONLY</code> is the only scope currently supported. When <code>Scope</code> is set to <code>FAILED_FILES_ONLY</code>, the <code>CompletionReport</code> only contains information about files that the data repository task failed to process.</p>"""

enabled instance-attribute

enabled: NotRequired[Flag]

Set Enabled to True to generate a CompletionReport when the task completes. If set to true, then you need to provide a report Scope, Path, and Format. Set Enabled to False if you do not want a CompletionReport generated when the task completes.

format instance-attribute

format: NotRequired[ReportFormat]

Required if Enabled is set to true. Specifies the format of the CompletionReport. REPORT_CSV_20191124 is the only format currently supported. When Format is set to REPORT_CSV_20191124, the CompletionReport is provided in CSV format, and is delivered to {path}/task-{id}/failures.csv.

path instance-attribute

path: NotRequired[ArchivePath]

Required if Enabled is set to true. Specifies the location of the report on the file system's linked S3 data repository. An absolute path that defines where the completion report will be stored in the destination location. The Path you provide must be within the Amazon S3 location that the file system is linked to. That location depends on how the file system is configured:

  • The DataRepositoryPath of one of the associations, if the file system has data repository associations

  • The ExportPath, if the file system was created with an ImportPath and an ExportPath

For example, if an association links to s3://amzn-s3-demo-bucket/myPrefix, then s3://amzn-s3-demo-bucket/myPrefix/reports is valid. The path s3://amzn-s3-demo-bucket/reports is not.

The report provides the following information for each file in the report: FilePath, FileStatus, and ErrorCode.

scope instance-attribute

scope: NotRequired[ReportScope]

Required if Enabled is set to true. Specifies the scope of the CompletionReport; FAILED_FILES_ONLY is the only scope currently supported. When Scope is set to FAILED_FILES_ONLY, the CompletionReport only contains information about files that the data repository task failed to process.