// Retrieves an Amazon GuardDuty detector specified by the detectorId.
Retrieves an Amazon GuardDuty detector specified by the detectorId.
// Retrieves an Amazon GuardDuty detector specified by the detectorId .
func (c *Client) GetDetector(ctx context.Context, params *GetDetectorInput, optFns ...func(*Options)) (*GetDetectorOutput, error) {
	if params == nil {
		params = &GetDetectorInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "GetDetector", params, optFns, addOperationGetDetectorMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*GetDetectorOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) GetDetector ( ctx context . Context , params * GetDetectorInput , optFns ... func ( * Options ) ) ( * GetDetectorOutput , error ) { if params == nil { params = & GetDetectorInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationGetDetectorMiddlewares ) if err != nil { return nil , err } out := result . ( * GetDetectorOutput ) out . ResultMetadata = metadata return out , nil }
Retrieves an Amazon GuardDuty detector specified by the detectorId.
Retrieves an Amazon GuardDuty detector specified by the detectorId .