update_location_object_storage
¶
update_location_object_storage(
location_arn: LocationArn,
*,
config_overrides: Optional[DataSyncClientConfig] = None,
server_port: Optional[ObjectStorageServerPort] = None,
server_protocol: Optional[ObjectStorageServerProtocol] = None,
subdirectory: Optional[S3Subdirectory] = None,
server_hostname: Optional[ServerHostname] = None,
access_key: Optional[ObjectStorageAccessKey] = None,
secret_key: Optional[ObjectStorageSecretKey] = None,
federated_identity: Optional[ObjectStorageFederatedIdentityConfig] = None,
agent_arns: Optional[AgentArnList] = None,
server_certificate: Optional[ObjectStorageCertificate] = None,
cmk_secret_config: Optional[CmkSecretConfig] = None,
custom_secret_config: Optional[CustomSecretConfig] = None,
) -> UpdateLocationObjectStorageResponse
Modifies the following configuration parameters of the object storage transfer location that you're using with DataSync.
For more information, see Configuring DataSync transfers with an object storage system.
Parameters:
-
location_arn(LocationArn) –Specifies the ARN of the object storage system location that you're updating.
-
server_port(Optional[ObjectStorageServerPort], default:None) –Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
-
server_protocol(Optional[ObjectStorageServerProtocol], default:None) –Specifies the protocol that your object storage server uses to communicate.
-
subdirectory(Optional[S3Subdirectory], default:None) –Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
-
server_hostname(Optional[ServerHostname], default:None) –Specifies the domain name or IP address (IPv4 or IPv6) of the object storage server that your DataSync agent connects to.
-
access_key(Optional[ObjectStorageAccessKey], default:None) –Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
-
secret_key(Optional[ObjectStorageSecretKey], default:None) –Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
If you provide a secret using
SecretKey, but do not provide secret configuration details usingCmkSecretConfigorCustomSecretConfig, then DataSync stores the token using your Amazon Web Services account's Secrets Manager secret. -
federated_identity(Optional[ObjectStorageFederatedIdentityConfig], default:None) –Specifies the federated identity configuration that allows DataSync to access your object storage using an OpenID Connect (OIDC) token instead of a long-term access key and secret key. Provide either
FederatedIdentityor theAccessKey/SecretKeycredentials, but not both. -
agent_arns(Optional[AgentArnList], default:None) –(Optional) Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can connect with your object storage system. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter.
You cannot add or remove agents from a storage location after you initially create it.
-
server_certificate(Optional[ObjectStorageCertificate], default:None) –Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single
.pemfile with a full certificate chain (for example,file:///home/user/.ssh/object_storage_certificates.pem).The certificate chain might include:
-
The object storage system's certificate
-
All intermediate certificates (if there are any)
-
The root certificate of the signing CA
You can concatenate your certificates into a
.pemfile (which can be up to 32768 bytes before base64 encoding). The following examplecatcommand creates anobject_storage_certificates.pemfile that includes three certificates:cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pemTo use this parameter, configure
ServerProtocoltoHTTPS.Updating this parameter doesn't interfere with tasks that you have in progress.
-
-
cmk_secret_config(Optional[CmkSecretConfig], default:None) –Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key.
-
custom_secret_config(Optional[CustomSecretConfig], default:None) –Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret.
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/data_sync.py
4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 | |