update_certificate
async
¶
update_certificate(
certificate_id: CertificateId,
*,
config_overrides: Optional[AsyncTransferClientConfig] = None,
active_date: Optional[CertDate] = None,
inactive_date: Optional[CertDate] = None,
description: Optional[Description] = None,
) -> UpdateCertificateResponse
Updates the active and inactive dates for a certificate.
Parameters:
-
certificate_id(CertificateId) –The identifier of the certificate object that you are updating.
-
active_date(Optional[CertDate], default:None) –An optional date that specifies when the certificate becomes active. If you do not specify a value,
ActiveDatetakes the same value asNotBeforeDate, which is specified by the CA. -
inactive_date(Optional[CertDate], default:None) –An optional date that specifies when the certificate becomes inactive. If you do not specify a value,
InactiveDatetakes the same value asNotAfterDate, which is specified by the CA. -
description(Optional[Description], default:None) –A short description to help identify the certificate.
Raises:
-
InternalServiceError–This exception is thrown when an error occurs in the Transfer Family service.
-
InvalidRequestException–This exception is thrown when the client submits a malformed request.
-
ResourceNotFoundException–This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer Family service.
-
ServiceUnavailableException–The request has failed because the Amazon Web ServicesTransfer Family service is not available.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_transfer/_services/async_transfer.py
2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 | |