// Updates the Amazon GuardDuty detector specified by the detectorId.
Updates the Amazon GuardDuty detector specified by the detectorId.
// Updates the Amazon GuardDuty detector specified by the detectorId .
func (c *Client) UpdateDetector(ctx context.Context, params *UpdateDetectorInput, optFns ...func(*Options)) (*UpdateDetectorOutput, error) {
	if params == nil {
		params = &UpdateDetectorInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "UpdateDetector", params, optFns, addOperationUpdateDetectorMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*UpdateDetectorOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) UpdateDetector ( ctx context . Context , params * UpdateDetectorInput , optFns ... func ( * Options ) ) ( * UpdateDetectorOutput , error ) { if params == nil { params = & UpdateDetectorInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationUpdateDetectorMiddlewares ) if err != nil { return nil , err } out := result . ( * UpdateDetectorOutput ) out . ResultMetadata = metadata return out , nil }
Updates the Amazon GuardDuty detector specified by the detectorId.
Updates the Amazon GuardDuty detector specified by the detectorId .