Skip to content

DataSyncClient#

Index > DataSync > DataSyncClient

Auto-generated documentation for DataSync type annotations stubs module types-aiobotocore-datasync.

DataSyncClient#

Type annotations and code completion for session.create_client("datasync") boto3 documentation

DataSyncClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_datasync.client import DataSyncClient

session = get_session()
async with session.create_client("datasync") as client:
    client: DataSyncClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("datasync").exceptions structure.

DataSyncClient.exceptions usage example

async with session.create_client("datasync") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.InternalException,
        client.InvalidRequestException,
    ) as e:
        print(e)
DataSyncClient usage type checking example

from types_aiobotocore_datasync.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods#

add_storage_system#

Creates an Amazon Web Services resource for an on-premises storage system that you want DataSync Discovery to collect information about.

Type annotations and code completion for session.create_client("datasync").add_storage_system method. boto3 documentation

# add_storage_system method definition

await def add_storage_system(
    self,
    *,
    ServerConfiguration: DiscoveryServerConfigurationTypeDef,  # (1)
    SystemType: DiscoverySystemTypeType,  # (2)
    AgentArns: Sequence[str],
    ClientToken: str,
    Credentials: CredentialsTypeDef,  # (3)
    CloudWatchLogGroupArn: str = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (4)
    Name: str = ...,
) -> AddStorageSystemResponseTypeDef:  # (5)
    ...
  1. See DiscoveryServerConfigurationTypeDef
  2. See DiscoverySystemTypeType
  3. See CredentialsTypeDef
  4. See TagListEntryTypeDef
  5. See AddStorageSystemResponseTypeDef
# add_storage_system method usage example with argument unpacking

kwargs: AddStorageSystemRequestRequestTypeDef = {  # (1)
    "ServerConfiguration": ...,
    "SystemType": ...,
    "AgentArns": ...,
    "ClientToken": ...,
    "Credentials": ...,
}

parent.add_storage_system(**kwargs)
  1. See AddStorageSystemRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("datasync").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

cancel_task_execution#

Stops an DataSync task execution that's in progress.

Type annotations and code completion for session.create_client("datasync").cancel_task_execution method. boto3 documentation

# cancel_task_execution method definition

await def cancel_task_execution(
    self,
    *,
    TaskExecutionArn: str,
) -> Dict[str, Any]:
    ...
# cancel_task_execution method usage example with argument unpacking

kwargs: CancelTaskExecutionRequestRequestTypeDef = {  # (1)
    "TaskExecutionArn": ...,
}

parent.cancel_task_execution(**kwargs)
  1. See CancelTaskExecutionRequestRequestTypeDef

close#

Closes underlying endpoint connections.

Type annotations and code completion for session.create_client("datasync").close method. boto3 documentation

# close method definition

await def close(
    self,
) -> None:
    ...

create_agent#

Activates an DataSync agent that you've deployed in your storage environment.

Type annotations and code completion for session.create_client("datasync").create_agent method. boto3 documentation

# create_agent method definition

await def create_agent(
    self,
    *,
    ActivationKey: str,
    AgentName: str = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (1)
    VpcEndpointId: str = ...,
    SubnetArns: Sequence[str] = ...,
    SecurityGroupArns: Sequence[str] = ...,
) -> CreateAgentResponseTypeDef:  # (2)
    ...
  1. See TagListEntryTypeDef
  2. See CreateAgentResponseTypeDef
# create_agent method usage example with argument unpacking

kwargs: CreateAgentRequestRequestTypeDef = {  # (1)
    "ActivationKey": ...,
}

parent.create_agent(**kwargs)
  1. See CreateAgentRequestRequestTypeDef

create_location_azure_blob#

Creates an endpoint for a Microsoft Azure Blob Storage container that DataSync can use as a transfer source or destination.

Type annotations and code completion for session.create_client("datasync").create_location_azure_blob method. boto3 documentation

# create_location_azure_blob method definition

await def create_location_azure_blob(
    self,
    *,
    ContainerUrl: str,
    AuthenticationType: AzureBlobAuthenticationTypeType,  # (1)
    AgentArns: Sequence[str],
    SasConfiguration: AzureBlobSasConfigurationTypeDef = ...,  # (2)
    BlobType: AzureBlobTypeType = ...,  # (3)
    AccessTier: AzureAccessTierType = ...,  # (4)
    Subdirectory: str = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (5)
) -> CreateLocationAzureBlobResponseTypeDef:  # (6)
    ...
  1. See AzureBlobAuthenticationTypeType
  2. See AzureBlobSasConfigurationTypeDef
  3. See AzureBlobTypeType
  4. See AzureAccessTierType
  5. See TagListEntryTypeDef
  6. See CreateLocationAzureBlobResponseTypeDef
# create_location_azure_blob method usage example with argument unpacking

kwargs: CreateLocationAzureBlobRequestRequestTypeDef = {  # (1)
    "ContainerUrl": ...,
    "AuthenticationType": ...,
    "AgentArns": ...,
}

parent.create_location_azure_blob(**kwargs)
  1. See CreateLocationAzureBlobRequestRequestTypeDef

create_location_efs#

Creates an endpoint for an Amazon EFS file system that DataSync can access for a transfer.

Type annotations and code completion for session.create_client("datasync").create_location_efs method. boto3 documentation

# create_location_efs method definition

await def create_location_efs(
    self,
    *,
    EfsFilesystemArn: str,
    Ec2Config: Ec2ConfigTypeDef,  # (1)
    Subdirectory: str = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (2)
    AccessPointArn: str = ...,
    FileSystemAccessRoleArn: str = ...,
    InTransitEncryption: EfsInTransitEncryptionType = ...,  # (3)
) -> CreateLocationEfsResponseTypeDef:  # (4)
    ...
  1. See Ec2ConfigTypeDef
  2. See TagListEntryTypeDef
  3. See EfsInTransitEncryptionType
  4. See CreateLocationEfsResponseTypeDef
# create_location_efs method usage example with argument unpacking

kwargs: CreateLocationEfsRequestRequestTypeDef = {  # (1)
    "EfsFilesystemArn": ...,
    "Ec2Config": ...,
}

