update_location_efs
async
¶
update_location_efs(
location_arn: LocationArn,
*,
config_overrides: Optional[AsyncDataSyncClientConfig] = None,
subdirectory: Optional[EfsSubdirectory] = None,
access_point_arn: Optional[UpdatedEfsAccessPointArn] = None,
file_system_access_role_arn: Optional[UpdatedEfsIamRoleArn] = None,
in_transit_encryption: Optional[EfsInTransitEncryption] = None,
) -> UpdateLocationEfsResponse
Modifies the following configuration parameters of the Amazon EFS transfer location that you're using with DataSync.
For more information, see Configuring DataSync transfers with Amazon EFS.
Parameters:
-
location_arn(LocationArn) –Specifies the Amazon Resource Name (ARN) of the Amazon EFS transfer location that you're updating.
-
subdirectory(Optional[EfsSubdirectory], default:None) –Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).
By default, DataSync uses the root directory (or access point if you provide one by using
AccessPointArn). You can also include subdirectories using forward slashes (for example,/path/to/folder). -
access_point_arn(Optional[UpdatedEfsAccessPointArn], default:None) –Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to mount your Amazon EFS file system.
For more information, see Accessing restricted Amazon EFS file systems.
-
file_system_access_role_arn(Optional[UpdatedEfsIamRoleArn], default:None) –Specifies an Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system.
For information on creating this role, see Creating a DataSync IAM role for Amazon EFS file system access.
-
in_transit_encryption(Optional[EfsInTransitEncryption], default:None) –Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it transfers data to or from your Amazon EFS file system.
If you specify an access point using
AccessPointArnor an IAM role usingFileSystemAccessRoleArn, you must set this parameter toTLS1_2.
Raises:
-
InternalException–This exception is thrown when an error occurs in the DataSync service.
-
InvalidRequestException–This exception is thrown when the client submits a malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datasync/_services/async_data_sync.py
3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 | |