Updates some of the parameters for an existing profile. Provide the ProfileId for the profile that you want to update, along with the new values for the parameters to update.
Parameters:
-
profile_id
(ProfileId)
–
The identifier of the profile object that you are updating.
-
certificate_ids
(Optional[CertificateIds], default:
None
)
–
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
Raises:
Source code in docs_src/capo_transfer/_services/async_transfer.py
| async def update_profile(
self,
profile_id: "capo_transfer.types.profile_id.ProfileId",
*,
config_overrides: Optional[AsyncTransferClientConfig] = None,
certificate_ids: Optional[
"capo_transfer.types.certificate_ids.CertificateIds"
] = None,
) -> "capo_transfer.types.update_profile_response.UpdateProfileResponse":
"""<p>Updates some of the parameters for an existing profile. Provide the <code>ProfileId</code> for the profile that you want to update, along with the new values for the parameters to update.</p>
Args:
profile_id: <p>The identifier of the profile object that you are updating.</p>
certificate_ids: <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
Raises:
capo_transfer.errors.internal_service_error.InternalServiceError: <p>This exception is thrown when an error occurs in the Transfer Family service.</p>
capo_transfer.errors.invalid_request_exception.InvalidRequestException: <p>This exception is thrown when the client submits a malformed request.</p>
capo_transfer.errors.resource_not_found_exception.ResourceNotFoundException: <p>This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer Family service.</p>
capo_transfer.errors.service_unavailable_exception.ServiceUnavailableException: <p>The request has failed because the Amazon Web ServicesTransfer Family service is not available.</p>
capo_transfer.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_transfer.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_transfer.types.update_profile_request.UpdateProfileRequest]",
) -> AsyncOperationResponse[
"capo_transfer.types.update_profile_response.UpdateProfileResponse"
]:
import capo_transfer._operations.transfer_service.update_profile
(
output,
http_response,
) = await capo_transfer._operations.transfer_service.update_profile.async_update_profile(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateProfile")
)
input_: capo_transfer.types.update_profile_request.UpdateProfileRequest = {
"profile_id": profile_id
}
if certificate_ids is not None:
input_["certificate_ids"] = certificate_ids
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|