func (c *Client) TerminateSession(ctx context.Context, params *TerminateSessionInput, optFns ...func(*Options)) (*TerminateSessionOutput, error) {
	if params == nil {
		params = &TerminateSessionInput{}
	}

	result, metadata, err := c.invokeOperation(ctx, "TerminateSession", params, optFns, addOperationTerminateSessionMiddlewares)
	if err != nil {
		return nil, err
	}

	out := result.(*TerminateSessionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
// Permanently ends a session and closes the data connection between the Session
// Manager client and SSM Agent on the instance. A terminated session cannot be
// resumed.
Permanently ends a session and closes the data connection between the Session
Manager client and SSM Agent on the instance. A terminated session cannot be
resumed.
// Permanently ends a session and closes the data connection between the Session // Manager client and SSM Agent on the instance . A terminated session cannot be // resumed .
func (c *Client) TerminateSession(ctx context.Context, params *TerminateSessionInput, optFns ...func(*Options)) (*TerminateSessionOutput, error) {
	if params == nil {
		params = &TerminateSessionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "TerminateSession", params, optFns, addOperationTerminateSessionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*TerminateSessionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) TerminateSession ( ctx context . Context , params * TerminateSessionInput , optFns ... func ( * Options ) ) ( * TerminateSessionOutput , error ) { if params == nil { params = & TerminateSessionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationTerminateSessionMiddlewares ) if err != nil { return nil , err } out := result . ( * TerminateSessionOutput ) out . ResultMetadata = metadata return out , nil }
Permanently ends a session and closes the data connection between the Session
Manager client and SSM Agent on the instance.
Permanently ends a session and closes the data connection between the Session Manager client and SSM Agent on the instance .