AwsDatasyncTask constructor
AwsDatasyncTask(
- String localName, {
- RefTo<
AwsCloudwatchLogGroup> ? cloudwatchLogGroupArn, - required TfArg<
String> destinationLocationArn, - TfArg<
String> ? name, - TfArg<
String> ? region, - required TfArg<
String> sourceLocationArn, - TfArg<
Map< ? tags,String, String> > - DatasyncTaskMode? taskMode,
- DatasyncTaskExcludes? excludes,
- DatasyncTaskIncludes? includes,
- DatasyncTaskOptions? options,
- DatasyncTaskSchedule? schedule,
- DatasyncTaskReportConfig? taskReportConfig,
- LifecycleOptions? lifecycle,
- List<
TfAddressed> ? dependsOn, - StackProvider? provider,
- TfTimeouts? timeouts,
Implementation
AwsDatasyncTask(
super.localName, {
RefTo<AwsCloudwatchLogGroup>? cloudwatchLogGroupArn,
required TfArg<String> destinationLocationArn,
TfArg<String>? name,
TfArg<String>? region,
required TfArg<String> sourceLocationArn,
TfArg<Map<String, String>>? tags,
DatasyncTaskMode? taskMode,
DatasyncTaskExcludes? excludes,
DatasyncTaskIncludes? includes,
DatasyncTaskOptions? options,
DatasyncTaskSchedule? schedule,
DatasyncTaskReportConfig? taskReportConfig,
super.lifecycle,
super.dependsOn,
super.provider,
super.timeouts,
}) : super(
terraformType: tfType,
argMap: {
'cloudwatch_log_group_arn': ?cloudwatchLogGroupArn?.encodeAs('arn'),
'destination_location_arn': destinationLocationArn,
'name': ?name,
'region': ?region,
'source_location_arn': sourceLocationArn,
'tags': ?tags,
'task_mode': ?taskMode,
if (excludes != null) 'excludes': TfArg.literal(excludes.encode()),
if (includes != null) 'includes': TfArg.literal(includes.encode()),
if (options != null) 'options': TfArg.literal(options.encode()),
if (schedule != null) 'schedule': TfArg.literal(schedule.encode()),
if (taskReportConfig != null)
'task_report_config': TfArg.literal(taskReportConfig.encode()),
},
);