boto / boto3

AWS SDK for Python
https://aws.amazon.com/sdk-for-python/
Apache License 2.0
9.08k stars 1.87k forks source link

DataSync client create_task TaskMode parameter not accepted #4331

Closed giladrv closed 2 weeks ago

giladrv commented 3 weeks ago

Describe the bug

Creating a task with task mode:

src_datasync_task = boto3.client('datasync').create_task(..., TaskMode = 'ENHANCED')

leads to exception:

botocore.exceptions.ParamValidationError: Parameter validation failed: Unknown parameter in input: "TaskMode", must be one of: SourceLocationArn, DestinationLocationArn, CloudWatchLogGroupArn, Name, Options, Excludes, Schedule, Tags, Includes, ManifestConfig, TaskReportConfig

Regression Issue

Expected Behavior

According to the [docs], (https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/datasync/client/create_task.html), this parameter should be accepted.

Current Behavior

Getting an exception:

botocore.exceptions.ParamValidationError: Parameter validation failed: Unknown parameter in input: "TaskMode"

Reproduction Steps

create a task with TaskMode parameter specified.

Possible Solution

No response

Additional Information/Context

No response

SDK version used

1.34.145

Environment details (OS name and version, etc.)

MacOS Sequoia 15.0.1

github-actions[bot] commented 2 weeks ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.