parent.create_location_efs(**kwargs)
  1. See CreateLocationEfsRequestRequestTypeDef

create_location_fsx_lustre#

Creates an endpoint for an Amazon FSx for Lustre file system.

Type annotations and code completion for session.create_client("datasync").create_location_fsx_lustre method. boto3 documentation

# create_location_fsx_lustre method definition

await def create_location_fsx_lustre(
    self,
    *,
    FsxFilesystemArn: str,
    SecurityGroupArns: Sequence[str],
    Subdirectory: str = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (1)
) -> CreateLocationFsxLustreResponseTypeDef:  # (2)
    ...
  1. See TagListEntryTypeDef
  2. See CreateLocationFsxLustreResponseTypeDef
# create_location_fsx_lustre method usage example with argument unpacking

kwargs: CreateLocationFsxLustreRequestRequestTypeDef = {  # (1)
    "FsxFilesystemArn": ...,
    "SecurityGroupArns": ...,
}

parent.create_location_fsx_lustre(**kwargs)
  1. See CreateLocationFsxLustreRequestRequestTypeDef

create_location_fsx_ontap#

Creates an endpoint for an Amazon FSx for NetApp ONTAP file system that DataSync can access for a transfer.

Type annotations and code completion for session.create_client("datasync").create_location_fsx_ontap method. boto3 documentation

# create_location_fsx_ontap method definition

await def create_location_fsx_ontap(
    self,
    *,
    Protocol: FsxProtocolTypeDef,  # (1)
    SecurityGroupArns: Sequence[str],
    StorageVirtualMachineArn: str,
    Subdirectory: str = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (2)
) -> CreateLocationFsxOntapResponseTypeDef:  # (3)
    ...
  1. See FsxProtocolTypeDef
  2. See TagListEntryTypeDef
  3. See CreateLocationFsxOntapResponseTypeDef
# create_location_fsx_ontap method usage example with argument unpacking

kwargs: CreateLocationFsxOntapRequestRequestTypeDef = {  # (1)
    "Protocol": ...,
    "SecurityGroupArns": ...,
    "StorageVirtualMachineArn": ...,
}

parent.create_location_fsx_ontap(**kwargs)
  1. See CreateLocationFsxOntapRequestRequestTypeDef

create_location_fsx_open_zfs#

Creates an endpoint for an Amazon FSx for OpenZFS file system that DataSync can access for a transfer.

Type annotations and code completion for session.create_client("datasync").create_location_fsx_open_zfs method. boto3 documentation

# create_location_fsx_open_zfs method definition

await def create_location_fsx_open_zfs(
    self,
    *,
    FsxFilesystemArn: str,
    Protocol: FsxProtocolTypeDef,  # (1)
    SecurityGroupArns: Sequence[str],
    Subdirectory: str = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (2)
) -> CreateLocationFsxOpenZfsResponseTypeDef:  # (3)
    ...
  1. See FsxProtocolTypeDef
  2. See TagListEntryTypeDef
  3. See CreateLocationFsxOpenZfsResponseTypeDef
# create_location_fsx_open_zfs method usage example with argument unpacking

kwargs: CreateLocationFsxOpenZfsRequestRequestTypeDef = {  # (1)
    "FsxFilesystemArn": ...,
    "Protocol": ...,
    "SecurityGroupArns": ...,
}

parent.create_location_fsx_open_zfs(**kwargs)
  1. See CreateLocationFsxOpenZfsRequestRequestTypeDef

create_location_fsx_windows#

Creates an endpoint for an Amazon FSx for Windows File Server file system.

Type annotations and code completion for session.create_client("datasync").create_location_fsx_windows method. boto3 documentation

# create_location_fsx_windows method definition

await def create_location_fsx_windows(
    self,
    *,
    FsxFilesystemArn: str,
    SecurityGroupArns: Sequence[str],
    User: str,
    Password: str,
    Subdirectory: str = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (1)
    Domain: str = ...,
) -> CreateLocationFsxWindowsResponseTypeDef:  # (2)
    ...
  1. See TagListEntryTypeDef
  2. See CreateLocationFsxWindowsResponseTypeDef
# create_location_fsx_windows method usage example with argument unpacking

kwargs: CreateLocationFsxWindowsRequestRequestTypeDef = {  # (1)
    "FsxFilesystemArn": ...,
    "SecurityGroupArns": ...,
    "User": ...,
    "Password": ...,
}

parent.create_location_fsx_windows(**kwargs)
  1. See CreateLocationFsxWindowsRequestRequestTypeDef

create_location_hdfs#

Creates an endpoint for a Hadoop Distributed File System (HDFS).

Type annotations and code completion for session.create_client("datasync").create_location_hdfs method. boto3 documentation

# create_location_hdfs method definition

await def create_location_hdfs(
    self,
    *,
    NameNodes: Sequence[HdfsNameNodeTypeDef],  # (1)
    AuthenticationType: HdfsAuthenticationTypeType,  # (2)
    AgentArns: Sequence[str],
    Subdirectory: str = ...,
    BlockSize: int = ...,
    ReplicationFactor: int = ...,
    KmsKeyProviderUri: str = ...,
    QopConfiguration: QopConfigurationTypeDef = ...,  # (3)
    SimpleUser: str = ...,
    KerberosPrincipal: str = ...,
    KerberosKeytab: Union[str, bytes, IO[Any], StreamingBody] = ...,
    KerberosKrb5Conf: Union[str, bytes, IO[Any], StreamingBody] = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (4)
) -> CreateLocationHdfsResponseTypeDef:  # (5)
    ...
  1. See HdfsNameNodeTypeDef
  2. See HdfsAuthenticationTypeType
  3. See QopConfigurationTypeDef
  4. See TagListEntryTypeDef
  5. See CreateLocationHdfsResponseTypeDef
# create_location_hdfs method usage example with argument unpacking

kwargs: CreateLocationHdfsRequestRequestTypeDef = {  # (1)
    "NameNodes": ...,
    "AuthenticationType": ...,
    "AgentArns": ...,
}

parent.create_location_hdfs(**kwargs)
  1. See CreateLocationHdfsRequestRequestTypeDef

create_location_nfs#

