AwsDatasyncTask constructor

AwsDatasyncTask(
  1. String localName, {
  2. RefTo<AwsCloudwatchLogGroup>? cloudwatchLogGroupArn,
  3. required TfArg<String> destinationLocationArn,
  4. TfArg<String>? name,
  5. TfArg<String>? region,
  6. required TfArg<String> sourceLocationArn,
  7. TfArg<Map<String, String>>? tags,
  8. DatasyncTaskMode? taskMode,
  9. DatasyncTaskExcludes? excludes,
  10. DatasyncTaskIncludes? includes,
  11. DatasyncTaskOptions? options,
  12. DatasyncTaskSchedule? schedule,
  13. DatasyncTaskReportConfig? taskReportConfig,
  14. LifecycleOptions? lifecycle,
  15. List<TfAddressed>? dependsOn,
  16. StackProvider? provider,
  17. 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()),
       },
     );