// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS DataSync */ export interface DatasyncTaskConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#cloudwatch_log_group_arn DatasyncTask#cloudwatch_log_group_arn} */ readonly cloudwatchLogGroupArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#destination_location_arn DatasyncTask#destination_location_arn} */ readonly destinationLocationArn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#name DatasyncTask#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#source_location_arn DatasyncTask#source_location_arn} */ readonly sourceLocationArn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#tags DatasyncTask#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#tags_all DatasyncTask#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * excludes block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#excludes DatasyncTask#excludes} */ readonly excludes?: DatasyncTaskExcludes; /** * options block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#options DatasyncTask#options} */ readonly options?: DatasyncTaskOptions; /** * schedule block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#schedule DatasyncTask#schedule} */ readonly schedule?: DatasyncTaskSchedule; /** * timeouts block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#timeouts DatasyncTask#timeouts} */ readonly timeouts?: DatasyncTaskTimeouts; } export interface DatasyncTaskExcludes { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#filter_type DatasyncTask#filter_type} */ readonly filterType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#value DatasyncTask#value} */ readonly value?: string; } export function datasyncTaskExcludesToTerraform(struct?: DatasyncTaskExcludesOutputReference | DatasyncTaskExcludes): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { filter_type: cdktf.stringToTerraform(struct!.filterType), value: cdktf.stringToTerraform(struct!.value), } } export class DatasyncTaskExcludesOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): DatasyncTaskExcludes | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._filterType !== undefined) { hasAnyValues = true; internalValueResult.filterType = this._filterType; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: DatasyncTaskExcludes | undefined) { if (value === undefined) { this.isEmptyObject = false; this._filterType = undefined; this._value = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._filterType = value.filterType; this._value = value.value; } } // filter_type - computed: false, optional: true, required: false private _filterType?: string; public get filterType() { return this.getStringAttribute('filter_type'); } public set filterType(value: string) { this._filterType = value; } public resetFilterType() { this._filterType = undefined; } // Temporarily expose input value. Use with caution. public get filterTypeInput() { return this._filterType; } // value - computed: false, optional: true, required: false private _value?: string; public get value() { return this.getStringAttribute('value'); } public set value(value: string) { this._value = value; } public resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. public get valueInput() { return this._value; } } export interface DatasyncTaskOptions { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#atime DatasyncTask#atime} */ readonly atime?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#bytes_per_second DatasyncTask#bytes_per_second} */ readonly bytesPerSecond?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#gid DatasyncTask#gid} */ readonly gid?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#log_level DatasyncTask#log_level} */ readonly logLevel?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#mtime DatasyncTask#mtime} */ readonly mtime?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#overwrite_mode DatasyncTask#overwrite_mode} */ readonly overwriteMode?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#posix_permissions DatasyncTask#posix_permissions} */ readonly posixPermissions?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#preserve_deleted_files DatasyncTask#preserve_deleted_files} */ readonly preserveDeletedFiles?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#preserve_devices DatasyncTask#preserve_devices} */ readonly preserveDevices?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#task_queueing DatasyncTask#task_queueing} */ readonly taskQueueing?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#transfer_mode DatasyncTask#transfer_mode} */ readonly transferMode?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#uid DatasyncTask#uid} */ readonly uid?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#verify_mode DatasyncTask#verify_mode} */ readonly verifyMode?: string; } export function datasyncTaskOptionsToTerraform(struct?: DatasyncTaskOptionsOutputReference | DatasyncTaskOptions): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { atime: cdktf.stringToTerraform(struct!.atime), bytes_per_second: cdktf.numberToTerraform(struct!.bytesPerSecond), gid: cdktf.stringToTerraform(struct!.gid), log_level: cdktf.stringToTerraform(struct!.logLevel), mtime: cdktf.stringToTerraform(struct!.mtime), overwrite_mode: cdktf.stringToTerraform(struct!.overwriteMode), posix_permissions: cdktf.stringToTerraform(struct!.posixPermissions), preserve_deleted_files: cdktf.stringToTerraform(struct!.preserveDeletedFiles), preserve_devices: cdktf.stringToTerraform(struct!.preserveDevices), task_queueing: cdktf.stringToTerraform(struct!.taskQueueing), transfer_mode: cdktf.stringToTerraform(struct!.transferMode), uid: cdktf.stringToTerraform(struct!.uid), verify_mode: cdktf.stringToTerraform(struct!.verifyMode), } } export class DatasyncTaskOptionsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): DatasyncTaskOptions | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._atime !== undefined) { hasAnyValues = true; internalValueResult.atime = this._atime; } if (this._bytesPerSecond !== undefined) { hasAnyValues = true; internalValueResult.bytesPerSecond = this._bytesPerSecond; } if (this._gid !== undefined) { hasAnyValues = true; internalValueResult.gid = this._gid; } if (this._logLevel !== undefined) { hasAnyValues = true; internalValueResult.logLevel = this._logLevel; } if (this._mtime !== undefined) { hasAnyValues = true; internalValueResult.mtime = this._mtime; } if (this._overwriteMode !== undefined) { hasAnyValues = true; internalValueResult.overwriteMode = this._overwriteMode; } if (this._posixPermissions !== undefined) { hasAnyValues = true; internalValueResult.posixPermissions = this._posixPermissions; } if (this._preserveDeletedFiles !== undefined) { hasAnyValues = true; internalValueResult.preserveDeletedFiles = this._preserveDeletedFiles; } if (this._preserveDevices !== undefined) { hasAnyValues = true; internalValueResult.preserveDevices = this._preserveDevices; } if (this._taskQueueing !== undefined) { hasAnyValues = true; internalValueResult.taskQueueing = this._taskQueueing; } if (this._transferMode !== undefined) { hasAnyValues = true; internalValueResult.transferMode = this._transferMode; } if (this._uid !== undefined) { hasAnyValues = true; internalValueResult.uid = this._uid; } if (this._verifyMode !== undefined) { hasAnyValues = true; internalValueResult.verifyMode = this._verifyMode; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: DatasyncTaskOptions | undefined) { if (value === undefined) { this.isEmptyObject = false; this._atime = undefined; this._bytesPerSecond = undefined; this._gid = undefined; this._logLevel = undefined; this._mtime = undefined; this._overwriteMode = undefined; this._posixPermissions = undefined; this._preserveDeletedFiles = undefined; this._preserveDevices = undefined; this._taskQueueing = undefined; this._transferMode = undefined; this._uid = undefined; this._verifyMode = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._atime = value.atime; this._bytesPerSecond = value.bytesPerSecond; this._gid = value.gid; this._logLevel = value.logLevel; this._mtime = value.mtime; this._overwriteMode = value.overwriteMode; this._posixPermissions = value.posixPermissions; this._preserveDeletedFiles = value.preserveDeletedFiles; this._preserveDevices = value.preserveDevices; this._taskQueueing = value.taskQueueing; this._transferMode = value.transferMode; this._uid = value.uid; this._verifyMode = value.verifyMode; } } // atime - computed: false, optional: true, required: false private _atime?: string; public get atime() { return this.getStringAttribute('atime'); } public set atime(value: string) { this._atime = value; } public resetAtime() { this._atime = undefined; } // Temporarily expose input value. Use with caution. public get atimeInput() { return this._atime; } // bytes_per_second - computed: false, optional: true, required: false private _bytesPerSecond?: number; public get bytesPerSecond() { return this.getNumberAttribute('bytes_per_second'); } public set bytesPerSecond(value: number) { this._bytesPerSecond = value; } public resetBytesPerSecond() { this._bytesPerSecond = undefined; } // Temporarily expose input value. Use with caution. public get bytesPerSecondInput() { return this._bytesPerSecond; } // gid - computed: false, optional: true, required: false private _gid?: string; public get gid() { return this.getStringAttribute('gid'); } public set gid(value: string) { this._gid = value; } public resetGid() { this._gid = undefined; } // Temporarily expose input value. Use with caution. public get gidInput() { return this._gid; } // log_level - computed: false, optional: true, required: false private _logLevel?: string; public get logLevel() { return this.getStringAttribute('log_level'); } public set logLevel(value: string) { this._logLevel = value; } public resetLogLevel() { this._logLevel = undefined; } // Temporarily expose input value. Use with caution. public get logLevelInput() { return this._logLevel; } // mtime - computed: false, optional: true, required: false private _mtime?: string; public get mtime() { return this.getStringAttribute('mtime'); } public set mtime(value: string) { this._mtime = value; } public resetMtime() { this._mtime = undefined; } // Temporarily expose input value. Use with caution. public get mtimeInput() { return this._mtime; } // overwrite_mode - computed: false, optional: true, required: false private _overwriteMode?: string; public get overwriteMode() { return this.getStringAttribute('overwrite_mode'); } public set overwriteMode(value: string) { this._overwriteMode = value; } public resetOverwriteMode() { this._overwriteMode = undefined; } // Temporarily expose input value. Use with caution. public get overwriteModeInput() { return this._overwriteMode; } // posix_permissions - computed: false, optional: true, required: false private _posixPermissions?: string; public get posixPermissions() { return this.getStringAttribute('posix_permissions'); } public set posixPermissions(value: string) { this._posixPermissions = value; } public resetPosixPermissions() { this._posixPermissions = undefined; } // Temporarily expose input value. Use with caution. public get posixPermissionsInput() { return this._posixPermissions; } // preserve_deleted_files - computed: false, optional: true, required: false private _preserveDeletedFiles?: string; public get preserveDeletedFiles() { return this.getStringAttribute('preserve_deleted_files'); } public set preserveDeletedFiles(value: string) { this._preserveDeletedFiles = value; } public resetPreserveDeletedFiles() { this._preserveDeletedFiles = undefined; } // Temporarily expose input value. Use with caution. public get preserveDeletedFilesInput() { return this._preserveDeletedFiles; } // preserve_devices - computed: false, optional: true, required: false private _preserveDevices?: string; public get preserveDevices() { return this.getStringAttribute('preserve_devices'); } public set preserveDevices(value: string) { this._preserveDevices = value; } public resetPreserveDevices() { this._preserveDevices = undefined; } // Temporarily expose input value. Use with caution. public get preserveDevicesInput() { return this._preserveDevices; } // task_queueing - computed: false, optional: true, required: false private _taskQueueing?: string; public get taskQueueing() { return this.getStringAttribute('task_queueing'); } public set taskQueueing(value: string) { this._taskQueueing = value; } public resetTaskQueueing() { this._taskQueueing = undefined; } // Temporarily expose input value. Use with caution. public get taskQueueingInput() { return this._taskQueueing; } // transfer_mode - computed: false, optional: true, required: false private _transferMode?: string; public get transferMode() { return this.getStringAttribute('transfer_mode'); } public set transferMode(value: string) { this._transferMode = value; } public resetTransferMode() { this._transferMode = undefined; } // Temporarily expose input value. Use with caution. public get transferModeInput() { return this._transferMode; } // uid - computed: false, optional: true, required: false private _uid?: string; public get uid() { return this.getStringAttribute('uid'); } public set uid(value: string) { this._uid = value; } public resetUid() { this._uid = undefined; } // Temporarily expose input value. Use with caution. public get uidInput() { return this._uid; } // verify_mode - computed: false, optional: true, required: false private _verifyMode?: string; public get verifyMode() { return this.getStringAttribute('verify_mode'); } public set verifyMode(value: string) { this._verifyMode = value; } public resetVerifyMode() { this._verifyMode = undefined; } // Temporarily expose input value. Use with caution. public get verifyModeInput() { return this._verifyMode; } } export interface DatasyncTaskSchedule { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#schedule_expression DatasyncTask#schedule_expression} */ readonly scheduleExpression: string; } export function datasyncTaskScheduleToTerraform(struct?: DatasyncTaskScheduleOutputReference | DatasyncTaskSchedule): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { schedule_expression: cdktf.stringToTerraform(struct!.scheduleExpression), } } export class DatasyncTaskScheduleOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): DatasyncTaskSchedule | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._scheduleExpression !== undefined) { hasAnyValues = true; internalValueResult.scheduleExpression = this._scheduleExpression; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: DatasyncTaskSchedule | undefined) { if (value === undefined) { this.isEmptyObject = false; this._scheduleExpression = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._scheduleExpression = value.scheduleExpression; } } // schedule_expression - computed: false, optional: false, required: true private _scheduleExpression?: string; public get scheduleExpression() { return this.getStringAttribute('schedule_expression'); } public set scheduleExpression(value: string) { this._scheduleExpression = value; } // Temporarily expose input value. Use with caution. public get scheduleExpressionInput() { return this._scheduleExpression; } } export interface DatasyncTaskTimeouts { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html#create DatasyncTask#create} */ readonly create?: string; } export function datasyncTaskTimeoutsToTerraform(struct?: DatasyncTaskTimeoutsOutputReference | DatasyncTaskTimeouts): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { create: cdktf.stringToTerraform(struct!.create), } } export class DatasyncTaskTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): DatasyncTaskTimeouts | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: DatasyncTaskTimeouts | undefined) { if (value === undefined) { this.isEmptyObject = false; this._create = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._create = value.create; } } // create - computed: false, optional: true, required: false private _create?: string; public get create() { return this.getStringAttribute('create'); } public set create(value: string) { this._create = value; } public resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. public get createInput() { return this._create; } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html aws_datasync_task} */ export class DatasyncTask extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_datasync_task"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/datasync_task.html aws_datasync_task} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options DatasyncTaskConfig */ public constructor(scope: Construct, id: string, config: DatasyncTaskConfig) { super(scope, id, { terraformResourceType: 'aws_datasync_task', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._cloudwatchLogGroupArn = config.cloudwatchLogGroupArn; this._destinationLocationArn = config.destinationLocationArn; this._name = config.name; this._sourceLocationArn = config.sourceLocationArn; this._tags = config.tags; this._tagsAll = config.tagsAll; this._excludes.internalValue = config.excludes; this._options.internalValue = config.options; this._schedule.internalValue = config.schedule; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // cloudwatch_log_group_arn - computed: false, optional: true, required: false private _cloudwatchLogGroupArn?: string; public get cloudwatchLogGroupArn() { return this.getStringAttribute('cloudwatch_log_group_arn'); } public set cloudwatchLogGroupArn(value: string) { this._cloudwatchLogGroupArn = value; } public resetCloudwatchLogGroupArn() { this._cloudwatchLogGroupArn = undefined; } // Temporarily expose input value. Use with caution. public get cloudwatchLogGroupArnInput() { return this._cloudwatchLogGroupArn; } // destination_location_arn - computed: false, optional: false, required: true private _destinationLocationArn?: string; public get destinationLocationArn() { return this.getStringAttribute('destination_location_arn'); } public set destinationLocationArn(value: string) { this._destinationLocationArn = value; } // Temporarily expose input value. Use with caution. public get destinationLocationArnInput() { return this._destinationLocationArn; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: false, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // source_location_arn - computed: false, optional: false, required: true private _sourceLocationArn?: string; public get sourceLocationArn() { return this.getStringAttribute('source_location_arn'); } public set sourceLocationArn(value: string) { this._sourceLocationArn = value; } // Temporarily expose input value. Use with caution. public get sourceLocationArnInput() { return this._sourceLocationArn; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // excludes - computed: false, optional: true, required: false private _excludes = new DatasyncTaskExcludesOutputReference(this as any, "excludes", true); public get excludes() { return this._excludes; } public putExcludes(value: DatasyncTaskExcludes) { this._excludes.internalValue = value; } public resetExcludes() { this._excludes.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get excludesInput() { return this._excludes.internalValue; } // options - computed: false, optional: true, required: false private _options = new DatasyncTaskOptionsOutputReference(this as any, "options", true); public get options() { return this._options; } public putOptions(value: DatasyncTaskOptions) { this._options.internalValue = value; } public resetOptions() { this._options.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get optionsInput() { return this._options.internalValue; } // schedule - computed: false, optional: true, required: false private _schedule = new DatasyncTaskScheduleOutputReference(this as any, "schedule", true); public get schedule() { return this._schedule; } public putSchedule(value: DatasyncTaskSchedule) { this._schedule.internalValue = value; } public resetSchedule() { this._schedule.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get scheduleInput() { return this._schedule.internalValue; } // timeouts - computed: false, optional: true, required: false private _timeouts = new DatasyncTaskTimeoutsOutputReference(this as any, "timeouts", true); public get timeouts() { return this._timeouts; } public putTimeouts(value: DatasyncTaskTimeouts) { this._timeouts.internalValue = value; } public resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get timeoutsInput() { return this._timeouts.internalValue; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { cloudwatch_log_group_arn: cdktf.stringToTerraform(this._cloudwatchLogGroupArn), destination_location_arn: cdktf.stringToTerraform(this._destinationLocationArn), name: cdktf.stringToTerraform(this._name), source_location_arn: cdktf.stringToTerraform(this._sourceLocationArn), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), excludes: datasyncTaskExcludesToTerraform(this._excludes.internalValue), options: datasyncTaskOptionsToTerraform(this._options.internalValue), schedule: datasyncTaskScheduleToTerraform(this._schedule.internalValue), timeouts: datasyncTaskTimeoutsToTerraform(this._timeouts.internalValue), }; } }