Creates an endpoint for a Network File System (NFS) file server that DataSync can use for a data transfer.

Type annotations and code completion for session.create_client("datasync").create_location_nfs method. boto3 documentation

# create_location_nfs method definition

await def create_location_nfs(
    self,
    *,
    Subdirectory: str,
    ServerHostname: str,
    OnPremConfig: OnPremConfigTypeDef,  # (1)
    MountOptions: NfsMountOptionsTypeDef = ...,  # (2)
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (3)
) -> CreateLocationNfsResponseTypeDef:  # (4)
    ...
  1. See OnPremConfigTypeDef
  2. See NfsMountOptionsTypeDef
  3. See TagListEntryTypeDef
  4. See CreateLocationNfsResponseTypeDef
# create_location_nfs method usage example with argument unpacking

kwargs: CreateLocationNfsRequestRequestTypeDef = {  # (1)
    "Subdirectory": ...,
    "ServerHostname": ...,
    "OnPremConfig": ...,
}

parent.create_location_nfs(**kwargs)
  1. See CreateLocationNfsRequestRequestTypeDef

create_location_object_storage#

Creates an endpoint for an object storage system that DataSync can access for a transfer.

Type annotations and code completion for session.create_client("datasync").create_location_object_storage method. boto3 documentation

# create_location_object_storage method definition

await def create_location_object_storage(
    self,
    *,
    ServerHostname: str,
    BucketName: str,
    AgentArns: Sequence[str],
    ServerPort: int = ...,
    ServerProtocol: ObjectStorageServerProtocolType = ...,  # (1)
    Subdirectory: str = ...,
    AccessKey: str = ...,
    SecretKey: str = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (2)
    ServerCertificate: Union[str, bytes, IO[Any], StreamingBody] = ...,
) -> CreateLocationObjectStorageResponseTypeDef:  # (3)
    ...
  1. See ObjectStorageServerProtocolType
  2. See TagListEntryTypeDef
  3. See CreateLocationObjectStorageResponseTypeDef
# create_location_object_storage method usage example with argument unpacking

kwargs: CreateLocationObjectStorageRequestRequestTypeDef = {  # (1)
    "ServerHostname": ...,
    "BucketName": ...,
    "AgentArns": ...,
}

parent.create_location_object_storage(**kwargs)
  1. See CreateLocationObjectStorageRequestRequestTypeDef

create_location_s3#

A location is an endpoint for an Amazon S3 bucket.

Type annotations and code completion for session.create_client("datasync").create_location_s3 method. boto3 documentation

# create_location_s3 method definition

await def create_location_s3(
    self,
    *,
    S3BucketArn: str,
    S3Config: S3ConfigTypeDef,  # (1)
    Subdirectory: str = ...,
    S3StorageClass: S3StorageClassType = ...,  # (2)
    AgentArns: Sequence[str] = ...,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (3)
) -> CreateLocationS3ResponseTypeDef:  # (4)
    ...
  1. See S3ConfigTypeDef
  2. See S3StorageClassType
  3. See TagListEntryTypeDef
  4. See CreateLocationS3ResponseTypeDef
# create_location_s3 method usage example with argument unpacking

kwargs: CreateLocationS3RequestRequestTypeDef = {  # (1)
    "S3BucketArn": ...,
    "S3Config": ...,
}

parent.create_location_s3(**kwargs)
  1. See CreateLocationS3RequestRequestTypeDef

create_location_smb#

Creates an endpoint for a Server Message Block (SMB) file server that DataSync can use for a data transfer.

Type annotations and code completion for session.create_client("datasync").create_location_smb method. boto3 documentation

# create_location_smb method definition

await def create_location_smb(
    self,
    *,
    Subdirectory: str,
    ServerHostname: str,
    User: str,
    Password: str,
    AgentArns: Sequence[str],
    Domain: str = ...,
    MountOptions: SmbMountOptionsTypeDef = ...,  # (1)
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (2)
) -> CreateLocationSmbResponseTypeDef:  # (3)
    ...
  1. See SmbMountOptionsTypeDef
  2. See TagListEntryTypeDef
  3. See CreateLocationSmbResponseTypeDef
# create_location_smb method usage example with argument unpacking

kwargs: CreateLocationSmbRequestRequestTypeDef = {  # (1)
    "Subdirectory": ...,
    "ServerHostname": ...,
    "User": ...,
    "Password": ...,
    "AgentArns": ...,
}

parent.create_location_smb(**kwargs)
  1. See CreateLocationSmbRequestRequestTypeDef

create_task#

Configures a task, which defines where and how DataSync transfers your data.

Type annotations and code completion for session.create_client("datasync").create_task method. boto3 documentation

# create_task method definition

await def create_task(
    self,
    *,
    SourceLocationArn: str,
    DestinationLocationArn: str,
    CloudWatchLogGroupArn: str = ...,
    Name: str = ...,
    Options: OptionsTypeDef = ...,  # (1)
    Excludes: Sequence[FilterRuleTypeDef] = ...,  # (2)
    Schedule: TaskScheduleTypeDef = ...,  # (3)
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (4)
    Includes: Sequence[FilterRuleTypeDef] = ...,  # (2)
) -> CreateTaskResponseTypeDef:  # (6)
    ...
  1. See OptionsTypeDef
  2. See FilterRuleTypeDef
  3. See TaskScheduleTypeDef
  4. See TagListEntryTypeDef
  5. See FilterRuleTypeDef
  6. See CreateTaskResponseTypeDef
# create_task method usage example with argument unpacking

kwargs: CreateTaskRequestRequestTypeDef = {  # (1)
    "SourceLocationArn": ...,
    "DestinationLocationArn": ...,
}

parent.create_task(**kwargs)
  1. See CreateTaskRequestRequestTypeDef

delete_agent#

Deletes an agent.

Type annotations and code completion for session.create_client("datasync").delete_agent method. boto3 documentation

# delete_agent method definition

await def delete_agent(
    self,
    *,
    AgentArn: str,
) -> Dict[str, Any]:
    ...
# delete_agent method usage example with argument unpacking

kwargs: DeleteAgentRequestRequestTypeDef = {  # (1)
    "AgentArn": ...,
}

