Class CfnTask.TaskReportConfigProperty
Specifies how you want to configure a task report, which provides detailed information about for your AWS DataSync transfer.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.DataSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTask.TaskReportConfigProperty : CfnTask.ITaskReportConfigProperty
Syntax (vb)
Public Class CfnTask.TaskReportConfigProperty Implements CfnTask.ITaskReportConfigProperty
Remarks
For more information, see Task reports .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataSync;
var taskReportConfigProperty = new TaskReportConfigProperty {
Destination = new DestinationProperty {
S3 = new S3Property {
BucketAccessRoleArn = "bucketAccessRoleArn",
S3BucketArn = "s3BucketArn",
Subdirectory = "subdirectory"
}
},
OutputType = "outputType",
// the properties below are optional
ObjectVersionIds = "objectVersionIds",
Overrides = new OverridesProperty {
Deleted = new DeletedProperty {
ReportLevel = "reportLevel"
},
Skipped = new SkippedProperty {
ReportLevel = "reportLevel"
},
Transferred = new TransferredProperty {
ReportLevel = "reportLevel"
},
Verified = new VerifiedProperty {
ReportLevel = "reportLevel"
}
},
ReportLevel = "reportLevel"
};
Synopsis
Constructors
| TaskReportConfigProperty() | Specifies how you want to configure a task report, which provides detailed information about for your AWS DataSync transfer. |
Properties
| Destination | Specifies the Amazon S3 bucket where DataSync uploads your task report. |
| ObjectVersionIds | Specifies whether your task report includes the new version of each object transferred into an S3 bucket. |
| OutputType | Specifies the type of task report that you want:. |
| Overrides | Customizes the reporting level for aspects of your task report. |
| ReportLevel | Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't. |
Constructors
TaskReportConfigProperty()
Specifies how you want to configure a task report, which provides detailed information about for your AWS DataSync transfer.
public TaskReportConfigProperty()
Remarks
For more information, see Task reports .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataSync;
var taskReportConfigProperty = new TaskReportConfigProperty {
Destination = new DestinationProperty {
S3 = new S3Property {
BucketAccessRoleArn = "bucketAccessRoleArn",
S3BucketArn = "s3BucketArn",
Subdirectory = "subdirectory"
}
},
OutputType = "outputType",
// the properties below are optional
ObjectVersionIds = "objectVersionIds",
Overrides = new OverridesProperty {
Deleted = new DeletedProperty {
ReportLevel = "reportLevel"
},
Skipped = new SkippedProperty {
ReportLevel = "reportLevel"
},
Transferred = new TransferredProperty {
ReportLevel = "reportLevel"
},
Verified = new VerifiedProperty {
ReportLevel = "reportLevel"
}
},
ReportLevel = "reportLevel"
};
Properties
Destination
Specifies the Amazon S3 bucket where DataSync uploads your task report.
public object Destination { get; set; }
Property Value
Remarks
For more information, see Task reports .
Type union: either IResolvable or CfnTask.IDestinationProperty
ObjectVersionIds
Specifies whether your task report includes the new version of each object transferred into an S3 bucket.
public string? ObjectVersionIds { get; set; }
Property Value
Remarks
This only applies if you enable versioning on your bucket . Keep in mind that setting this to INCLUDE can increase the duration of your task execution.
OutputType
Specifies the type of task report that you want:.
public string OutputType { get; set; }
Property Value
Remarks
Overrides
Customizes the reporting level for aspects of your task report.
public object? Overrides { get; set; }
Property Value
Remarks
For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that DataSync attempted to delete in your destination location.
Type union: either IResolvable or CfnTask.IOverridesProperty
ReportLevel
Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't.
public string? ReportLevel { get; set; }