// Updates the status of the specified certificate. This operation is idempotent.
// Certificates must be in the ACTIVE state to authenticate devices that use a
// certificate to connect to AWS IoT. Within a few minutes of updating a
// certificate from the ACTIVE state to any other state, AWS IoT disconnects all
// devices that used that certificate to connect. Devices cannot use a certificate
// that is not in the ACTIVE state to reconnect.
Updates the status of the specified certificate. This operation is idempotent.
Certificates must be in the ACTIVE state to authenticate devices that use a
certificate to connect to AWS IoT. Within a few minutes of updating a
certificate from the ACTIVE state to any other state, AWS IoT disconnects all
devices that used that certificate to connect. Devices cannot use a certificate
that is not in the ACTIVE state to reconnect.
// Updates the status of the specified certificate . This operation is idempotent . // Certificates must be in the ACTIVE state to authenticate devices that use a // certificate to connect to AWS IoT . Within a few minutes of updating a // certificate from the ACTIVE state to any other state AWS IoT disconnects all // devices that used that certificate to connect . Devices cannot use a certificate // that is not in the ACTIVE state to reconnect .
func (c *Client) UpdateCertificate(ctx context.Context, params *UpdateCertificateInput, optFns ...func(*Options)) (*UpdateCertificateOutput, error) {
	if params == nil {
		params = &UpdateCertificateInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "UpdateCertificate", params, optFns, addOperationUpdateCertificateMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*UpdateCertificateOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) UpdateCertificate ( ctx context . Context , params * UpdateCertificateInput , optFns ... func ( * Options ) ) ( * UpdateCertificateOutput , error ) { if params == nil { params = & UpdateCertificateInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationUpdateCertificateMiddlewares ) if err != nil { return nil , err } out := result . ( * UpdateCertificateOutput ) out . ResultMetadata = metadata return out , nil }
Updates the status of the specified certificate.
Updates the status of the specified certificate .