parent.delete_agent(**kwargs)
  1. See DeleteAgentRequestRequestTypeDef

delete_location#

Deletes the configuration of a location used by DataSync.

Type annotations and code completion for session.create_client("datasync").delete_location method. boto3 documentation

# delete_location method definition

await def delete_location(
    self,
    *,
    LocationArn: str,
) -> Dict[str, Any]:
    ...
# delete_location method usage example with argument unpacking

kwargs: DeleteLocationRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.delete_location(**kwargs)
  1. See DeleteLocationRequestRequestTypeDef

delete_task#

Deletes an DataSync task.

Type annotations and code completion for session.create_client("datasync").delete_task method. boto3 documentation

# delete_task method definition

await def delete_task(
    self,
    *,
    TaskArn: str,
) -> Dict[str, Any]:
    ...
# delete_task method usage example with argument unpacking

kwargs: DeleteTaskRequestRequestTypeDef = {  # (1)
    "TaskArn": ...,
}

parent.delete_task(**kwargs)
  1. See DeleteTaskRequestRequestTypeDef

describe_agent#

Returns metadata about an DataSync agent, such as its name, endpoint type, and status.

Type annotations and code completion for session.create_client("datasync").describe_agent method. boto3 documentation

# describe_agent method definition

await def describe_agent(
    self,
    *,
    AgentArn: str,
) -> DescribeAgentResponseTypeDef:  # (1)
    ...
  1. See DescribeAgentResponseTypeDef
# describe_agent method usage example with argument unpacking

kwargs: DescribeAgentRequestRequestTypeDef = {  # (1)
    "AgentArn": ...,
}

parent.describe_agent(**kwargs)
  1. See DescribeAgentRequestRequestTypeDef

describe_discovery_job#

Returns information about a DataSync discovery job.

Type annotations and code completion for session.create_client("datasync").describe_discovery_job method. boto3 documentation

# describe_discovery_job method definition

await def describe_discovery_job(
    self,
    *,
    DiscoveryJobArn: str,
) -> DescribeDiscoveryJobResponseTypeDef:  # (1)
    ...
  1. See DescribeDiscoveryJobResponseTypeDef
# describe_discovery_job method usage example with argument unpacking

kwargs: DescribeDiscoveryJobRequestRequestTypeDef = {  # (1)
    "DiscoveryJobArn": ...,
}

parent.describe_discovery_job(**kwargs)
  1. See DescribeDiscoveryJobRequestRequestTypeDef

describe_location_azure_blob#

Provides details about how an DataSync transfer location for Microsoft Azure Blob Storage is configured.

Type annotations and code completion for session.create_client("datasync").describe_location_azure_blob method. boto3 documentation

# describe_location_azure_blob method definition

await def describe_location_azure_blob(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationAzureBlobResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationAzureBlobResponseTypeDef
# describe_location_azure_blob method usage example with argument unpacking

kwargs: DescribeLocationAzureBlobRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_azure_blob(**kwargs)
  1. See DescribeLocationAzureBlobRequestRequestTypeDef

describe_location_efs#

Returns metadata about your DataSync location for an Amazon EFS file system.

Type annotations and code completion for session.create_client("datasync").describe_location_efs method. boto3 documentation

# describe_location_efs method definition

await def describe_location_efs(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationEfsResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationEfsResponseTypeDef
# describe_location_efs method usage example with argument unpacking

kwargs: DescribeLocationEfsRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_efs(**kwargs)
  1. See DescribeLocationEfsRequestRequestTypeDef

describe_location_fsx_lustre#

Provides details about how an DataSync location for an Amazon FSx for Lustre file system is configured.

Type annotations and code completion for session.create_client("datasync").describe_location_fsx_lustre method. boto3 documentation

# describe_location_fsx_lustre method definition

await def describe_location_fsx_lustre(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationFsxLustreResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationFsxLustreResponseTypeDef
# describe_location_fsx_lustre method usage example with argument unpacking

kwargs: DescribeLocationFsxLustreRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_fsx_lustre(**kwargs)
  1. See DescribeLocationFsxLustreRequestRequestTypeDef

describe_location_fsx_ontap#

Provides details about how an DataSync location for an Amazon FSx for NetApp ONTAP file system is configured.

Type annotations and code completion for session.create_client("datasync").describe_location_fsx_ontap method. boto3 documentation

# describe_location_fsx_ontap method definition

await def describe_location_fsx_ontap(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationFsxOntapResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationFsxOntapResponseTypeDef
# describe_location_fsx_ontap method usage example with argument unpacking

kwargs: DescribeLocationFsxOntapRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_fsx_ontap(**kwargs)
  1. See DescribeLocationFsxOntapRequestRequestTypeDef

describe_location_fsx_open_zfs#

Provides details about how an DataSync location for an Amazon FSx for OpenZFS file system is configured.

Type annotations and code completion for session.create_client("datasync").describe_location_fsx_open_zfs method. boto3 documentation

# describe_location_fsx_open_zfs method definition

await def describe_location_fsx_open_zfs(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationFsxOpenZfsResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationFsxOpenZfsResponseTypeDef
# describe_location_fsx_open_zfs method usage example with argument unpacking

kwargs: DescribeLocationFsxOpenZfsRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_fsx_open_zfs(**kwargs)
  1. See DescribeLocationFsxOpenZfsRequestRequestTypeDef

describe_location_fsx_windows#

Returns metadata about an Amazon FSx for Windows File Server location, such as information about its path.

Type annotations and code completion for session.create_client("datasync").describe_location_fsx_windows method. boto3 documentation

# describe_location_fsx_windows method definition

await def describe_location_fsx_windows(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationFsxWindowsResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationFsxWindowsResponseTypeDef
# describe_location_fsx_windows method usage example with argument unpacking

kwargs: DescribeLocationFsxWindowsRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_fsx_windows(**kwargs)
  1. See DescribeLocationFsxWindowsRequestRequestTypeDef

describe_location_hdfs#

Returns metadata, such as the authentication information about the Hadoop Distributed File System (HDFS) location.

Type annotations and code completion for session.create_client("datasync").describe_location_hdfs method. boto3 documentation

# describe_location_hdfs method definition

await def describe_location_hdfs(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationHdfsResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationHdfsResponseTypeDef
# describe_location_hdfs method usage example with argument unpacking

kwargs: DescribeLocationHdfsRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_hdfs(**kwargs)
  1. See DescribeLocationHdfsRequestRequestTypeDef

describe_location_nfs#

Provides details about how an DataSync transfer location for a Network File System (NFS) file server is configured.

Type annotations and code completion for session.create_client("datasync").describe_location_nfs method. boto3 documentation

# describe_location_nfs method definition

await def describe_location_nfs(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationNfsResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationNfsResponseTypeDef
# describe_location_nfs method usage example with argument unpacking

kwargs: DescribeLocationNfsRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_nfs(**kwargs)
  1. See DescribeLocationNfsRequestRequestTypeDef

describe_location_object_storage#

Returns metadata about your DataSync location for an object storage system.

Type annotations and code completion for session.create_client("datasync").describe_location_object_storage method. boto3 documentation

# describe_location_object_storage method definition

await def describe_location_object_storage(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationObjectStorageResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationObjectStorageResponseTypeDef
# describe_location_object_storage method usage example with argument unpacking

kwargs: DescribeLocationObjectStorageRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_object_storage(**kwargs)
  1. See DescribeLocationObjectStorageRequestRequestTypeDef

describe_location_s3#

Returns metadata, such as bucket name, about an Amazon S3 bucket location.

Type annotations and code completion for session.create_client("datasync").describe_location_s3 method. boto3 documentation

# describe_location_s3 method definition

await def describe_location_s3(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationS3ResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationS3ResponseTypeDef
# describe_location_s3 method usage example with argument unpacking

kwargs: DescribeLocationS3RequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_s3(**kwargs)
  1. See DescribeLocationS3RequestRequestTypeDef

describe_location_smb#

Returns metadata, such as the path and user information about an SMB location.

Type annotations and code completion for session.create_client("datasync").describe_location_smb method. boto3 documentation

# describe_location_smb method definition

await def describe_location_smb(
    self,
    *,
    LocationArn: str,
) -> DescribeLocationSmbResponseTypeDef:  # (1)
    ...
  1. See DescribeLocationSmbResponseTypeDef
# describe_location_smb method usage example with argument unpacking

kwargs: DescribeLocationSmbRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.describe_location_smb(**kwargs)
  1. See DescribeLocationSmbRequestRequestTypeDef

describe_storage_system#

Returns information about an on-premises storage system that you're using with DataSync Discovery.

Type annotations and code completion for session.create_client("datasync").describe_storage_system method. boto3 documentation

# describe_storage_system method definition

await def describe_storage_system(
    self,
    *,
    StorageSystemArn: str,
) -> DescribeStorageSystemResponseTypeDef:  # (1)
    ...
  1. See DescribeStorageSystemResponseTypeDef
# describe_storage_system method usage example with argument unpacking

kwargs: DescribeStorageSystemRequestRequestTypeDef = {  # (1)
    "StorageSystemArn": ...,
}

parent.describe_storage_system(**kwargs)
  1. See DescribeStorageSystemRequestRequestTypeDef

describe_storage_system_resource_metrics#

Returns information, including performance data and capacity usage, which DataSync Discovery collects about a specific resource in your-premises storage system.

Type annotations and code completion for session.create_client("datasync").describe_storage_system_resource_metrics method. boto3 documentation

# describe_storage_system_resource_metrics method definition

await def describe_storage_system_resource_metrics(
    self,
    *,
    DiscoveryJobArn: str,
    ResourceType: DiscoveryResourceTypeType,  # (1)
    ResourceId: str,
    StartTime: Union[datetime, str] = ...,
    EndTime: Union[datetime, str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeStorageSystemResourceMetricsResponseTypeDef:  # (2)
    ...
  1. See DiscoveryResourceTypeType
  2. See DescribeStorageSystemResourceMetricsResponseTypeDef
# describe_storage_system_resource_metrics method usage example with argument unpacking

kwargs: DescribeStorageSystemResourceMetricsRequestRequestTypeDef = {  # (1)
    "DiscoveryJobArn": ...,
    "ResourceType": ...,
    "ResourceId": ...,
}

parent.describe_storage_system_resource_metrics(**kwargs)
  1. See DescribeStorageSystemResourceMetricsRequestRequestTypeDef

describe_storage_system_resources#

Returns information that DataSync Discovery collects about resources in your on- premises storage system.

Type annotations and code completion for session.create_client("datasync").describe_storage_system_resources method. boto3 documentation

# describe_storage_system_resources method definition

await def describe_storage_system_resources(
    self,
    *,
    DiscoveryJobArn: str,
    ResourceType: DiscoveryResourceTypeType,  # (1)
    ResourceIds: Sequence[str] = ...,
    Filter: Mapping[DiscoveryResourceFilterType, Sequence[str]] = ...,  # (2)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeStorageSystemResourcesResponseTypeDef:  # (3)
    ...
  1. See DiscoveryResourceTypeType
  2. See DiscoveryResourceFilterType
  3. See DescribeStorageSystemResourcesResponseTypeDef
# describe_storage_system_resources method usage example with argument unpacking

kwargs: DescribeStorageSystemResourcesRequestRequestTypeDef = {  # (1)
    "DiscoveryJobArn": ...,
    "ResourceType": ...,
}

parent.describe_storage_system_resources(**kwargs)
  1. See DescribeStorageSystemResourcesRequestRequestTypeDef

describe_task#

Provides information about an DataSync transfer task.

Type annotations and code completion for session.create_client("datasync").describe_task method. boto3 documentation

# describe_task method definition

await def describe_task(
    self,
    *,
    TaskArn: str,
) -> DescribeTaskResponseTypeDef:  # (1)
    ...
  1. See DescribeTaskResponseTypeDef
# describe_task method usage example with argument unpacking

kwargs: DescribeTaskRequestRequestTypeDef = {  # (1)
    "TaskArn": ...,
}

parent.describe_task(**kwargs)
  1. See DescribeTaskRequestRequestTypeDef

describe_task_execution#

Provides information about an DataSync transfer task that's running.

Type annotations and code completion for session.create_client("datasync").describe_task_execution method. boto3 documentation

# describe_task_execution method definition

await def describe_task_execution(
    self,
    *,
    TaskExecutionArn: str,
) -> DescribeTaskExecutionResponseTypeDef:  # (1)
    ...
  1. See DescribeTaskExecutionResponseTypeDef
# describe_task_execution method usage example with argument unpacking

kwargs: DescribeTaskExecutionRequestRequestTypeDef = {  # (1)
    "TaskExecutionArn": ...,
}

parent.describe_task_execution(**kwargs)
  1. See DescribeTaskExecutionRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.create_client("datasync").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

generate_recommendations#

Creates recommendations about where to migrate your data to in Amazon Web Services.

Type annotations and code completion for session.create_client("datasync").generate_recommendations method. boto3 documentation

# generate_recommendations method definition

await def generate_recommendations(
    self,
    *,
    DiscoveryJobArn: str,
    ResourceIds: Sequence[str],
    ResourceType: DiscoveryResourceTypeType,  # (1)
) -> Dict[str, Any]:
    ...
  1. See DiscoveryResourceTypeType
# generate_recommendations method usage example with argument unpacking

kwargs: GenerateRecommendationsRequestRequestTypeDef = {  # (1)
    "DiscoveryJobArn": ...,
    "ResourceIds": ...,
    "ResourceType": ...,
}

parent.generate_recommendations(**kwargs)
  1. See GenerateRecommendationsRequestRequestTypeDef

list_agents#

Returns a list of DataSync agents that belong to an Amazon Web Services account in the Amazon Web Services Region specified in the request.

Type annotations and code completion for session.create_client("datasync").list_agents method. boto3 documentation

# list_agents method definition

await def list_agents(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListAgentsResponseTypeDef:  # (1)
    ...
  1. See ListAgentsResponseTypeDef
# list_agents method usage example with argument unpacking

kwargs: ListAgentsRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_agents(**kwargs)
  1. See ListAgentsRequestRequestTypeDef

list_discovery_jobs#

Provides a list of the existing discovery jobs in the Amazon Web Services Region and Amazon Web Services account where you're using DataSync Discovery.

Type annotations and code completion for session.create_client("datasync").list_discovery_jobs method. boto3 documentation

# list_discovery_jobs method definition

await def list_discovery_jobs(
    self,
    *,
    StorageSystemArn: str = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListDiscoveryJobsResponseTypeDef:  # (1)
    ...
  1. See ListDiscoveryJobsResponseTypeDef
# list_discovery_jobs method usage example with argument unpacking

kwargs: ListDiscoveryJobsRequestRequestTypeDef = {  # (1)
    "StorageSystemArn": ...,
}

parent.list_discovery_jobs(**kwargs)
  1. See ListDiscoveryJobsRequestRequestTypeDef

list_locations#

Returns a list of source and destination locations.

Type annotations and code completion for session.create_client("datasync").list_locations method. boto3 documentation

# list_locations method definition

await def list_locations(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[LocationFilterTypeDef] = ...,  # (1)
) -> ListLocationsResponseTypeDef:  # (2)
    ...
  1. See LocationFilterTypeDef
  2. See ListLocationsResponseTypeDef
# list_locations method usage example with argument unpacking

kwargs: ListLocationsRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_locations(**kwargs)
  1. See ListLocationsRequestRequestTypeDef

list_storage_systems#

Lists the on-premises storage systems that you're using with DataSync Discovery.

Type annotations and code completion for session.create_client("datasync").list_storage_systems method. boto3 documentation

# list_storage_systems method definition

await def list_storage_systems(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListStorageSystemsResponseTypeDef:  # (1)
    ...
  1. See ListStorageSystemsResponseTypeDef
# list_storage_systems method usage example with argument unpacking

kwargs: ListStorageSystemsRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_storage_systems(**kwargs)
  1. See ListStorageSystemsRequestRequestTypeDef

list_tags_for_resource#

Returns all the tags associated with an Amazon Web Services resource.

Type annotations and code completion for session.create_client("datasync").list_tags_for_resource method. boto3 documentation

# list_tags_for_resource method definition

await def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

list_task_executions#

Returns a list of executed tasks.

Type annotations and code completion for session.create_client("datasync").list_task_executions method. boto3 documentation

# list_task_executions method definition

await def list_task_executions(
    self,
    *,
    TaskArn: str = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListTaskExecutionsResponseTypeDef:  # (1)
    ...
  1. See ListTaskExecutionsResponseTypeDef
# list_task_executions method usage example with argument unpacking

kwargs: ListTaskExecutionsRequestRequestTypeDef = {  # (1)
    "TaskArn": ...,
}

parent.list_task_executions(**kwargs)
  1. See ListTaskExecutionsRequestRequestTypeDef

list_tasks#

Returns a list of the DataSync tasks you created.

Type annotations and code completion for session.create_client("datasync").list_tasks method. boto3 documentation

# list_tasks method definition

await def list_tasks(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[TaskFilterTypeDef] = ...,  # (1)
) -> ListTasksResponseTypeDef:  # (2)
    ...
  1. See TaskFilterTypeDef
  2. See ListTasksResponseTypeDef
# list_tasks method usage example with argument unpacking

kwargs: ListTasksRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_tasks(**kwargs)
  1. See ListTasksRequestRequestTypeDef

remove_storage_system#

Permanently removes a storage system resource from DataSync Discovery, including the associated discovery jobs, collected data, and recommendations.

Type annotations and code completion for session.create_client("datasync").remove_storage_system method. boto3 documentation

# remove_storage_system method definition

await def remove_storage_system(
    self,
    *,
    StorageSystemArn: str,
) -> Dict[str, Any]:
    ...
# remove_storage_system method usage example with argument unpacking

kwargs: RemoveStorageSystemRequestRequestTypeDef = {  # (1)
    "StorageSystemArn": ...,
}

parent.remove_storage_system(**kwargs)
  1. See RemoveStorageSystemRequestRequestTypeDef

start_discovery_job#

Runs a DataSync discovery job on your on-premises storage system.

Type annotations and code completion for session.create_client("datasync").start_discovery_job method. boto3 documentation

# start_discovery_job method definition

await def start_discovery_job(
    self,
    *,
    StorageSystemArn: str,
    CollectionDurationMinutes: int,
    ClientToken: str,
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (1)
) -> StartDiscoveryJobResponseTypeDef:  # (2)
    ...
  1. See TagListEntryTypeDef
  2. See StartDiscoveryJobResponseTypeDef
# start_discovery_job method usage example with argument unpacking

kwargs: StartDiscoveryJobRequestRequestTypeDef = {  # (1)
    "StorageSystemArn": ...,
    "CollectionDurationMinutes": ...,
    "ClientToken": ...,
}

parent.start_discovery_job(**kwargs)
  1. See StartDiscoveryJobRequestRequestTypeDef

start_task_execution#

Starts an DataSync task.

Type annotations and code completion for session.create_client("datasync").start_task_execution method. boto3 documentation

# start_task_execution method definition

await def start_task_execution(
    self,
    *,
    TaskArn: str,
    OverrideOptions: OptionsTypeDef = ...,  # (1)
    Includes: Sequence[FilterRuleTypeDef] = ...,  # (2)
    Excludes: Sequence[FilterRuleTypeDef] = ...,  # (2)
    Tags: Sequence[TagListEntryTypeDef] = ...,  # (4)
) -> StartTaskExecutionResponseTypeDef:  # (5)
    ...
  1. See OptionsTypeDef
  2. See FilterRuleTypeDef
  3. See FilterRuleTypeDef
  4. See TagListEntryTypeDef
  5. See StartTaskExecutionResponseTypeDef
# start_task_execution method usage example with argument unpacking

kwargs: StartTaskExecutionRequestRequestTypeDef = {  # (1)
    "TaskArn": ...,
}

parent.start_task_execution(**kwargs)
  1. See StartTaskExecutionRequestRequestTypeDef

stop_discovery_job#

Stops a running DataSync discovery job.

Type annotations and code completion for session.create_client("datasync").stop_discovery_job method. boto3 documentation

# stop_discovery_job method definition

await def stop_discovery_job(
    self,
    *,
    DiscoveryJobArn: str,
) -> Dict[str, Any]:
    ...
# stop_discovery_job method usage example with argument unpacking

kwargs: StopDiscoveryJobRequestRequestTypeDef = {  # (1)
    "DiscoveryJobArn": ...,
}

parent.stop_discovery_job(**kwargs)
  1. See StopDiscoveryJobRequestRequestTypeDef

tag_resource#

Applies a tag to an Amazon Web Services resource.

Type annotations and code completion for session.create_client("datasync").tag_resource method. boto3 documentation

# tag_resource method definition

await def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Sequence[TagListEntryTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagListEntryTypeDef
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource#

Removes tags from an Amazon Web Services resource.

Type annotations and code completion for session.create_client("datasync").untag_resource method. boto3 documentation

# untag_resource method definition

await def untag_resource(
    self,
    *,
    ResourceArn: str,
    Keys: Sequence[str],
) -> Dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Keys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_agent#

Updates the name of an agent.

Type annotations and code completion for session.create_client("datasync").update_agent method. boto3 documentation

# update_agent method definition

await def update_agent(
    self,
    *,
    AgentArn: str,
    Name: str = ...,
) -> Dict[str, Any]:
    ...
# update_agent method usage example with argument unpacking

kwargs: UpdateAgentRequestRequestTypeDef = {  # (1)
    "AgentArn": ...,
}

parent.update_agent(**kwargs)
  1. See UpdateAgentRequestRequestTypeDef

update_discovery_job#

Edits a DataSync discovery job configuration.

Type annotations and code completion for session.create_client("datasync").update_discovery_job method. boto3 documentation

# update_discovery_job method definition

await def update_discovery_job(
    self,
    *,
    DiscoveryJobArn: str,
    CollectionDurationMinutes: int,
) -> Dict[str, Any]:
    ...
# update_discovery_job method usage example with argument unpacking

kwargs: UpdateDiscoveryJobRequestRequestTypeDef = {  # (1)
    "DiscoveryJobArn": ...,
    "CollectionDurationMinutes": ...,
}

parent.update_discovery_job(**kwargs)
  1. See UpdateDiscoveryJobRequestRequestTypeDef

update_location_azure_blob#

Modifies some configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync.

Type annotations and code completion for session.create_client("datasync").update_location_azure_blob method. boto3 documentation

# update_location_azure_blob method definition

await def update_location_azure_blob(
    self,
    *,
    LocationArn: str,
    Subdirectory: str = ...,
    AuthenticationType: AzureBlobAuthenticationTypeType = ...,  # (1)
    SasConfiguration: AzureBlobSasConfigurationTypeDef = ...,  # (2)
    BlobType: AzureBlobTypeType = ...,  # (3)
    AccessTier: AzureAccessTierType = ...,  # (4)
    AgentArns: Sequence[str] = ...,
) -> Dict[str, Any]:
    ...
  1. See AzureBlobAuthenticationTypeType
  2. See AzureBlobSasConfigurationTypeDef
  3. See AzureBlobTypeType
  4. See AzureAccessTierType
# update_location_azure_blob method usage example with argument unpacking

kwargs: UpdateLocationAzureBlobRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.update_location_azure_blob(**kwargs)
  1. See UpdateLocationAzureBlobRequestRequestTypeDef

update_location_hdfs#

Updates some parameters of a previously created location for a Hadoop Distributed File System cluster.

Type annotations and code completion for session.create_client("datasync").update_location_hdfs method. boto3 documentation

# update_location_hdfs method definition

await def update_location_hdfs(
    self,
    *,
    LocationArn: str,
    Subdirectory: str = ...,
    NameNodes: Sequence[HdfsNameNodeTypeDef] = ...,  # (1)
    BlockSize: int = ...,
    ReplicationFactor: int = ...,
    KmsKeyProviderUri: str = ...,
    QopConfiguration: QopConfigurationTypeDef = ...,  # (2)
    AuthenticationType: HdfsAuthenticationTypeType = ...,  # (3)
    SimpleUser: str = ...,
    KerberosPrincipal: str = ...,
    KerberosKeytab: Union[str, bytes, IO[Any], StreamingBody] = ...,
    KerberosKrb5Conf: Union[str, bytes, IO[Any], StreamingBody] = ...,
    AgentArns: Sequence[str] = ...,
) -> Dict[str, Any]:
    ...
  1. See HdfsNameNodeTypeDef
  2. See QopConfigurationTypeDef
  3. See HdfsAuthenticationTypeType
# update_location_hdfs method usage example with argument unpacking

kwargs: UpdateLocationHdfsRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.update_location_hdfs(**kwargs)
  1. See UpdateLocationHdfsRequestRequestTypeDef

update_location_nfs#

Modifies some configurations of the Network File System (NFS) transfer location that you're using with DataSync.

Type annotations and code completion for session.create_client("datasync").update_location_nfs method. boto3 documentation

# update_location_nfs method definition

await def update_location_nfs(
    self,
    *,
    LocationArn: str,
    Subdirectory: str = ...,
    OnPremConfig: OnPremConfigTypeDef = ...,  # (1)
    MountOptions: NfsMountOptionsTypeDef = ...,  # (2)
) -> Dict[str, Any]:
    ...
  1. See OnPremConfigTypeDef
  2. See NfsMountOptionsTypeDef
# update_location_nfs method usage example with argument unpacking

kwargs: UpdateLocationNfsRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.update_location_nfs(**kwargs)
  1. See UpdateLocationNfsRequestRequestTypeDef

update_location_object_storage#

Updates some parameters of an existing object storage location that DataSync accesses for a transfer.

Type annotations and code completion for session.create_client("datasync").update_location_object_storage method. boto3 documentation

# update_location_object_storage method definition

await def update_location_object_storage(
    self,
    *,
    LocationArn: str,
    ServerPort: int = ...,
    ServerProtocol: ObjectStorageServerProtocolType = ...,  # (1)
    Subdirectory: str = ...,
    AccessKey: str = ...,
    SecretKey: str = ...,
    AgentArns: Sequence[str] = ...,
    ServerCertificate: Union[str, bytes, IO[Any], StreamingBody] = ...,
) -> Dict[str, Any]:
    ...
  1. See ObjectStorageServerProtocolType
# update_location_object_storage method usage example with argument unpacking

kwargs: UpdateLocationObjectStorageRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.update_location_object_storage(**kwargs)
  1. See UpdateLocationObjectStorageRequestRequestTypeDef

update_location_smb#

Updates some of the parameters of a previously created location for Server Message Block (SMB) file system access.

Type annotations and code completion for session.create_client("datasync").update_location_smb method. boto3 documentation

# update_location_smb method definition

await def update_location_smb(
    self,
    *,
    LocationArn: str,
    Subdirectory: str = ...,
    User: str = ...,
    Domain: str = ...,
    Password: str = ...,
    AgentArns: Sequence[str] = ...,
    MountOptions: SmbMountOptionsTypeDef = ...,  # (1)
) -> Dict[str, Any]:
    ...
  1. See SmbMountOptionsTypeDef
# update_location_smb method usage example with argument unpacking

kwargs: UpdateLocationSmbRequestRequestTypeDef = {  # (1)
    "LocationArn": ...,
}

parent.update_location_smb(**kwargs)
  1. See UpdateLocationSmbRequestRequestTypeDef

update_storage_system#

Modifies some configurations of an on-premises storage system resource that you're using with DataSync Discovery.

Type annotations and code completion for session.create_client("datasync").update_storage_system method. boto3 documentation

# update_storage_system method definition

await def update_storage_system(
    self,
    *,
    StorageSystemArn: str,
    ServerConfiguration: DiscoveryServerConfigurationTypeDef = ...,  # (1)
    AgentArns: Sequence[str] = ...,
    Name: str = ...,
    CloudWatchLogGroupArn: str = ...,
    Credentials: CredentialsTypeDef = ...,  # (2)
) -> Dict[str, Any]:
    ...
  1. See DiscoveryServerConfigurationTypeDef
  2. See CredentialsTypeDef
# update_storage_system method usage example with argument unpacking

kwargs: UpdateStorageSystemRequestRequestTypeDef = {  # (1)
    "StorageSystemArn": ...,
}

parent.update_storage_system(**kwargs)
  1. See UpdateStorageSystemRequestRequestTypeDef

update_task#

Updates the metadata associated with a task.

Type annotations and code completion for session.create_client("datasync").update_task method. boto3 documentation

# update_task method definition

await def update_task(
    self,
    *,
    TaskArn: str,
    Options: OptionsTypeDef = ...,  # (1)
    Excludes: Sequence[FilterRuleTypeDef] = ...,  # (2)
    Schedule: TaskScheduleTypeDef = ...,  # (3)
    Name: str = ...,
    CloudWatchLogGroupArn: str = ...,
    Includes: Sequence[FilterRuleTypeDef] = ...,  # (2)
) -> Dict[str, Any]:
    ...
  1. See OptionsTypeDef
  2. See FilterRuleTypeDef
  3. See TaskScheduleTypeDef
  4. See FilterRuleTypeDef
# update_task method usage example with argument unpacking

kwargs: UpdateTaskRequestRequestTypeDef = {  # (1)
    "TaskArn": ...,
}

parent.update_task(**kwargs)
  1. See UpdateTaskRequestRequestTypeDef

update_task_execution#

Modifies a running DataSync task.

Type annotations and code completion for session.create_client("datasync").update_task_execution method. boto3 documentation

# update_task_execution method definition

await def update_task_execution(
    self,
    *,
    TaskExecutionArn: str,
    Options: OptionsTypeDef,  # (1)
) -> Dict[str, Any]:
    ...
  1. See OptionsTypeDef
# update_task_execution method usage example with argument unpacking

kwargs: UpdateTaskExecutionRequestRequestTypeDef = {  # (1)
    "TaskExecutionArn": ...,
    "Options": ...,
}

parent.update_task_execution(**kwargs)
  1. See UpdateTaskExecutionRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("datasync").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> DataSyncClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("datasync").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator#

Type annotations and code completion for session.create_client("datasync").get_paginator method with overloads.